Esempio n. 1
0
        /// <summary>
        /// All the references of {&amp;variable} found
        /// </summary>
        /// <param name="pars"></param>
        public void Visit(ParsedUsedPreProcVariable pars)
        {
            var preproc = new PreprocVarCodeItem {
                DisplayText   = pars.Name,
                Flags         = pars.Flags,
                SubText       = null,
                DocumentOwner = pars.FilePath,
                GoToLine      = pars.Line,
                GoToColumn    = pars.Column
            };

            // To code explorer
            if (pars.Flags.HasFlag(ParseFlag.NotFound))
            {
                PushToCodeExplorer(
                    GetExplorerListNode("Missing includes/variables", CodeExplorerIconType.MissingInclude),
                    preproc);
            }
            else
            {
                // To code explorer
                PushToCodeExplorer(
                    GetExplorerListNode("Preprocessed variables usage", CodeExplorerIconType.PreprocessedVariable),
                    preproc);
            }
        }
Esempio n. 2
0
 public void Visit(ParsedUsedPreProcVariable pars)
 {
     AppendEverything(pars);
 }