The "root" scope of a file
Inheritance: ParsedScopeItem
Example #1
0
 /// <summary>
 /// Root file block
 /// </summary>
 /// <param name="pars"></param>
 public void Visit(ParsedFile pars)
 {
     // to code explorer
     PushToCodeExplorer(
         null,
         new RootCodeItem {
         DisplayText   = "Root",
         SubText       = null,
         DocumentOwner = pars.FilePath,
         GoToLine      = pars.Line,
         GoToColumn    = pars.Column
     });
 }
Example #2
0
 /// <summary>
 /// Root file block
 /// </summary>
 /// <param name="pars"></param>
 public void Visit(ParsedFile pars)
 {
     // to code explorer
     _parsedExplorerItemsList.Add(new CodeExplorerItem {
         DisplayText   = pars.Name,
         Branch        = CodeExplorerBranch.Root,
         IconType      = CodeExplorerIconType.BranchIcon,
         IsRoot        = true,
         Flag          = 0,
         DocumentOwner = pars.FilePath,
         GoToLine      = pars.Line,
         GoToColumn    = pars.Column,
         SubString     = null
     });
 }
Example #3
0
 public TextTokenizerVisitor(string filePath)
 {
     FilePath   = filePath;
     _rootScope = new ParsedFile("Root", new TokenEos(null, 0, 0, 0, 0));
 }