File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Mono.TextTemplating.Roslyn Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,15 @@ public override async Task<CodeCompilerResult> CompileFile (
73
73
Success = false ,
74
74
Output = new List < string > ( ) ,
75
75
Errors = failures . Select (
76
- x => new CodeCompilerError { Message = x . GetMessage ( ) } ) . ToList ( ) ,
76
+ x => new CodeCompilerError {
77
+ Message = x . GetMessage ( ) ,
78
+ Column = x . Location . GetMappedLineSpan ( ) . StartLinePosition . Character ,
79
+ Line = x . Location . GetMappedLineSpan ( ) . StartLinePosition . Line ,
80
+ EndLine = x . Location . GetMappedLineSpan ( ) . EndLinePosition . Line ,
81
+ EndColumn = x . Location . GetMappedLineSpan ( ) . EndLinePosition . Character ,
82
+ IsError = x . Severity == DiagnosticSeverity . Error ,
83
+ Origin = x . Location . GetMappedLineSpan ( ) . Path
84
+ } ) . ToList ( )
77
85
} ;
78
86
}
79
87
}
You can’t perform that action at this time.
0 commit comments