From 7cbef5617cd6e2ee530c2b4d30ff31553a807cba Mon Sep 17 00:00:00 2001 From: Gary Miller Date: Tue, 10 Jan 2017 22:05:45 +1100 Subject: [PATCH] removed lower case formatting on types. Case has meaning in Go, needs preserving. --- .../antlr/v4/tool/templates/codegen/Go/Go.stg | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 22b955df4..1fb7cb71b 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 @@ -898,7 +898,7 @@ TokenListDecl(t) ::= " []antlr.Token" RuleContextDecl(r) ::= " I " RuleContextListDecl(rdecl) ::= " []I" -AttributeDecl(d) ::= " // TODO = " +AttributeDecl(d) ::= " // TODO = " ContextTokenGetterDecl(t) ::= << () antlr.TerminalNode { @@ -1042,13 +1042,13 @@ Set([]I) }; separator="\n\n"> returns the attribute. -Get() }; separator="\n\n"> +Get() }; separator="\n\n"> sets the attribute. -Set()}; separator="\n\n"> +Set()}; separator="\n\n"> @@ -1073,7 +1073,7 @@ func NewEmpty() * { func (*) Is() {} -func New(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int }>) * { +func New(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int }>) * { var p = new() p.BaseParserRuleContext = Newantlr.NewBaseParserRuleContext(parent, invokingState) @@ -1141,12 +1141,12 @@ func (s *) GetParser() antlr.Parser { return s.parser } -) Get() { return s. \}}; separator="\n\n"> +) Get() { return s. \}}; separator="\n\n"> -) Set(v ) { s. = v \}}; separator="\n\n"> +) Set(v ) { s. = v \}}; separator="\n\n"> @@ -1251,12 +1251,12 @@ func New(parser antlr.Parser, ctx antlr.ParserRuleContext) * -) Get() { return s. \}}; separator="\n\n"> +) Get() { return s. \}}; separator="\n\n"> -) Set(v ) { s. = v \}}; separator="\n\n"> +) Set(v ) { s. = v \}}; separator="\n\n"> func (s *) GetRuleContext() antlr.RuleContext {