From f557fdf30f67dc48a55839cf8b239e5c8d1f1bde Mon Sep 17 00:00:00 2001 From: JordonPhillips Date: Fri, 13 Mar 2020 11:15:29 -0700 Subject: [PATCH] Add TODOs for remaining stubbed out functionality --- .../java/software/amazon/smithy/go/codegen/GoDelegator.java | 2 +- .../java/software/amazon/smithy/go/codegen/SymbolVisitor.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoDelegator.java b/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoDelegator.java index 4856637a3..7ed67b067 100644 --- a/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoDelegator.java +++ b/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoDelegator.java @@ -44,7 +44,7 @@ final class GoDelegator { } /** - * Writes all pending writers do disk and then clears them out. + * Writes all pending writers to disk and then clears them out. */ void flushWriters() { writers.forEach((filename, writer) -> fileManifest.writeFile(filename, writer.toString())); diff --git a/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SymbolVisitor.java b/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SymbolVisitor.java index 676300fb3..2a2b3f9b3 100644 --- a/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SymbolVisitor.java +++ b/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/SymbolVisitor.java @@ -183,16 +183,19 @@ public Symbol bigDecimalShape(BigDecimalShape shape) { @Override public Symbol operationShape(OperationShape shape) { + // TODO: implement operations return createSymbolBuilder(shape, "nil").build(); } @Override public Symbol resourceShape(ResourceShape shape) { + // TODO: implement resources return createSymbolBuilder(shape, "nil").build(); } @Override public Symbol serviceShape(ServiceShape shape) { + // TODO: implement clients return createSymbolBuilder(shape, "nil").build(); } @@ -212,6 +215,7 @@ public Symbol structureShape(StructureShape shape) { @Override public Symbol unionShape(UnionShape shape) { + // TODO: implement unions return createSymbolBuilder(shape, "nil").build(); }