Fix cross plat tests for TagHelperBinderSyntaxTreePassTest.

This commit is contained in:
N. Taylor Mullen 2017-04-20 13:33:00 -07:00
parent f31b45d84a
commit 715aa9bcae
1 changed files with 6 additions and 6 deletions

View File

@ -31,12 +31,12 @@ namespace Microsoft.AspNetCore.Razor.Language
RazorDiagnostic.Create( RazorDiagnostic.Create(
new RazorError( new RazorError(
LegacyResources.ParseError_Unterminated_String_Literal, LegacyResources.ParseError_Unterminated_String_Literal,
new SourceLocation(16, 1, 14), new SourceLocation(14 + Environment.NewLine.Length, 1, 14),
length: 1)), length: 1)),
RazorDiagnostic.Create( RazorDiagnostic.Create(
new RazorError( new RazorError(
Resources.FormatInvalidTagHelperLookupText("\""), Resources.FormatInvalidTagHelperLookupText("\""),
new SourceLocation(16, 1, 14), new SourceLocation(14 + Environment.NewLine.Length, 1, 14),
length: 1)) length: 1))
}; };
@ -73,12 +73,12 @@ namespace Microsoft.AspNetCore.Razor.Language
RazorDiagnostic.Create( RazorDiagnostic.Create(
new RazorError( new RazorError(
LegacyResources.ParseError_Unterminated_String_Literal, LegacyResources.ParseError_Unterminated_String_Literal,
new SourceLocation(19, 1, 17), new SourceLocation(17 + Environment.NewLine.Length, 1, 17),
length: 1)), length: 1)),
RazorDiagnostic.Create( RazorDiagnostic.Create(
new RazorError( new RazorError(
Resources.FormatInvalidTagHelperLookupText("\""), Resources.FormatInvalidTagHelperLookupText("\""),
new SourceLocation(19, 1, 17), new SourceLocation(17 + Environment.NewLine.Length, 1, 17),
length: 1)) length: 1))
}; };
@ -115,12 +115,12 @@ namespace Microsoft.AspNetCore.Razor.Language
RazorDiagnostic.Create( RazorDiagnostic.Create(
new RazorError( new RazorError(
LegacyResources.ParseError_Unterminated_String_Literal, LegacyResources.ParseError_Unterminated_String_Literal,
new SourceLocation(19, 1, 17), new SourceLocation(17 + Environment.NewLine.Length, 1, 17),
length: 1)), length: 1)),
RazorDiagnostic.Create( RazorDiagnostic.Create(
new RazorError( new RazorError(
Resources.FormatInvalidTagHelperPrefixValue("tagHelperPrefix", "\"", "\""), Resources.FormatInvalidTagHelperPrefixValue("tagHelperPrefix", "\"", "\""),
new SourceLocation(19, 1, 17), new SourceLocation(17 + Environment.NewLine.Length, 1, 17),
length: 1)) length: 1))
}; };