Exemple #1
0
        internal static ParseProjectContent CreateUninitalized(IProject project)
        {
            ParseProjectContent newProjectContent = new ParseProjectContent();

            newProjectContent.project      = project;
            newProjectContent.Language     = project.LanguageProperties;
            newProjectContent.initializing = true;
            IProjectContent mscorlib = ParserService.GetRegistryForReference(new ReferenceProjectItem(project, "mscorlib")).Mscorlib;

            newProjectContent.AddReferencedContent(mscorlib);
            return(newProjectContent);
        }
Exemple #2
0
 internal void ReInitialize1(IProgressMonitor progressMonitor)
 {
     lock (ReferencedContents) {
         ReferencedContents.Clear();
         AddReferencedContent(ParserService.GetRegistryForReference(new ReferenceProjectItem(project, "mscorlib")).Mscorlib);
     }
     // prevent adding event handler twice
     ProjectService.ProjectItemAdded   -= OnProjectItemAdded;
     ProjectService.ProjectItemRemoved -= OnProjectItemRemoved;
     initializing = true;
     Initialize1(progressMonitor);
     initializing = false;
 }