Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmcdonald3 committed Dec 12, 2024
1 parent 54ef386 commit f2488ce
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,35 @@ protected void generateOrphanedShapesForService(
shapeToGenerate
);
}

final WriterDelegator<PythonWriter> delegator = directive.context().writerDelegator();
final String moduleName =
SmithyNameResolver.getServiceSmithygeneratedDirectoryNameForNamespace(
directive.context().settings().getService().getNamespace()
);

delegator.useFileWriter(
moduleName + "/dafny_to_smithy.py",
"",
conversionWriter -> {
DafnyToLocalServiceConversionFunctionWriter.writeConverterForShapeAndMembers(
shapeToGenerate,
directive.context(),
conversionWriter
);
});

delegator.useFileWriter(
moduleName + "/smithy_to_dafny.py",
"",
conversionWriter -> {
LocalServiceToDafnyConversionFunctionWriter.writeConverterForShapeAndMembers(
shapeToGenerate,
directive.context(),
conversionWriter
);
});

}
}

Expand Down

0 comments on commit f2488ce

Please sign in to comment.