private void BuildFunctionExpression(Token[] tokens, Expression parent, string funcName) { if (parent == null) { _graph.Add(new FunctionExpression(funcName, _parsingContext, _negateNextExpression)); _negateNextExpression = false; HandleFunctionArguments(tokens, _graph.Current); } else { var func = new FunctionExpression(funcName, _parsingContext, _negateNextExpression); _negateNextExpression = false; parent.AddChild(func); HandleFunctionArguments(tokens, func); } }