diff --git a/contributors.txt b/contributors.txt index bbf7e1cbff..1ba682f00e 100644 --- a/contributors.txt +++ b/contributors.txt @@ -288,4 +288,5 @@ YYYY/MM/DD, github id, Full name, email 2021/02/02, tsotnikov, Taras Sotnikov, taras.sotnikov@gmail.com 2021/02/21, namasikanam, Xingyu Xie, namasikanam@gmail.com 2021/02/27, khmarbaise, Karl Heinz Marbaise, github@soebes.com +2021/03/01, preethamrn, Preetham Narayanareddy, preetham.narayanareddy@gmail.com 2021/03/02, hackeris 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 9cbca49d05..d49e720705 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 @@ -886,8 +886,8 @@ ThisRulePropertyRef_text(r) ::= "p.GetTokenStream().GetTextFromTokens(localctx.G ThisRulePropertyRef_ctx(r) ::= "" ThisRulePropertyRef_parser(r) ::= "p" -NonLocalAttrRef(s) ::= "GetInvokingContext()." -SetNonLocalAttr(s, rhsChunks) ::= "GetInvokingContext(). = " +NonLocalAttrRef(s) ::= "p.GetInvokingContext().(*Context)." +SetNonLocalAttr(s, rhsChunks) ::= "p.GetInvokingContext().(*Context). = " AddToLabelList(a) ::= ". = append(., )"