Skip to content

Commit fab4223

Browse files
committed
Use better name for document body shape serde gen
1 parent 672e455 commit fab4223

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ static void generateUnsignedPayloadSigV4Header(GenerationContext context, Operat
6464
* @param shapes A list of shapes to generate serde for, including their members.
6565
* @param visitor A ShapeVisitor that generates a serde function for shapes.
6666
*/
67-
static void generateDocumentShapeSerde(GenerationContext context, Set<Shape> shapes, ShapeVisitor<Void> visitor) {
67+
static void generateDocumentBodyShapeSerde(
68+
GenerationContext context,
69+
Set<Shape> shapes,
70+
ShapeVisitor<Void> visitor
71+
) {
6872
// Walk all the shapes within those in the document and generate for them as well.
6973
Walker shapeWalker = new Walker(context.getModel().getKnowledge(NeighborProviderIndex.class).getProvider());
7074
Set<Shape> shapesToGenerate = new TreeSet<>(shapes);

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/JsonRpcProtocolGenerator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ protected Format getDocumentTimestampFormat() {
4646
}
4747

4848
@Override
49-
protected void generateDocumentShapeSerializers(GenerationContext context, Set<Shape> shapes) {
50-
AwsProtocolUtils.generateDocumentShapeSerde(context, shapes, new JsonShapeSerVisitor(context));
49+
protected void generateDocumentBodyShapeSerializers(GenerationContext context, Set<Shape> shapes) {
50+
AwsProtocolUtils.generateDocumentBodyShapeSerde(context, shapes, new JsonShapeSerVisitor(context));
5151
}
5252

5353
@Override
54-
protected void generateDocumentShapeDeserializers(GenerationContext context, Set<Shape> shapes) {
55-
AwsProtocolUtils.generateDocumentShapeSerde(context, shapes, new JsonShapeDeserVisitor(context));
54+
protected void generateDocumentBodyShapeDeserializers(GenerationContext context, Set<Shape> shapes) {
55+
AwsProtocolUtils.generateDocumentBodyShapeSerde(context, shapes, new JsonShapeDeserVisitor(context));
5656
}
5757

5858
@Override

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonProtocolGenerator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ protected TimestampFormatTrait.Format getDocumentTimestampFormat() {
5252
}
5353

5454
@Override
55-
protected void generateDocumentShapeSerializers(GenerationContext context, Set<Shape> shapes) {
56-
AwsProtocolUtils.generateDocumentShapeSerde(context, shapes, new JsonShapeSerVisitor(context));
55+
protected void generateDocumentBodyShapeSerializers(GenerationContext context, Set<Shape> shapes) {
56+
AwsProtocolUtils.generateDocumentBodyShapeSerde(context, shapes, new JsonShapeSerVisitor(context));
5757
}
5858

5959
@Override
60-
protected void generateDocumentShapeDeserializers(GenerationContext context, Set<Shape> shapes) {
61-
AwsProtocolUtils.generateDocumentShapeSerde(context, shapes, new JsonShapeDeserVisitor(context));
60+
protected void generateDocumentBodyShapeDeserializers(GenerationContext context, Set<Shape> shapes) {
61+
AwsProtocolUtils.generateDocumentBodyShapeSerde(context, shapes, new JsonShapeDeserVisitor(context));
6262
}
6363

6464
@Override

0 commit comments

Comments
 (0)