Ejemplo n.º 1
0
 static void OnParserUpdateStepFinished(ParserUpdateStepEventArgs e)
 {
     if (ParserUpdateStepFinished != null)
     {
         ParserUpdateStepFinished(typeof(ParserService), e);
     }
 }
Ejemplo n.º 2
0
 static void RaiseParserUpdateStepFinished(ParserUpdateStepEventArgs e)
 {
     WorkbenchSingleton.SafeThreadAsyncCall(
         delegate {
         ParserUpdateStepFinished(null, e);
     });
 }
		void OnUpdateStep(object sender, ParserUpdateStepEventArgs e)
		{
			if (FileUtility.IsEqualFileName(e.FileName, this.TextEditor.FileName)) {
				ParseInformation parseInfo = e.ParseInformation;
//				if (parseInfo == null && this.storedParseInformation)
//					parseInfo = ParserService.GetParseInformation(this.TextEditor.FileName);
//				if (parseInfo != null) {
//					ICompilationUnit cu = parseInfo.MostRecentCompilationUnit;
//				}
				WorkbenchSingleton.SafeThreadAsyncCall(MarkOutstanding);
			}
		}
		void OnUpdateStep(object sender, ParserUpdateStepEventArgs e)
		{
			if (FileUtility.IsEqualFileName(e.FileName, this.TextEditor.FileName)) {
				ParseInformation parseInfo = e.ParseInformation;
				if (parseInfo == null && this.declarations == null)
					parseInfo = ParserService.GetParseInformation(this.TextEditor.FileName);
				if (parseInfo != null) {
					ICompilationUnit cu = parseInfo.MostRecentCompilationUnit;
					CompileUnit booCu = cu.Tag as CompileUnit;
					if (booCu != null) {
						FindAssignmentsVisitor visitor = new FindAssignmentsVisitor();
						booCu.Accept(visitor);
						this.declarations = visitor.declarations; // volatile access!
					}
				}
				WorkbenchSingleton.SafeThreadAsyncCall(MarkOutstanding);
			}
		}
Ejemplo n.º 5
0
		static void RaiseParserUpdateStepFinished(ParserUpdateStepEventArgs e)
		{
			WorkbenchSingleton.SafeThreadAsyncCall(
				delegate {
					ParserUpdateStepFinished(null, e);
				});
		}
Ejemplo n.º 6
0
		static void OnParserUpdateStepFinished(ParserUpdateStepEventArgs e)
		{
			if (ParserUpdateStepFinished != null) {
				ParserUpdateStepFinished(typeof(ParserService), e);
			}
		}