You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/07/06 14:24:33 UTC
[plc4x] 02/02: fix(codegen/plc4go): fixed build
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit 9e22a4491f357cb1528efacf9a4e9fe9c62a995b
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed Jul 6 16:24:24 2022 +0200
fix(codegen/plc4go): fixed build
---
.../src/main/resources/templates/go/complex-type-template.go.ftlh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/code-generation/language-go/src/main/resources/templates/go/complex-type-template.go.ftlh b/code-generation/language-go/src/main/resources/templates/go/complex-type-template.go.ftlh
index cb09a711c..49b63f94f 100644
--- a/code-generation/language-go/src/main/resources/templates/go/complex-type-template.go.ftlh
+++ b/code-generation/language-go/src/main/resources/templates/go/complex-type-template.go.ftlh
@@ -1353,8 +1353,7 @@ func ${type.name}Parse(readBuffer utils.ReadBuffer<#if hasParserArguments>, ${pa
<#if case.discriminatorValueTerms?has_content>
case
<#list case.discriminatorValueTerms as discriminatorValueTerm>
- <#if helper.isWildcard(discriminatorValueTerm)>
- // TODO: we could use the above isWildcard as filter but then the switchField.discriminatorExpressions[discriminatorValueTerm?index] is offset. Solution would be to have it as a pair list
+ <#if helper.isWildcard(discriminatorValueTerm)> <#--TODO: we could use the above isWildcard as filter but then the switchField.discriminatorExpressions[discriminatorValueTerm?index] is offset. Solution would be to have it as a pair list-->
${discriminatorValueTerm?index}==${discriminatorValueTerm?index}
<#else>
<#assign discriminatorExpression=switchField.discriminatorExpressions[discriminatorValueTerm?index]>