Example #1
0
        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;
        }
Example #2
0
 public void visit(ParameterDeclaration that)
 {
     that.Type.visit(this);
     Console.Write(" {0}", that.Name);
 }
Example #3
0
 public void visit(ParameterDeclaration that)
 {
 }