Beispiel #1
0
        public FileVisitor(DeepEnds.Core.Parser parser, Dictionary <string, DeepEnds.Core.Dependency> leaves, Dictionary <DeepEnds.Core.Dependency, HashSet <string> > links, TextWriter logger)
        {
            this.parser = parser;
            this.leaves = leaves;
            this.links  = links;
#if false
            this.visited = new HashSet <string>();
#endif
            this.logger     = logger;
            this.namespaces = string.Empty;
            this.current    = null;
        }
Beispiel #2
0
 public Parse(DeepEnds.Core.Parser parser, Dictionary <string, string> options)
 {
     this.parser        = parser;
     this.compoundTypes = Parse.SplitCSV(options["compoundtype"]);
     this.memberTypes   = Parse.SplitCSV(options["membertype"]);
     this.lookup        = new Dictionary <string, Core.Dependency>();
     this.links         = new Dictionary <Core.Dependency, List <string> >();
     this.memberHide    = false;
     if (options["memberhide"] != "false")
     {
         this.memberHide = true;
     }
 }
Beispiel #3
0
 public ParseVS(DeepEnds.Core.Parser parser, Dictionary <string, string> options, System.IO.TextWriter logger)
 {
     this.logger   = logger;
     this.projects = new Dictionary <string, List <string> >();
     if (options["parser"] == "libclang")
     {
         this.parse     = new Clang.ParseClang(parser, logger);
         this.useFilter = false;
     }
     else
     {
         this.parse     = new Include.Parse(parser, logger);
         this.useFilter = options["filter"] != "directory";
     }
 }
Beispiel #4
0
 public TypeWalker(DeepEnds.Core.Parser parser, DeepEnds.Core.Dependency leaf, SemanticModel model)
 {
     this.parser = parser;
     this.leaf   = leaf;
     this.model  = model;
 }
Beispiel #5
0
        public static void Link(DeepEnds.Core.Parser parser, SyntaxTree tree, SemanticModel model)
        {
            var deps = new AddDependencies(parser, model);

            deps.Visit(tree);
        }
Beispiel #6
0
        public static void Process(DeepEnds.Core.Parser parser, DeepEnds.Core.Sources sources, SyntaxTree tree, string filename)
        {
            var make = new MakeLeaves(parser, sources, filename);

            make.Visit(tree);
        }
Beispiel #7
0
 public AddDependencies(DeepEnds.Core.Parser parser, SemanticModel model)
 {
     this.parser       = parser;
     this.dependencies = parser.Dependencies;
     this.model        = model;
 }
Beispiel #8
0
 public MakeLeaves(DeepEnds.Core.Parser parser, DeepEnds.Core.Sources sources, string filename)
 {
     this.parser   = parser;
     this.sources  = sources;
     this.filename = filename;
 }
Beispiel #9
0
 public Parse(DeepEnds.Core.Parser parser)
 {
     this.parser = parser;
     this.paths  = new Dictionary <string, string>();
     this.lookup = new Dictionary <string, Core.Dependency>();
 }
Beispiel #10
0
 public Parse(DeepEnds.Core.Parser parser)
 {
     this.parser  = parser;
     this.csfiles = new Dictionary <string, string>();
 }
Beispiel #11
0
 public Parse(DeepEnds.Core.Parser parser, System.IO.TextWriter logger)
 {
     this.parser = parser;
     this.logger = logger;
     this.nodes  = new Dictionary <string, DeepEnds.Core.Dependency>();
 }
Beispiel #12
0
 public Parse(DeepEnds.Core.Parser parser)
 {
     this.parser = parser;
 }