コード例 #1
0
 public static int Main(string[] args)
 {
     if (args.Length == 0) {
         Console.WriteLine ("MonoDevelop Code Completion Database Generation Tool");
         Console.WriteLine ("Usage: dbgen <destDirectory> [<assemblyName> | <assemblyPath>]");
         return 0;
     }
     ServiceManager.AddService (new MonodocService());
     DefaultParserService parserService = new DefaultParserService ();
     parserService.GenerateAssemblyDatabase (args[0], args[1]);
     return 0;
 }
コード例 #2
0
 public ParserDatabase(DefaultParserService parserService)
 {
     this.parserService = parserService;
     combineEntryAddedHandler = new CombineEntryEventHandler (OnCombineEntryAdded);
     combineEntryRemovedHandler = new CombineEntryEventHandler (OnCombineEntryRemoved);
     nameTable = new StringNameTable (sharedNameTable);
 }
コード例 #3
0
 internal ParserContext(DefaultParserService parserService, ParserDatabase pdb, CodeCompletionDatabase db)
 {
     this.parserService = parserService;
     this.pdb = pdb;
     this.db = db;
 }
コード例 #4
0
        public void GenerateDatabase(string baseDir, string assemblyName)
        {
            if (ServiceManager.GetService (typeof(MonodocService)) == null)
                ServiceManager.AddService (new MonodocService());

            DefaultParserService parserService = new DefaultParserService ();
            parserService.GenerateAssemblyDatabase (baseDir, assemblyName);
        }