Example #1
0
        private void Add(Function aFunction)
        {
            var settings = new ApplicationSettings();
            var aNode = new FunctionNode(aFunction, settings.DisplayFunctionsSignatureAndReturnType);

            Func<FunctionNodeGroup, bool> nodeThatGroupsTheFunction = node => node.Groups(aNode);
            if (_functionsByName.Any(nodeThatGroupsTheFunction))
            {
                _functionsByName.First(nodeThatGroupsTheFunction).Group(aNode);
            }
            else
            {
                var aFunctionGroup = new FunctionNodeGroup(aNode);
                _functionsByName.Add(aFunctionGroup);

                _model.Nodes.Add(aFunctionGroup);
            }
        }
Example #2
0
 public void VisitFunctionNode(FunctionNode functionNode)
 {
     EnqueueNode(functionNode);
 }
Example #3
0
 public void VisitFunctionNode(FunctionNode functionNode)
 {
     CollectedFunctions.Add(functionNode.Function);
 }
Example #4
0
 public void VisitFunctionNode(FunctionNode functionNode)
 {
     _nodeWasHandled = _functionsHandler(functionNode);
 }