Fix cross plat tests for TagHelperBinderSyntaxTreePassTest.
This commit is contained in:
parent
f31b45d84a
commit
715aa9bcae
|
|
@ -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))
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue