/// <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); }
/// <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; }