Skip to content

Commit

Permalink
fix(codegen): remove temporary fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Feb 24, 2022
1 parent 5b01ba0 commit b435e82
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,6 @@ public<#if type.isDiscriminatedParentTypeDefinition()> abstract</#if> class ${ty
</#if>
<#-- Here come the actual parse and serialize methods that actually do the parsing and serlaizing -->
<#assign hasParserArguments=parserArguments?has_content/>
<#if type.isDiscriminatedChildTypeDefinition() && type.getParentType().orElseThrow().isDataIoTypeDefinition()>
<#assign hasParserArguments=type.parserArguments.isPresent()/>
<#assign parserArguments=type.parserArguments.orElseThrow()/>
</#if>
<#assign parserArgumentList><#if hasParserArguments><#list parserArguments as parserArgument>${helper.getLanguageTypeNameForTypeReference(parserArgument.type, false)} ${parserArgument.name}<#sep>, </#sep></#list></#if></#assign>
public static ${type.name}<#if type.isDiscriminatedChildTypeDefinition()>Builder staticParseBuilder<#else> staticParse</#if>(ReadBuffer readBuffer<#if hasParserArguments>, ${parserArgumentList}</#if>) throws ParseException {
readBuffer.pullContext("${type.name}");
Expand Down

0 comments on commit b435e82

Please sign in to comment.