dynamic function calls parsed item
Inheritance: ParsedItem
Example #1
0
        /// <summary>
        /// Dynamic-function
        /// </summary>
        /// <param name="pars"></param>
        public void Visit(ParsedFunctionCall pars)
        {
            // To code explorer
            var parentNode = pars.ExternalCall ? GetExplorerListNode("External dynamic function calls", CodeExplorerIconType.DynamicFunctionCallExternal) : (pars.StaticCall ? GetExplorerListNode("Static function calls", CodeExplorerIconType.StaticFunctionCall) : GetExplorerListNode("Internal dynamic function calls", CodeExplorerIconType.DynamicFunctionCall));
            var newNode    = CodeItem.Factory.New(pars.ExternalCall ? CodeExplorerIconType.DynamicFunctionCallExternal : (pars.StaticCall ? CodeExplorerIconType.StaticFunctionCall : CodeExplorerIconType.DynamicFunctionCall));

            newNode.DisplayText   = pars.Name;
            newNode.Flags         = pars.Flags;
            newNode.SubText       = pars.Scope.Name;
            newNode.DocumentOwner = pars.FilePath;
            newNode.GoToLine      = pars.Line;
            newNode.GoToColumn    = pars.Column;
            PushToCodeExplorer(parentNode, newNode);
        }
Example #2
0
 /// <summary>
 /// Dynamic-function
 /// </summary>
 /// <param name="pars"></param>
 public void Visit(ParsedFunctionCall pars)
 {
     // To code explorer
     _parsedExplorerItemsList.Add(new CodeExplorerItem {
         DisplayText   = pars.Name,
         Branch        = CodeExplorerBranch.DynamicFunctionCall,
         IconType      = pars.ExternalCall ? CodeExplorerIconType.FunctionCallExternal : CodeExplorerIconType.FunctionCallInternal,
         IsNotBlock    = true,
         Flag          = AddExternalFlag((CodeExplorerFlag)0),
         DocumentOwner = pars.FilePath,
         GoToLine      = pars.Line,
         GoToColumn    = pars.Column,
         SubString     = SetExternalInclude(pars.Scope.Name)
     });
 }