/// <summary>
 /// 内部方法,不要调用
 /// </summary>
 public bool OnCompilerError(Microsoft.Vsa.IVsaError error)
 {
     myCompilerError            = new CompilerErrorInfo();
     myCompilerError.SourceItem = error.SourceItem;
     if (error.SourceItem is Microsoft.Vsa.IVsaCodeItem)
     {
         myCompilerError.ModuleName = error.SourceItem.Name;
     }
     myCompilerError.Line             = FixLineNumber(error.Line);
     myCompilerError.ErrorDescription = error.Description;
     myCompilerError.StartColumn      = error.StartColumn;
     myCompilerError.EndColumn        = error.EndColumn;
     myCompilerError.LineText         = error.LineText;
     myCompilerError.Severity         = error.Severity;
     log.Fatal("编译错误:" + myCompilerError.ToString());
     return(false);
 }
Esempio n. 2
0
        public bool OnCompilerError(Microsoft.Vsa.IVsaError error)
        {
            CompilerErrorEventArgs e = new CompilerErrorEventArgs(error);

            //
            // Invoke the delegates
            //
            if (CompilerErrorEvent != null)
            {
                CompilerErrorEvent(this, e);
            }
            // Returns TRUE if the compiler is directed to continue reporting further errors
            // to the IVsaSite object.
            // Returns FALSE if the compiler is directed to stop reporting further errors
            // to the IVsaSite object.
            bool continueErrorReports = false;

            return(continueErrorReports);
        }
Esempio n. 3
0
 //
 //Constructor.
 //
 internal CompilerErrorEventArgs(Microsoft.Vsa.IVsaError error)
 {
     this._Description = error.Description;
     this._Line        = error.Line;
     this._LineText    = error.LineText;
 }