Пример #1
0
        void OnParseInformationChanged(object sender, ParseInformationEventArgs e)
        {
            // To prevent some NullReferenceException (possibly when the user switch between editors)
            if (this.ParentEditor == null || this.ParentEditor.DisplayBinding == null || e == null)
            {
                return;
            }
            if (this.ParentEditor.DisplayBinding.ContentName != e.FileName)
            {
                return;
            }

            lastCu = e.ParseInformation.MostRecentCompilationUnit;
            UpdateAutocorTimer();
        }
Пример #2
0
        void ParseCompilationUnit(ICompilationUnitBase cu)
        {
            // No new errors
            if (!cu.ErrorsDuringCompile || cu.ErrorInformation == null)
            {
                return;
            }

            // We replace the error tags at the highest priority
            synErrorTag.Priority = buf.TagTable.Size - 1;
            // Else we underline the error
            foreach (ErrorInfo info in cu.ErrorInformation)
            {
                UnderLineError(info);
            }
        }
		void OnParseInformationChanged (object sender, ParseInformationEventArgs e)
		{
			// To prevent some NullReferenceException (possibly when the user switch between editors)
			if (this.ParentEditor == null || this.ParentEditor.DisplayBinding == null || e == null)
				return;
			if (this.ParentEditor.DisplayBinding.ContentName != e.FileName)
				return;
			
			lastCu = e.ParseInformation.MostRecentCompilationUnit;
			UpdateAutocorTimer ();
		}
		void ParseCompilationUnit (ICompilationUnitBase cu)
		{
			// No new errors
			if (!cu.ErrorsDuringCompile || cu.ErrorInformation == null)
				return;
			
			// We replace the error tags at the highest priority
			synErrorTag.Priority = buf.TagTable.Size - 1;
			// Else we underline the error
			foreach (ErrorInfo info in cu.ErrorInformation)
				UnderLineError (info);
		}