示例#1
0
        private void ReadFunction(ScopeNode currentScope)
        {
            var name = ReadName();

            var args = ReadArgumentDefinition();

            var node = new FunctionNode(name, args.ToArray());
            Expect('{');
            ReadScopeContent(node);
            currentScope.Add(node);
        }
示例#2
0
 public override void SetFunction(FunctionNode node)
 {
     _functions[node.Name] = node;
 }
示例#3
0
 public virtual void SetFunction(FunctionNode node)
 {
     Parent.SetFunction(node);
 }