public FunctionDeclaration(Position position, string name, AST.Type type, ParameterDeclaration[] parameters, Expression body) : base(position, name, SymbolKind.Function, type) { _parameters = parameters; foreach (ParameterDeclaration parameter in _parameters) parameter.Parent = this; // body MAY be null for predefined functions _body = body; if (_body != null) _body.Parent = this; }
public void visit(ParameterDeclaration that) { that.Type.visit(this); Console.Write(" {0}", that.Name); }
public void visit(ParameterDeclaration that) { }