public override void Visit(FuncDeclarationStmt stmt) { if (isNewLine) { isNewLine = false; AddStr(WS()); } AddStr("func " + stmt.name.lexeme + "("); for (int i = 0; i < stmt.parameters.Count; i++) { AddStr(stmt.parameters[i].lexeme); if (i != stmt.parameters.Count - 1) { AddStr(", "); } } AddStr(")"); stmt.body.Accept(this); }
public virtual void Visit(FuncDeclarationStmt stmt) { }
public override void Visit(FuncDeclarationStmt stmt) { }