private void BuildFunctionExpression(IEnumerable<Token> tokens, Expression parent, string funcName) { if (parent == null) { _graph.Add(new FunctionExpression(funcName, _parsingContext)); BuildUp(tokens, _graph.Current); } else { var func = new FunctionExpression(funcName, _parsingContext); parent.AddChild(func); BuildUp(tokens, func); } }
private void BuildFunctionExpression(IEnumerable <Token> tokens, Expression parent, string funcName) { if (parent == null) { _graph.Add(new FunctionExpression(funcName, _parsingContext)); BuildUp(tokens, _graph.Current); } else { var func = new FunctionExpression(funcName, _parsingContext); parent.AddChild(func); BuildUp(tokens, func); } }