Reacting to ICompilationMessage line indexes changing to be 1-based.

This commit is contained in:
Pranav K 2015-04-07 17:38:15 -07:00
parent a8d5bb934d
commit 8c8992fa9c
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ namespace Microsoft.AspNet.Mvc.Razor
$"{sourceFilePath} ({location.LineIndex},{location.CharacterIndex}) {razorError.Message}"; $"{sourceFilePath} ({location.LineIndex},{location.CharacterIndex}) {razorError.Message}";
StartColumn = location.CharacterIndex; StartColumn = location.CharacterIndex;
StartLine = location.LineIndex; StartLine = location.LineIndex + 1;
EndColumn = location.CharacterIndex + razorError.Length; EndColumn = location.CharacterIndex + razorError.Length;
EndLine = location.LineIndex; EndLine = location.LineIndex + 1;
} }
/// <summary> /// <summary>