public override bool VisitFunctionSection([NotNull] sphereScript99Parser.FunctionSectionContext context) { var statements = context.codeBlock()?.statement(); if (statements != null) { output.Append($"stmts:{statements.Length};"); } else { output.Append($"stmts:0;"); } return(base.VisitFunctionSection(context)); }
public override bool VisitFunctionSection([NotNull] sphereScript99Parser.FunctionSectionContext context) { output.Append($"function {context.functionSectionHeader().functionName().GetText()};"); return(true); }