Exemple #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);
            }
        }
Exemple #2
0
 public void VisitFunctionNode(FunctionNode functionNode)
 {
     EnqueueNode(functionNode);
 }
Exemple #3
0
 public void VisitFunctionNode(FunctionNode functionNode)
 {
     CollectedFunctions.Add(functionNode.Function);
 }
 public void VisitFunctionNode(FunctionNode functionNode)
 {
     _nodeWasHandled = _functionsHandler(functionNode);
 }