diff --git a/runtime-testsuite/resources/org/antlr/v4/test/runtime/go/Go.test.stg b/runtime-testsuite/resources/org/antlr/v4/test/runtime/go/Go.test.stg index da5053e83..6eed1e7a8 100644 --- a/runtime-testsuite/resources/org/antlr/v4/test/runtime/go/Go.test.stg +++ b/runtime-testsuite/resources/org/antlr/v4/test/runtime/go/Go.test.stg @@ -159,9 +159,9 @@ True() ::= "true" Not(v) ::= "!" -Assert(s) ::= <)>> +Assert(s) ::= "" -Cast(t,v) ::= "(())" +Cast(t,v) ::= "()" Append(a,b) ::= " + fmt.Sprint()" @@ -169,7 +169,7 @@ Concat(a,b) ::= "" DeclareLocal(s,v) ::= " := " -AssertIsList(v) ::= "List\ __ttt__ = ;" // just use type system +AssertIsList(v) ::= "" AssignLocal(s,v) ::= " = ;" diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/Go/Go.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/Go/Go.stg index a655e5620..612d2a058 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/Go/Go.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/Go/Go.stg @@ -596,7 +596,7 @@ TokenPropertyRef_line(t) ::= "(func() int { if .get> ContextRuleListIndexedGetterDecl(r) ::= << -(i int) []* { +(i int) []* { var ts []antlr4.RuleContext; if i \< 0 {