Skip to content

Commit

Permalink
chore(codegen): use bare-bones and aggregated instead of modular/non-…
Browse files Browse the repository at this point in the history
…modular (#2925)
  • Loading branch information
trivikr authored Oct 25, 2021
1 parent 3d7b9eb commit 5db4f3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public void writeAdditionalFiles(
}

writerFactory.accept(String.format("%s%s.ts", docClientPrefix, DocumentClientUtils.CLIENT_NAME),
writer -> new DocumentClientGenerator(settings, model, symbolProvider, writer).run());
writer -> new DocumentBareBonesClientGenerator(settings, model, symbolProvider, writer).run());

writerFactory.accept(String.format("%s%s.ts", docClientPrefix, DocumentClientUtils.CLIENT_FULL_NAME),
writer -> new DocumentFullClientGenerator(settings, model, symbolProvider, writer).run());
writer -> new DocumentAggregatedClientGenerator(settings, model, symbolProvider, writer).run());

writerFactory.accept(String.format("%s%s/index.ts", docClientPrefix,
DocumentClientUtils.CLIENT_COMMANDS_FOLDER), writer -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import software.amazon.smithy.utils.StringUtils;

@SmithyInternalApi
final class DocumentFullClientGenerator implements Runnable {
final class DocumentAggregatedClientGenerator implements Runnable {
static final String CLIENT_CONFIG_SECTION = "client_config";
static final String CLIENT_PROPERTIES_SECTION = "client_properties";
static final String CLIENT_CONSTRUCTOR_SECTION = "client_constructor";
Expand All @@ -44,7 +44,7 @@ final class DocumentFullClientGenerator implements Runnable {
private final Symbol symbol;
private final String serviceName;

DocumentFullClientGenerator(
DocumentAggregatedClientGenerator(
TypeScriptSettings settings,
Model model,
SymbolProvider symbolProvider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import software.amazon.smithy.utils.SmithyInternalApi;

@SmithyInternalApi
final class DocumentClientGenerator implements Runnable {
final class DocumentBareBonesClientGenerator implements Runnable {
static final String CLIENT_CONFIG_SECTION = "client_config";
static final String CLIENT_PROPERTIES_SECTION = "client_properties";
static final String CLIENT_CONSTRUCTOR_SECTION = "client_constructor";
Expand All @@ -46,7 +46,7 @@ final class DocumentClientGenerator implements Runnable {
private final String serviceName;
private final String configType;

DocumentClientGenerator(
DocumentBareBonesClientGenerator(
TypeScriptSettings settings,
Model model,
SymbolProvider symbolProvider,
Expand Down

0 comments on commit 5db4f3f

Please sign in to comment.