private void ReadFunction(ScopeNode currentScope) { var name = ReadName(); var args = ReadArgumentDefinition(); var node = new FunctionNode(name, args.ToArray()); Expect('{'); ReadScopeContent(node); currentScope.Add(node); }
public override void SetFunction(FunctionNode node) { _functions[node.Name] = node; }
public virtual void SetFunction(FunctionNode node) { Parent.SetFunction(node); }