public override void EnterConstDecl(GoParser.ConstDeclContext context) { // constDecl // : 'const' ( constSpec | '(' ( constSpec eos )* ')' ) m_constIdentifierCount = 0; m_constMultipleDeclaration = context.children.Count > 2; m_iota = 0; }
public override void ExitConstDecl(GoParser.ConstDeclContext context) { // constDecl // : 'const' ( constSpec | '(' ( constSpec eos )* ')' ) if (m_constMultipleDeclaration && EndsWithLineFeed(m_targetFile.ToString())) { string removedLineFeed = RemoveLastLineFeed(m_targetFile.ToString()); m_targetFile.Clear(); m_targetFile.Append(removedLineFeed); } m_targetFile.Append(CheckForCommentsRight(context)); }