Revert change to EndLocation as it was incorrectly changed.

This commit is contained in:
Todd Grunke 2020-06-12 08:28:32 -07:00
parent 904fd19605
commit 9cf611b9e2
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
public SourceLocation EndLocation
{
get { return new SourceLocation(_filePath, Length, _lines.Count - 1, Length); }
get { return new SourceLocation(_filePath, Length, _lines.Count - 1, _lines[_lines.Count - 1].Length); }
}
public CharacterReference CharAt(int absoluteIndex)