diff --git a/src/Microsoft.AspNetCore.Razor.Language/Legacy/Block.cs b/src/Microsoft.AspNetCore.Razor.Language/Legacy/Block.cs
index 4c8f962281..6170605e8e 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/Legacy/Block.cs
+++ b/src/Microsoft.AspNetCore.Razor.Language/Legacy/Block.cs
@@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
{
if (type == null)
{
- throw new InvalidOperationException(LegacyResources.Block_Type_Not_Specified);
+ throw new InvalidOperationException(Resources.Block_Type_Not_Specified);
}
Type = type.Value;
diff --git a/src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpCodeParser.cs b/src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpCodeParser.cs
index 2f9c1f9e83..9cdbb1389e 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpCodeParser.cs
+++ b/src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpCodeParser.cs
@@ -196,7 +196,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
{
if (Context == null)
{
- throw new InvalidOperationException(LegacyResources.Parser_Context_Not_Set);
+ throw new InvalidOperationException(Resources.Parser_Context_Not_Set);
}
Span.Start = CurrentLocation;
@@ -370,7 +370,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
private void VerbatimBlock()
{
Assert(CSharpSymbolType.LeftBrace);
- var block = new Block(LegacyResources.BlockName_Code, CurrentStart);
+ var block = new Block(Resources.BlockName_Code, CurrentStart);
AcceptAndMoveNext();
// Set up the "{" span and output
@@ -609,7 +609,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
private void ExplicitExpression()
{
- var block = new Block(LegacyResources.BlockName_ExplicitExpression, CurrentStart);
+ var block = new Block(Resources.BlockName_ExplicitExpression, CurrentStart);
Assert(CSharpSymbolType.LeftParenthesis);
AcceptAndMoveNext();
Span.EditHandler.AcceptedCharacters = AcceptedCharactersInternal.None;
@@ -1355,7 +1355,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
break;
case CSharpSymbolType.LeftBrace:
// Verbatim Block
- block = block ?? new Block(LegacyResources.BlockName_Code, CurrentStart);
+ block = block ?? new Block(Resources.BlockName_Code, CurrentStart);
AcceptAndMoveNext();
CodeBlock(block);
break;
@@ -1775,7 +1775,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
RazorDiagnosticFactory.CreateParsing_UnexpectedDirectiveLiteral(
new SourceSpan(CurrentStart, CurrentSymbol.Content.Length),
descriptor.Directive,
- LegacyResources.ErrorComponent_Newline));
+ Resources.ErrorComponent_Newline));
}
Span.ChunkGenerator = SpanChunkGenerator.Null;
diff --git a/src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpLanguageCharacteristics.cs b/src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpLanguageCharacteristics.cs
index b52d48cbf8..44ce3a89ce 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpLanguageCharacteristics.cs
+++ b/src/Microsoft.AspNetCore.Razor.Language/Legacy/CSharpLanguageCharacteristics.cs
@@ -87,25 +87,25 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
switch (type)
{
case CSharpSymbolType.Identifier:
- return LegacyResources.CSharpSymbol_Identifier;
+ return Resources.CSharpSymbol_Identifier;
case CSharpSymbolType.Keyword:
- return LegacyResources.CSharpSymbol_Keyword;
+ return Resources.CSharpSymbol_Keyword;
case CSharpSymbolType.IntegerLiteral:
- return LegacyResources.CSharpSymbol_IntegerLiteral;
+ return Resources.CSharpSymbol_IntegerLiteral;
case CSharpSymbolType.NewLine:
- return LegacyResources.CSharpSymbol_Newline;
+ return Resources.CSharpSymbol_Newline;
case CSharpSymbolType.WhiteSpace:
- return LegacyResources.CSharpSymbol_Whitespace;
+ return Resources.CSharpSymbol_Whitespace;
case CSharpSymbolType.Comment:
- return LegacyResources.CSharpSymbol_Comment;
+ return Resources.CSharpSymbol_Comment;
case CSharpSymbolType.RealLiteral:
- return LegacyResources.CSharpSymbol_RealLiteral;
+ return Resources.CSharpSymbol_RealLiteral;
case CSharpSymbolType.CharacterLiteral:
- return LegacyResources.CSharpSymbol_CharacterLiteral;
+ return Resources.CSharpSymbol_CharacterLiteral;
case CSharpSymbolType.StringLiteral:
- return LegacyResources.CSharpSymbol_StringLiteral;
+ return Resources.CSharpSymbol_StringLiteral;
default:
- return LegacyResources.Symbol_Unknown;
+ return Resources.Symbol_Unknown;
}
}
return sample;
diff --git a/src/Microsoft.AspNetCore.Razor.Language/Legacy/HtmlLanguageCharacteristics.cs b/src/Microsoft.AspNetCore.Razor.Language/Legacy/HtmlLanguageCharacteristics.cs
index 1021a6ac90..cc44a34368 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/Legacy/HtmlLanguageCharacteristics.cs
+++ b/src/Microsoft.AspNetCore.Razor.Language/Legacy/HtmlLanguageCharacteristics.cs
@@ -24,11 +24,11 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
switch (type)
{
case HtmlSymbolType.Text:
- return LegacyResources.HtmlSymbol_Text;
+ return Resources.HtmlSymbol_Text;
case HtmlSymbolType.WhiteSpace:
- return LegacyResources.HtmlSymbol_WhiteSpace;
+ return Resources.HtmlSymbol_WhiteSpace;
case HtmlSymbolType.NewLine:
- return LegacyResources.HtmlSymbol_NewLine;
+ return Resources.HtmlSymbol_NewLine;
case HtmlSymbolType.OpenAngle:
return "<";
case HtmlSymbolType.Bang:
@@ -56,13 +56,13 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
case HtmlSymbolType.Colon:
return ":";
case HtmlSymbolType.RazorComment:
- return LegacyResources.HtmlSymbol_RazorComment;
+ return Resources.HtmlSymbol_RazorComment;
case HtmlSymbolType.RazorCommentStar:
return "*";
case HtmlSymbolType.RazorCommentTransition:
return "@";
default:
- return LegacyResources.Symbol_Unknown;
+ return Resources.Symbol_Unknown;
}
}
diff --git a/src/Microsoft.AspNetCore.Razor.Language/Legacy/HtmlMarkupParser.cs b/src/Microsoft.AspNetCore.Razor.Language/Legacy/HtmlMarkupParser.cs
index c1f21905f3..4fdee1322f 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/Legacy/HtmlMarkupParser.cs
+++ b/src/Microsoft.AspNetCore.Razor.Language/Legacy/HtmlMarkupParser.cs
@@ -267,7 +267,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
{
if (Context == null)
{
- throw new InvalidOperationException(LegacyResources.Parser_Context_Not_Set);
+ throw new InvalidOperationException(Resources.Parser_Context_Not_Set);
}
using (PushSpanConfig(DefaultMarkupSpan))
@@ -1440,7 +1440,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
{
if (Context == null)
{
- throw new InvalidOperationException(LegacyResources.Parser_Context_Not_Set);
+ throw new InvalidOperationException(Resources.Parser_Context_Not_Set);
}
using (PushSpanConfig(DefaultMarkupSpan))
@@ -1592,7 +1592,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
{
if (Context == null)
{
- throw new InvalidOperationException(LegacyResources.Parser_Context_Not_Set);
+ throw new InvalidOperationException(Resources.Parser_Context_Not_Set);
}
using (PushSpanConfig(DefaultMarkupSpan))
diff --git a/src/Microsoft.AspNetCore.Razor.Language/Legacy/SyntaxTreeBuilder.cs b/src/Microsoft.AspNetCore.Razor.Language/Legacy/SyntaxTreeBuilder.cs
index 625a33fba4..6a48614ad7 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/Legacy/SyntaxTreeBuilder.cs
+++ b/src/Microsoft.AspNetCore.Razor.Language/Legacy/SyntaxTreeBuilder.cs
@@ -39,7 +39,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
{
if (_blockStack.Count == 0)
{
- throw new InvalidOperationException(LegacyResources.ParserContext_NoCurrentBlock);
+ throw new InvalidOperationException(Resources.ParserContext_NoCurrentBlock);
}
CurrentBlock.Children.Add(span);
LastSpan = span;
@@ -63,7 +63,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
{
if (_blockStack.Count == 0)
{
- throw new InvalidOperationException(LegacyResources.EndBlock_Called_Without_Matching_StartBlock);
+ throw new InvalidOperationException(Resources.EndBlock_Called_Without_Matching_StartBlock);
}
if (_blockStack.Count > 1)
@@ -78,11 +78,11 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
{
if (_blockStack.Count == 0)
{
- throw new InvalidOperationException(LegacyResources.ParserContext_CannotCompleteTree_NoRootBlock);
+ throw new InvalidOperationException(Resources.ParserContext_CannotCompleteTree_NoRootBlock);
}
if (_blockStack.Count != 1)
{
- throw new InvalidOperationException(LegacyResources.ParserContext_CannotCompleteTree_OutstandingBlocks);
+ throw new InvalidOperationException(Resources.ParserContext_CannotCompleteTree_OutstandingBlocks);
}
var rootBuilder = _blockStack.Pop();
diff --git a/src/Microsoft.AspNetCore.Razor.Language/Legacy/TokenizerBackedParser.cs b/src/Microsoft.AspNetCore.Razor.Language/Legacy/TokenizerBackedParser.cs
index 227c482a61..6f564eb442 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/Legacy/TokenizerBackedParser.cs
+++ b/src/Microsoft.AspNetCore.Razor.Language/Legacy/TokenizerBackedParser.cs
@@ -554,7 +554,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
protected virtual void OutputSpanBeforeRazorComment()
{
- throw new InvalidOperationException(LegacyResources.Language_Does_Not_Support_RazorComment);
+ throw new InvalidOperationException(Resources.Language_Does_Not_Support_RazorComment);
}
private void CommentSpanConfig(SpanBuilder span)
@@ -569,7 +569,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
!Language.KnowsSymbolType(KnownSymbolType.CommentStar) ||
!Language.KnowsSymbolType(KnownSymbolType.CommentBody))
{
- throw new InvalidOperationException(LegacyResources.Language_Does_Not_Support_RazorComment);
+ throw new InvalidOperationException(Resources.Language_Does_Not_Support_RazorComment);
}
OutputSpanBeforeRazorComment();
using (PushSpanConfig(CommentSpanConfig))
diff --git a/src/Microsoft.AspNetCore.Razor.Language/LegacyResources.resx b/src/Microsoft.AspNetCore.Razor.Language/LegacyResources.resx
deleted file mode 100644
index 27a7c396a5..0000000000
--- a/src/Microsoft.AspNetCore.Razor.Language/LegacyResources.resx
+++ /dev/null
@@ -1,414 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Value cannot be null or an empty string.
-
-
- Value must be between {0} and {1}.
-
-
- Value must be a value from the "{0}" enumeration.
-
-
- Value must be greater than {0}.
-
-
- Value must be greater than or equal to {0}.
-
-
- Value must be less than {0}.
-
-
- Value must be less than or equal to {0}.
-
-
- Value cannot be an empty string. It must either be null or a non-empty string.
-
-
- code
- This is a literal used when composing ParserError_* messages. Most blocks are named by the keyword that starts them, for example "if". However, for those without keywords, a (localizable) name must be used. This literal is ALWAYS used mid-sentence, thus should not be capitalized.
-
-
- explicit expression
- This is a literal used when composing ParserError_* messages. Most blocks are named by the keyword that starts them, for example "if". However, for those without keywords, a (localizable) name must be used. This literal is ALWAYS used mid-sentence, thus should not be capitalized.
-
-
- Block cannot be built because a Type has not been specified in the BlockBuilder
-
-
- <<character literal>>
-
-
- <<comment>>
-
-
- <<identifier>>
-
-
- <<integer literal>>
-
-
- <<keyword>>
-
-
- <<newline sequence>>
-
-
- <<real literal>>
-
-
- <<string literal>>
-
-
- <<white space>>
-
-
- The '{0}' directive expects an identifier.
-
-
- The '{0}' directive expects a namespace name.
-
-
- The '{0}' directive expects a string surrounded by double quotes.
-
-
- The '{0}' directive expects a type name.
-
-
- "EndBlock" was called without a matching call to "StartBlock".
-
-
- "{0}" character
-
-
- end of file
-
-
- line break
-
-
- space or line break
-
-
- <<newline sequence>>
-
-
- <<razor comment>>
-
-
- <<text>>
-
-
- <<white space>>
-
-
- Cannot use built-in RazorComment handler, language characteristics does not define the CommentStart, CommentStar and CommentBody known symbol types or parser does not override TokenizerBackedParser.OutputSpanBeforeRazorComment
-
-
- The "@" character must be followed by a ":", "(", or a C# identifier. If you intended to switch to markup, use an HTML start tag, for example:
-
-@if(isLoggedIn) {{
- <p>Hello, @user!</p>
-}}
- "{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"
-
-
- End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence.
-
-
- Directive '{0}' must have a value.
-
-
- An opening "{0}" is missing the corresponding closing "{1}".
-
-
- The {0} block is missing a closing "{1}" character. Make sure you have a matching "{1}" character for all the "{2}" characters within this block, and that none of the "{1}" characters are being interpreted as markup.
-
-
- Expected "{0}".
-
-
- The {0} directive is not supported.
-
-
- Optional quote around the directive '{0}' is missing the corresponding opening or closing quote.
-
-
- The 'inherits' keyword must be followed by a type name on the same line.
-
-
- Inline markup blocks (@<p>Content</p>) cannot be nested. Only one level of inline markup is allowed.
-
-
- Markup in a code block must start with a tag and all start tags must be matched with end tags. Do not use unclosed tags like "<br>". Instead use self-closing tags like "<br/>".
-
-
- The "{0}" element was not closed. All elements must be either self-closing or have a matching end tag.
-
-
- Sections cannot be empty. The "@section" keyword must be followed by a block of markup surrounded by "{}". For example:
-
-@section Sidebar {
- <!-- Markup and text goes here -->
-}
-
-
- Namespace imports and type aliases cannot be placed within code blocks. They must immediately follow an "@" character in markup. It is recommended that you put them at the top of the page, as in the following example:
-
-@using System.Drawing;
-@{{
- // OK here to use types from System.Drawing in the page.
-}}
- "{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"
-
-
- Outer tag is missing a name. The first character of a markup block must be an HTML tag with a valid name.
-
-
- End of file was reached before the end of the block comment. All comments that start with the "@*" sequence must be terminated with a matching "*@" sequence.
-
-
- "{0}" is a reserved word and cannot be used in implicit expressions. An explicit expression ("@()") must be used.
-
-
- Section blocks ("{0}") cannot be nested. Only one level of section blocks are allowed.
-
-
- Expected a "{0}" but found a "{1}". Block statements must be enclosed in "{{" and "}}". You cannot use single-statement control-flow statements in CSHTML pages. For example, the following is not allowed:
-
-@if(isLoggedIn)
- <p>Hello, @user</p>
-
-Instead, wrap the contents of the block in "{{}}":
-
-@if(isLoggedIn) {{
- <p>Hello, @user</p>
-}}
- {0} is only ever a single character
-
-
- "<text>" and "</text>" tags cannot contain attributes.
-
-
- Encountered end tag "{0}" with no matching start tag. Are your start/end tags properly balanced?
-
-
- Unexpected {0} after section keyword. Section names must start with an "_" or alphabetic character, and the remaining characters must be either "_" or alphanumeric.
-
-
- "{0}" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{{" are valid.
- "{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"
-
-
- End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@"
-
-
- End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@"
-
-
- Unexpected "{{" after "@" character. Once inside the body of a code block (@if {{}}, @{{}}, etc.) you do not need to use "@{{" to switch to code.
- "{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"
-
-
- A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{{" are valid at the start of a code block and they must occur immediately following "@" with no space in between.
- "{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"
-
-
- End of file or an unexpected character was reached before the "{0}" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "<" HTML entity.
-
-
- Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines.
-
-
- Cannot complete the tree, StartBlock must be called at least once.
-
-
- Cannot complete the tree, there are still open blocks.
-
-
- Cannot finish span, there is no current block. Call StartBlock at least once before finishing a span
-
-
- Cannot complete action, the parser has finished. Only CompleteParse can be called to extract the final parser results after the parser has finished
-
-
- Parser was started with a null Context property. The Context property must be set BEFORE calling any methods on the parser.
-
-
- Attribute '{0}' on tag helper element '{1}' requires a value. Tag helper bound attributes of type '{2}' cannot be empty or contain only whitespace.
-
-
- @section Header { ... }
- In CSHTML, the @section keyword is case-sensitive and lowercase (as with all C# keywords)
-
-
- Cannot perform '{1}' operations on '{0}' instances with different file paths.
-
-
- <<unknown>>
-
-
- The tag helper attribute '{0}' in element '{1}' is missing a key. The syntax is '<{1} {0}{{ key }}="value">'.
-
-
- TagHelper attributes must be well-formed.
-
-
- The parent <{0}> tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed.
-
-
- Found an end tag (</{0}>) for tag helper '{1}' with tag structure that disallows an end tag ('{2}').
-
-
- Tag helpers '{0}' and '{1}' targeting element '{2}' must not expect different {3} values.
-
-
- The <{0}> tag is not allowed by parent <{1}> tag helper. Only child tags with name(s) '{2}' are allowed.
-
-
- Found a malformed '{0}' tag helper. Tag helpers must have a start and end tag or be self closing.
-
-
- Missing close angle for tag helper '{0}'.
-
-
- Tag Helper '{0}'s attributes must have names.
-
-
- The tag helper '{0}' must not have C# in the element's attribute declaration area.
-
-
- Code blocks (e.g. @{{var variable = 23;}}) must not appear in non-string tag helper attribute values.
- Already in an expression (code) context. If necessary an explicit expression (e.g. @(@readonly)) may be used.
-
-
- Inline markup blocks (e.g. @<p>content</p>) must not appear in non-string tag helper attribute values.
- Expected a '{0}' attribute value, not a string.
-
-
- In order to put a symbol back, it must have been the symbol which ended at the current position. The specified symbol ends at {0}, but the current position is {1}
-
-
- Unexpected literal following the '{0}' directive. Expected '{1}'.
-
-
- Unexpected end of file following the '{0}' directive. Expected '{1}'.
-
-
\ No newline at end of file
diff --git a/src/Microsoft.AspNetCore.Razor.Language/Properties/LegacyResources.Designer.cs b/src/Microsoft.AspNetCore.Razor.Language/Properties/LegacyResources.Designer.cs
deleted file mode 100644
index e7ec427c84..0000000000
--- a/src/Microsoft.AspNetCore.Razor.Language/Properties/LegacyResources.Designer.cs
+++ /dev/null
@@ -1,1296 +0,0 @@
-//
-namespace Microsoft.AspNetCore.Razor.Language
-{
- using System.Globalization;
- using System.Reflection;
- using System.Resources;
-
- internal static class LegacyResources
- {
- private static readonly ResourceManager _resourceManager
- = new ResourceManager("Microsoft.AspNetCore.Razor.Language.LegacyResources", typeof(LegacyResources).GetTypeInfo().Assembly);
-
- ///
- /// Value cannot be null or an empty string.
- ///
- internal static string Argument_Cannot_Be_Null_Or_Empty
- {
- get => GetString("Argument_Cannot_Be_Null_Or_Empty");
- }
-
- ///
- /// Value cannot be null or an empty string.
- ///
- internal static string FormatArgument_Cannot_Be_Null_Or_Empty()
- => GetString("Argument_Cannot_Be_Null_Or_Empty");
-
- ///
- /// Value must be between {0} and {1}.
- ///
- internal static string Argument_Must_Be_Between
- {
- get => GetString("Argument_Must_Be_Between");
- }
-
- ///
- /// Value must be between {0} and {1}.
- ///
- internal static string FormatArgument_Must_Be_Between(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("Argument_Must_Be_Between"), p0, p1);
-
- ///
- /// Value must be a value from the "{0}" enumeration.
- ///
- internal static string Argument_Must_Be_Enum_Member
- {
- get => GetString("Argument_Must_Be_Enum_Member");
- }
-
- ///
- /// Value must be a value from the "{0}" enumeration.
- ///
- internal static string FormatArgument_Must_Be_Enum_Member(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("Argument_Must_Be_Enum_Member"), p0);
-
- ///
- /// Value must be greater than {0}.
- ///
- internal static string Argument_Must_Be_GreaterThan
- {
- get => GetString("Argument_Must_Be_GreaterThan");
- }
-
- ///
- /// Value must be greater than {0}.
- ///
- internal static string FormatArgument_Must_Be_GreaterThan(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("Argument_Must_Be_GreaterThan"), p0);
-
- ///
- /// Value must be greater than or equal to {0}.
- ///
- internal static string Argument_Must_Be_GreaterThanOrEqualTo
- {
- get => GetString("Argument_Must_Be_GreaterThanOrEqualTo");
- }
-
- ///
- /// Value must be greater than or equal to {0}.
- ///
- internal static string FormatArgument_Must_Be_GreaterThanOrEqualTo(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("Argument_Must_Be_GreaterThanOrEqualTo"), p0);
-
- ///
- /// Value must be less than {0}.
- ///
- internal static string Argument_Must_Be_LessThan
- {
- get => GetString("Argument_Must_Be_LessThan");
- }
-
- ///
- /// Value must be less than {0}.
- ///
- internal static string FormatArgument_Must_Be_LessThan(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("Argument_Must_Be_LessThan"), p0);
-
- ///
- /// Value must be less than or equal to {0}.
- ///
- internal static string Argument_Must_Be_LessThanOrEqualTo
- {
- get => GetString("Argument_Must_Be_LessThanOrEqualTo");
- }
-
- ///
- /// Value must be less than or equal to {0}.
- ///
- internal static string FormatArgument_Must_Be_LessThanOrEqualTo(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("Argument_Must_Be_LessThanOrEqualTo"), p0);
-
- ///
- /// Value cannot be an empty string. It must either be null or a non-empty string.
- ///
- internal static string Argument_Must_Be_Null_Or_Non_Empty
- {
- get => GetString("Argument_Must_Be_Null_Or_Non_Empty");
- }
-
- ///
- /// Value cannot be an empty string. It must either be null or a non-empty string.
- ///
- internal static string FormatArgument_Must_Be_Null_Or_Non_Empty()
- => GetString("Argument_Must_Be_Null_Or_Non_Empty");
-
- ///
- /// code
- ///
- internal static string BlockName_Code
- {
- get => GetString("BlockName_Code");
- }
-
- ///
- /// code
- ///
- internal static string FormatBlockName_Code()
- => GetString("BlockName_Code");
-
- ///
- /// explicit expression
- ///
- internal static string BlockName_ExplicitExpression
- {
- get => GetString("BlockName_ExplicitExpression");
- }
-
- ///
- /// explicit expression
- ///
- internal static string FormatBlockName_ExplicitExpression()
- => GetString("BlockName_ExplicitExpression");
-
- ///
- /// Block cannot be built because a Type has not been specified in the BlockBuilder
- ///
- internal static string Block_Type_Not_Specified
- {
- get => GetString("Block_Type_Not_Specified");
- }
-
- ///
- /// Block cannot be built because a Type has not been specified in the BlockBuilder
- ///
- internal static string FormatBlock_Type_Not_Specified()
- => GetString("Block_Type_Not_Specified");
-
- ///
- /// <<character literal>>
- ///
- internal static string CSharpSymbol_CharacterLiteral
- {
- get => GetString("CSharpSymbol_CharacterLiteral");
- }
-
- ///
- /// <<character literal>>
- ///
- internal static string FormatCSharpSymbol_CharacterLiteral()
- => GetString("CSharpSymbol_CharacterLiteral");
-
- ///
- /// <<comment>>
- ///
- internal static string CSharpSymbol_Comment
- {
- get => GetString("CSharpSymbol_Comment");
- }
-
- ///
- /// <<comment>>
- ///
- internal static string FormatCSharpSymbol_Comment()
- => GetString("CSharpSymbol_Comment");
-
- ///
- /// <<identifier>>
- ///
- internal static string CSharpSymbol_Identifier
- {
- get => GetString("CSharpSymbol_Identifier");
- }
-
- ///
- /// <<identifier>>
- ///
- internal static string FormatCSharpSymbol_Identifier()
- => GetString("CSharpSymbol_Identifier");
-
- ///
- /// <<integer literal>>
- ///
- internal static string CSharpSymbol_IntegerLiteral
- {
- get => GetString("CSharpSymbol_IntegerLiteral");
- }
-
- ///
- /// <<integer literal>>
- ///
- internal static string FormatCSharpSymbol_IntegerLiteral()
- => GetString("CSharpSymbol_IntegerLiteral");
-
- ///
- /// <<keyword>>
- ///
- internal static string CSharpSymbol_Keyword
- {
- get => GetString("CSharpSymbol_Keyword");
- }
-
- ///
- /// <<keyword>>
- ///
- internal static string FormatCSharpSymbol_Keyword()
- => GetString("CSharpSymbol_Keyword");
-
- ///
- /// <<newline sequence>>
- ///
- internal static string CSharpSymbol_Newline
- {
- get => GetString("CSharpSymbol_Newline");
- }
-
- ///
- /// <<newline sequence>>
- ///
- internal static string FormatCSharpSymbol_Newline()
- => GetString("CSharpSymbol_Newline");
-
- ///
- /// <<real literal>>
- ///
- internal static string CSharpSymbol_RealLiteral
- {
- get => GetString("CSharpSymbol_RealLiteral");
- }
-
- ///
- /// <<real literal>>
- ///
- internal static string FormatCSharpSymbol_RealLiteral()
- => GetString("CSharpSymbol_RealLiteral");
-
- ///
- /// <<string literal>>
- ///
- internal static string CSharpSymbol_StringLiteral
- {
- get => GetString("CSharpSymbol_StringLiteral");
- }
-
- ///
- /// <<string literal>>
- ///
- internal static string FormatCSharpSymbol_StringLiteral()
- => GetString("CSharpSymbol_StringLiteral");
-
- ///
- /// <<white space>>
- ///
- internal static string CSharpSymbol_Whitespace
- {
- get => GetString("CSharpSymbol_Whitespace");
- }
-
- ///
- /// <<white space>>
- ///
- internal static string FormatCSharpSymbol_Whitespace()
- => GetString("CSharpSymbol_Whitespace");
-
- ///
- /// The '{0}' directive expects an identifier.
- ///
- internal static string DirectiveExpectsIdentifier
- {
- get => GetString("DirectiveExpectsIdentifier");
- }
-
- ///
- /// The '{0}' directive expects an identifier.
- ///
- internal static string FormatDirectiveExpectsIdentifier(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveExpectsIdentifier"), p0);
-
- ///
- /// The '{0}' directive expects a namespace name.
- ///
- internal static string DirectiveExpectsNamespace
- {
- get => GetString("DirectiveExpectsNamespace");
- }
-
- ///
- /// The '{0}' directive expects a namespace name.
- ///
- internal static string FormatDirectiveExpectsNamespace(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveExpectsNamespace"), p0);
-
- ///
- /// The '{0}' directive expects a string surrounded by double quotes.
- ///
- internal static string DirectiveExpectsQuotedStringLiteral
- {
- get => GetString("DirectiveExpectsQuotedStringLiteral");
- }
-
- ///
- /// The '{0}' directive expects a string surrounded by double quotes.
- ///
- internal static string FormatDirectiveExpectsQuotedStringLiteral(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveExpectsQuotedStringLiteral"), p0);
-
- ///
- /// The '{0}' directive expects a type name.
- ///
- internal static string DirectiveExpectsTypeName
- {
- get => GetString("DirectiveExpectsTypeName");
- }
-
- ///
- /// The '{0}' directive expects a type name.
- ///
- internal static string FormatDirectiveExpectsTypeName(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveExpectsTypeName"), p0);
-
- ///
- /// "EndBlock" was called without a matching call to "StartBlock".
- ///
- internal static string EndBlock_Called_Without_Matching_StartBlock
- {
- get => GetString("EndBlock_Called_Without_Matching_StartBlock");
- }
-
- ///
- /// "EndBlock" was called without a matching call to "StartBlock".
- ///
- internal static string FormatEndBlock_Called_Without_Matching_StartBlock()
- => GetString("EndBlock_Called_Without_Matching_StartBlock");
-
- ///
- /// "{0}" character
- ///
- internal static string ErrorComponent_Character
- {
- get => GetString("ErrorComponent_Character");
- }
-
- ///
- /// "{0}" character
- ///
- internal static string FormatErrorComponent_Character(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("ErrorComponent_Character"), p0);
-
- ///
- /// end of file
- ///
- internal static string ErrorComponent_EndOfFile
- {
- get => GetString("ErrorComponent_EndOfFile");
- }
-
- ///
- /// end of file
- ///
- internal static string FormatErrorComponent_EndOfFile()
- => GetString("ErrorComponent_EndOfFile");
-
- ///
- /// line break
- ///
- internal static string ErrorComponent_Newline
- {
- get => GetString("ErrorComponent_Newline");
- }
-
- ///
- /// line break
- ///
- internal static string FormatErrorComponent_Newline()
- => GetString("ErrorComponent_Newline");
-
- ///
- /// space or line break
- ///
- internal static string ErrorComponent_Whitespace
- {
- get => GetString("ErrorComponent_Whitespace");
- }
-
- ///
- /// space or line break
- ///
- internal static string FormatErrorComponent_Whitespace()
- => GetString("ErrorComponent_Whitespace");
-
- ///
- /// <<newline sequence>>
- ///
- internal static string HtmlSymbol_NewLine
- {
- get => GetString("HtmlSymbol_NewLine");
- }
-
- ///
- /// <<newline sequence>>
- ///
- internal static string FormatHtmlSymbol_NewLine()
- => GetString("HtmlSymbol_NewLine");
-
- ///
- /// <<razor comment>>
- ///
- internal static string HtmlSymbol_RazorComment
- {
- get => GetString("HtmlSymbol_RazorComment");
- }
-
- ///
- /// <<razor comment>>
- ///
- internal static string FormatHtmlSymbol_RazorComment()
- => GetString("HtmlSymbol_RazorComment");
-
- ///
- /// <<text>>
- ///
- internal static string HtmlSymbol_Text
- {
- get => GetString("HtmlSymbol_Text");
- }
-
- ///
- /// <<text>>
- ///
- internal static string FormatHtmlSymbol_Text()
- => GetString("HtmlSymbol_Text");
-
- ///
- /// <<white space>>
- ///
- internal static string HtmlSymbol_WhiteSpace
- {
- get => GetString("HtmlSymbol_WhiteSpace");
- }
-
- ///
- /// <<white space>>
- ///
- internal static string FormatHtmlSymbol_WhiteSpace()
- => GetString("HtmlSymbol_WhiteSpace");
-
- ///
- /// Cannot use built-in RazorComment handler, language characteristics does not define the CommentStart, CommentStar and CommentBody known symbol types or parser does not override TokenizerBackedParser.OutputSpanBeforeRazorComment
- ///
- internal static string Language_Does_Not_Support_RazorComment
- {
- get => GetString("Language_Does_Not_Support_RazorComment");
- }
-
- ///
- /// Cannot use built-in RazorComment handler, language characteristics does not define the CommentStart, CommentStar and CommentBody known symbol types or parser does not override TokenizerBackedParser.OutputSpanBeforeRazorComment
- ///
- internal static string FormatLanguage_Does_Not_Support_RazorComment()
- => GetString("Language_Does_Not_Support_RazorComment");
-
- ///
- /// The "@" character must be followed by a ":", "(", or a C# identifier. If you intended to switch to markup, use an HTML start tag, for example:
- ///
- /// @if(isLoggedIn) {{
- /// <p>Hello, @user!</p>
- /// }}
- ///
- internal static string ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start
- {
- get => GetString("ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start");
- }
-
- ///
- /// The "@" character must be followed by a ":", "(", or a C# identifier. If you intended to switch to markup, use an HTML start tag, for example:
- ///
- /// @if(isLoggedIn) {{
- /// <p>Hello, @user!</p>
- /// }}
- ///
- internal static string FormatParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start()
- => GetString("ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start");
-
- ///
- /// End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence.
- ///
- internal static string ParseError_BlockComment_Not_Terminated
- {
- get => GetString("ParseError_BlockComment_Not_Terminated");
- }
-
- ///
- /// End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence.
- ///
- internal static string FormatParseError_BlockComment_Not_Terminated()
- => GetString("ParseError_BlockComment_Not_Terminated");
-
- ///
- /// Directive '{0}' must have a value.
- ///
- internal static string ParseError_DirectiveMustHaveValue
- {
- get => GetString("ParseError_DirectiveMustHaveValue");
- }
-
- ///
- /// Directive '{0}' must have a value.
- ///
- internal static string FormatParseError_DirectiveMustHaveValue(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_DirectiveMustHaveValue"), p0);
-
- ///
- /// An opening "{0}" is missing the corresponding closing "{1}".
- ///
- internal static string ParseError_Expected_CloseBracket_Before_EOF
- {
- get => GetString("ParseError_Expected_CloseBracket_Before_EOF");
- }
-
- ///
- /// An opening "{0}" is missing the corresponding closing "{1}".
- ///
- internal static string FormatParseError_Expected_CloseBracket_Before_EOF(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Expected_CloseBracket_Before_EOF"), p0, p1);
-
- ///
- /// The {0} block is missing a closing "{1}" character. Make sure you have a matching "{1}" character for all the "{2}" characters within this block, and that none of the "{1}" characters are being interpreted as markup.
- ///
- internal static string ParseError_Expected_EndOfBlock_Before_EOF
- {
- get => GetString("ParseError_Expected_EndOfBlock_Before_EOF");
- }
-
- ///
- /// The {0} block is missing a closing "{1}" character. Make sure you have a matching "{1}" character for all the "{2}" characters within this block, and that none of the "{1}" characters are being interpreted as markup.
- ///
- internal static string FormatParseError_Expected_EndOfBlock_Before_EOF(object p0, object p1, object p2)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Expected_EndOfBlock_Before_EOF"), p0, p1, p2);
-
- ///
- /// Expected "{0}".
- ///
- internal static string ParseError_Expected_X
- {
- get => GetString("ParseError_Expected_X");
- }
-
- ///
- /// Expected "{0}".
- ///
- internal static string FormatParseError_Expected_X(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Expected_X"), p0);
-
- ///
- /// The {0} directive is not supported.
- ///
- internal static string ParseError_HelperDirectiveNotAvailable
- {
- get => GetString("ParseError_HelperDirectiveNotAvailable");
- }
-
- ///
- /// The {0} directive is not supported.
- ///
- internal static string FormatParseError_HelperDirectiveNotAvailable(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_HelperDirectiveNotAvailable"), p0);
-
- ///
- /// Optional quote around the directive '{0}' is missing the corresponding opening or closing quote.
- ///
- internal static string ParseError_IncompleteQuotesAroundDirective
- {
- get => GetString("ParseError_IncompleteQuotesAroundDirective");
- }
-
- ///
- /// Optional quote around the directive '{0}' is missing the corresponding opening or closing quote.
- ///
- internal static string FormatParseError_IncompleteQuotesAroundDirective(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_IncompleteQuotesAroundDirective"), p0);
-
- ///
- /// The 'inherits' keyword must be followed by a type name on the same line.
- ///
- internal static string ParseError_InheritsKeyword_Must_Be_Followed_By_TypeName
- {
- get => GetString("ParseError_InheritsKeyword_Must_Be_Followed_By_TypeName");
- }
-
- ///
- /// The 'inherits' keyword must be followed by a type name on the same line.
- ///
- internal static string FormatParseError_InheritsKeyword_Must_Be_Followed_By_TypeName()
- => GetString("ParseError_InheritsKeyword_Must_Be_Followed_By_TypeName");
-
- ///
- /// Inline markup blocks (@<p>Content</p>) cannot be nested. Only one level of inline markup is allowed.
- ///
- internal static string ParseError_InlineMarkup_Blocks_Cannot_Be_Nested
- {
- get => GetString("ParseError_InlineMarkup_Blocks_Cannot_Be_Nested");
- }
-
- ///
- /// Inline markup blocks (@<p>Content</p>) cannot be nested. Only one level of inline markup is allowed.
- ///
- internal static string FormatParseError_InlineMarkup_Blocks_Cannot_Be_Nested()
- => GetString("ParseError_InlineMarkup_Blocks_Cannot_Be_Nested");
-
- ///
- /// Markup in a code block must start with a tag and all start tags must be matched with end tags. Do not use unclosed tags like "<br>". Instead use self-closing tags like "<br/>".
- ///
- internal static string ParseError_MarkupBlock_Must_Start_With_Tag
- {
- get => GetString("ParseError_MarkupBlock_Must_Start_With_Tag");
- }
-
- ///
- /// Markup in a code block must start with a tag and all start tags must be matched with end tags. Do not use unclosed tags like "<br>". Instead use self-closing tags like "<br/>".
- ///
- internal static string FormatParseError_MarkupBlock_Must_Start_With_Tag()
- => GetString("ParseError_MarkupBlock_Must_Start_With_Tag");
-
- ///
- /// The "{0}" element was not closed. All elements must be either self-closing or have a matching end tag.
- ///
- internal static string ParseError_MissingEndTag
- {
- get => GetString("ParseError_MissingEndTag");
- }
-
- ///
- /// The "{0}" element was not closed. All elements must be either self-closing or have a matching end tag.
- ///
- internal static string FormatParseError_MissingEndTag(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_MissingEndTag"), p0);
-
- ///
- /// Sections cannot be empty. The "@section" keyword must be followed by a block of markup surrounded by "{}". For example:
- ///
- /// @section Sidebar {
- /// <!-- Markup and text goes here -->
- /// }
- ///
- internal static string ParseError_MissingOpenBraceAfterSection
- {
- get => GetString("ParseError_MissingOpenBraceAfterSection");
- }
-
- ///
- /// Sections cannot be empty. The "@section" keyword must be followed by a block of markup surrounded by "{}". For example:
- ///
- /// @section Sidebar {
- /// <!-- Markup and text goes here -->
- /// }
- ///
- internal static string FormatParseError_MissingOpenBraceAfterSection()
- => GetString("ParseError_MissingOpenBraceAfterSection");
-
- ///
- /// Namespace imports and type aliases cannot be placed within code blocks. They must immediately follow an "@" character in markup. It is recommended that you put them at the top of the page, as in the following example:
- ///
- /// @using System.Drawing;
- /// @{{
- /// // OK here to use types from System.Drawing in the page.
- /// }}
- ///
- internal static string ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock
- {
- get => GetString("ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock");
- }
-
- ///
- /// Namespace imports and type aliases cannot be placed within code blocks. They must immediately follow an "@" character in markup. It is recommended that you put them at the top of the page, as in the following example:
- ///
- /// @using System.Drawing;
- /// @{{
- /// // OK here to use types from System.Drawing in the page.
- /// }}
- ///
- internal static string FormatParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock()
- => GetString("ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock");
-
- ///
- /// Outer tag is missing a name. The first character of a markup block must be an HTML tag with a valid name.
- ///
- internal static string ParseError_OuterTagMissingName
- {
- get => GetString("ParseError_OuterTagMissingName");
- }
-
- ///
- /// Outer tag is missing a name. The first character of a markup block must be an HTML tag with a valid name.
- ///
- internal static string FormatParseError_OuterTagMissingName()
- => GetString("ParseError_OuterTagMissingName");
-
- ///
- /// End of file was reached before the end of the block comment. All comments that start with the "@*" sequence must be terminated with a matching "*@" sequence.
- ///
- internal static string ParseError_RazorComment_Not_Terminated
- {
- get => GetString("ParseError_RazorComment_Not_Terminated");
- }
-
- ///
- /// End of file was reached before the end of the block comment. All comments that start with the "@*" sequence must be terminated with a matching "*@" sequence.
- ///
- internal static string FormatParseError_RazorComment_Not_Terminated()
- => GetString("ParseError_RazorComment_Not_Terminated");
-
- ///
- /// "{0}" is a reserved word and cannot be used in implicit expressions. An explicit expression ("@()") must be used.
- ///
- internal static string ParseError_ReservedWord
- {
- get => GetString("ParseError_ReservedWord");
- }
-
- ///
- /// "{0}" is a reserved word and cannot be used in implicit expressions. An explicit expression ("@()") must be used.
- ///
- internal static string FormatParseError_ReservedWord(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_ReservedWord"), p0);
-
- ///
- /// Section blocks ("{0}") cannot be nested. Only one level of section blocks are allowed.
- ///
- internal static string ParseError_Sections_Cannot_Be_Nested
- {
- get => GetString("ParseError_Sections_Cannot_Be_Nested");
- }
-
- ///
- /// Section blocks ("{0}") cannot be nested. Only one level of section blocks are allowed.
- ///
- internal static string FormatParseError_Sections_Cannot_Be_Nested(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Sections_Cannot_Be_Nested"), p0);
-
- ///
- /// Expected a "{0}" but found a "{1}". Block statements must be enclosed in "{{" and "}}". You cannot use single-statement control-flow statements in CSHTML pages. For example, the following is not allowed:
- ///
- /// @if(isLoggedIn)
- /// <p>Hello, @user</p>
- ///
- /// Instead, wrap the contents of the block in "{{}}":
- ///
- /// @if(isLoggedIn) {{
- /// <p>Hello, @user</p>
- /// }}
- ///
- internal static string ParseError_SingleLine_ControlFlowStatements_Not_Allowed
- {
- get => GetString("ParseError_SingleLine_ControlFlowStatements_Not_Allowed");
- }
-
- ///
- /// Expected a "{0}" but found a "{1}". Block statements must be enclosed in "{{" and "}}". You cannot use single-statement control-flow statements in CSHTML pages. For example, the following is not allowed:
- ///
- /// @if(isLoggedIn)
- /// <p>Hello, @user</p>
- ///
- /// Instead, wrap the contents of the block in "{{}}":
- ///
- /// @if(isLoggedIn) {{
- /// <p>Hello, @user</p>
- /// }}
- ///
- internal static string FormatParseError_SingleLine_ControlFlowStatements_Not_Allowed(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_SingleLine_ControlFlowStatements_Not_Allowed"), p0, p1);
-
- ///
- /// "<text>" and "</text>" tags cannot contain attributes.
- ///
- internal static string ParseError_TextTagCannotContainAttributes
- {
- get => GetString("ParseError_TextTagCannotContainAttributes");
- }
-
- ///
- /// "<text>" and "</text>" tags cannot contain attributes.
- ///
- internal static string FormatParseError_TextTagCannotContainAttributes()
- => GetString("ParseError_TextTagCannotContainAttributes");
-
- ///
- /// Encountered end tag "{0}" with no matching start tag. Are your start/end tags properly balanced?
- ///
- internal static string ParseError_UnexpectedEndTag
- {
- get => GetString("ParseError_UnexpectedEndTag");
- }
-
- ///
- /// Encountered end tag "{0}" with no matching start tag. Are your start/end tags properly balanced?
- ///
- internal static string FormatParseError_UnexpectedEndTag(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_UnexpectedEndTag"), p0);
-
- ///
- /// Unexpected {0} after section keyword. Section names must start with an "_" or alphabetic character, and the remaining characters must be either "_" or alphanumeric.
- ///
- internal static string ParseError_Unexpected_Character_At_Section_Name_Start
- {
- get => GetString("ParseError_Unexpected_Character_At_Section_Name_Start");
- }
-
- ///
- /// Unexpected {0} after section keyword. Section names must start with an "_" or alphabetic character, and the remaining characters must be either "_" or alphanumeric.
- ///
- internal static string FormatParseError_Unexpected_Character_At_Section_Name_Start(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Unexpected_Character_At_Section_Name_Start"), p0);
-
- ///
- /// "{0}" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{{" are valid.
- ///
- internal static string ParseError_Unexpected_Character_At_Start_Of_CodeBlock_CS
- {
- get => GetString("ParseError_Unexpected_Character_At_Start_Of_CodeBlock_CS");
- }
-
- ///
- /// "{0}" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{{" are valid.
- ///
- internal static string FormatParseError_Unexpected_Character_At_Start_Of_CodeBlock_CS(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Unexpected_Character_At_Start_Of_CodeBlock_CS"), p0);
-
- ///
- /// End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@"
- ///
- internal static string ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock
- {
- get => GetString("ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock");
- }
-
- ///
- /// End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@"
- ///
- internal static string FormatParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock()
- => GetString("ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock");
-
- ///
- /// End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@"
- ///
- internal static string ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock1
- {
- get => GetString("ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock1");
- }
-
- ///
- /// End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@"
- ///
- internal static string FormatParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock1()
- => GetString("ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock1");
-
- ///
- /// Unexpected "{{" after "@" character. Once inside the body of a code block (@if {{}}, @{{}}, etc.) you do not need to use "@{{" to switch to code.
- ///
- internal static string ParseError_Unexpected_Nested_CodeBlock
- {
- get => GetString("ParseError_Unexpected_Nested_CodeBlock");
- }
-
- ///
- /// Unexpected "{{" after "@" character. Once inside the body of a code block (@if {{}}, @{{}}, etc.) you do not need to use "@{{" to switch to code.
- ///
- internal static string FormatParseError_Unexpected_Nested_CodeBlock()
- => GetString("ParseError_Unexpected_Nested_CodeBlock");
-
- ///
- /// A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{{" are valid at the start of a code block and they must occur immediately following "@" with no space in between.
- ///
- internal static string ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock_CS
- {
- get => GetString("ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock_CS");
- }
-
- ///
- /// A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{{" are valid at the start of a code block and they must occur immediately following "@" with no space in between.
- ///
- internal static string FormatParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock_CS()
- => GetString("ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock_CS");
-
- ///
- /// End of file or an unexpected character was reached before the "{0}" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "<" HTML entity.
- ///
- internal static string ParseError_UnfinishedTag
- {
- get => GetString("ParseError_UnfinishedTag");
- }
-
- ///
- /// End of file or an unexpected character was reached before the "{0}" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "<" HTML entity.
- ///
- internal static string FormatParseError_UnfinishedTag(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_UnfinishedTag"), p0);
-
- ///
- /// Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines.
- ///
- internal static string ParseError_Unterminated_String_Literal
- {
- get => GetString("ParseError_Unterminated_String_Literal");
- }
-
- ///
- /// Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines.
- ///
- internal static string FormatParseError_Unterminated_String_Literal()
- => GetString("ParseError_Unterminated_String_Literal");
-
- ///
- /// Cannot complete the tree, StartBlock must be called at least once.
- ///
- internal static string ParserContext_CannotCompleteTree_NoRootBlock
- {
- get => GetString("ParserContext_CannotCompleteTree_NoRootBlock");
- }
-
- ///
- /// Cannot complete the tree, StartBlock must be called at least once.
- ///
- internal static string FormatParserContext_CannotCompleteTree_NoRootBlock()
- => GetString("ParserContext_CannotCompleteTree_NoRootBlock");
-
- ///
- /// Cannot complete the tree, there are still open blocks.
- ///
- internal static string ParserContext_CannotCompleteTree_OutstandingBlocks
- {
- get => GetString("ParserContext_CannotCompleteTree_OutstandingBlocks");
- }
-
- ///
- /// Cannot complete the tree, there are still open blocks.
- ///
- internal static string FormatParserContext_CannotCompleteTree_OutstandingBlocks()
- => GetString("ParserContext_CannotCompleteTree_OutstandingBlocks");
-
- ///
- /// Cannot finish span, there is no current block. Call StartBlock at least once before finishing a span
- ///
- internal static string ParserContext_NoCurrentBlock
- {
- get => GetString("ParserContext_NoCurrentBlock");
- }
-
- ///
- /// Cannot finish span, there is no current block. Call StartBlock at least once before finishing a span
- ///
- internal static string FormatParserContext_NoCurrentBlock()
- => GetString("ParserContext_NoCurrentBlock");
-
- ///
- /// Cannot complete action, the parser has finished. Only CompleteParse can be called to extract the final parser results after the parser has finished
- ///
- internal static string ParserContext_ParseComplete
- {
- get => GetString("ParserContext_ParseComplete");
- }
-
- ///
- /// Cannot complete action, the parser has finished. Only CompleteParse can be called to extract the final parser results after the parser has finished
- ///
- internal static string FormatParserContext_ParseComplete()
- => GetString("ParserContext_ParseComplete");
-
- ///
- /// Parser was started with a null Context property. The Context property must be set BEFORE calling any methods on the parser.
- ///
- internal static string Parser_Context_Not_Set
- {
- get => GetString("Parser_Context_Not_Set");
- }
-
- ///
- /// Parser was started with a null Context property. The Context property must be set BEFORE calling any methods on the parser.
- ///
- internal static string FormatParser_Context_Not_Set()
- => GetString("Parser_Context_Not_Set");
-
- ///
- /// Attribute '{0}' on tag helper element '{1}' requires a value. Tag helper bound attributes of type '{2}' cannot be empty or contain only whitespace.
- ///
- internal static string RewriterError_EmptyTagHelperBoundAttribute
- {
- get => GetString("RewriterError_EmptyTagHelperBoundAttribute");
- }
-
- ///
- /// Attribute '{0}' on tag helper element '{1}' requires a value. Tag helper bound attributes of type '{2}' cannot be empty or contain only whitespace.
- ///
- internal static string FormatRewriterError_EmptyTagHelperBoundAttribute(object p0, object p1, object p2)
- => string.Format(CultureInfo.CurrentCulture, GetString("RewriterError_EmptyTagHelperBoundAttribute"), p0, p1, p2);
-
- ///
- /// @section Header { ... }
- ///
- internal static string SectionExample_CS
- {
- get => GetString("SectionExample_CS");
- }
-
- ///
- /// @section Header { ... }
- ///
- internal static string FormatSectionExample_CS()
- => GetString("SectionExample_CS");
-
- ///
- /// Cannot perform '{1}' operations on '{0}' instances with different file paths.
- ///
- internal static string SourceLocationFilePathDoesNotMatch
- {
- get => GetString("SourceLocationFilePathDoesNotMatch");
- }
-
- ///
- /// Cannot perform '{1}' operations on '{0}' instances with different file paths.
- ///
- internal static string FormatSourceLocationFilePathDoesNotMatch(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("SourceLocationFilePathDoesNotMatch"), p0, p1);
-
- ///
- /// <<unknown>>
- ///
- internal static string Symbol_Unknown
- {
- get => GetString("Symbol_Unknown");
- }
-
- ///
- /// <<unknown>>
- ///
- internal static string FormatSymbol_Unknown()
- => GetString("Symbol_Unknown");
-
- ///
- /// The tag helper attribute '{0}' in element '{1}' is missing a key. The syntax is '<{1} {0}{{ key }}="value">'.
- ///
- internal static string TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey
- {
- get => GetString("TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey");
- }
-
- ///
- /// The tag helper attribute '{0}' in element '{1}' is missing a key. The syntax is '<{1} {0}{{ key }}="value">'.
- ///
- internal static string FormatTagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey"), p0, p1);
-
- ///
- /// TagHelper attributes must be well-formed.
- ///
- internal static string TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed
- {
- get => GetString("TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed");
- }
-
- ///
- /// TagHelper attributes must be well-formed.
- ///
- internal static string FormatTagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed()
- => GetString("TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed");
-
- ///
- /// The parent <{0}> tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed.
- ///
- internal static string TagHelperParseTreeRewriter_CannotHaveNonTagContent
- {
- get => GetString("TagHelperParseTreeRewriter_CannotHaveNonTagContent");
- }
-
- ///
- /// The parent <{0}> tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed.
- ///
- internal static string FormatTagHelperParseTreeRewriter_CannotHaveNonTagContent(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperParseTreeRewriter_CannotHaveNonTagContent"), p0, p1);
-
- ///
- /// Found an end tag (</{0}>) for tag helper '{1}' with tag structure that disallows an end tag ('{2}').
- ///
- internal static string TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag
- {
- get => GetString("TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag");
- }
-
- ///
- /// Found an end tag (</{0}>) for tag helper '{1}' with tag structure that disallows an end tag ('{2}').
- ///
- internal static string FormatTagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag(object p0, object p1, object p2)
- => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag"), p0, p1, p2);
-
- ///
- /// Tag helpers '{0}' and '{1}' targeting element '{2}' must not expect different {3} values.
- ///
- internal static string TagHelperParseTreeRewriter_InconsistentTagStructure
- {
- get => GetString("TagHelperParseTreeRewriter_InconsistentTagStructure");
- }
-
- ///
- /// Tag helpers '{0}' and '{1}' targeting element '{2}' must not expect different {3} values.
- ///
- internal static string FormatTagHelperParseTreeRewriter_InconsistentTagStructure(object p0, object p1, object p2, object p3)
- => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperParseTreeRewriter_InconsistentTagStructure"), p0, p1, p2, p3);
-
- ///
- /// The <{0}> tag is not allowed by parent <{1}> tag helper. Only child tags with name(s) '{2}' are allowed.
- ///
- internal static string TagHelperParseTreeRewriter_InvalidNestedTag
- {
- get => GetString("TagHelperParseTreeRewriter_InvalidNestedTag");
- }
-
- ///
- /// The <{0}> tag is not allowed by parent <{1}> tag helper. Only child tags with name(s) '{2}' are allowed.
- ///
- internal static string FormatTagHelperParseTreeRewriter_InvalidNestedTag(object p0, object p1, object p2)
- => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperParseTreeRewriter_InvalidNestedTag"), p0, p1, p2);
-
- ///
- /// Found a malformed '{0}' tag helper. Tag helpers must have a start and end tag or be self closing.
- ///
- internal static string TagHelpersParseTreeRewriter_FoundMalformedTagHelper
- {
- get => GetString("TagHelpersParseTreeRewriter_FoundMalformedTagHelper");
- }
-
- ///
- /// Found a malformed '{0}' tag helper. Tag helpers must have a start and end tag or be self closing.
- ///
- internal static string FormatTagHelpersParseTreeRewriter_FoundMalformedTagHelper(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpersParseTreeRewriter_FoundMalformedTagHelper"), p0);
-
- ///
- /// Missing close angle for tag helper '{0}'.
- ///
- internal static string TagHelpersParseTreeRewriter_MissingCloseAngle
- {
- get => GetString("TagHelpersParseTreeRewriter_MissingCloseAngle");
- }
-
- ///
- /// Missing close angle for tag helper '{0}'.
- ///
- internal static string FormatTagHelpersParseTreeRewriter_MissingCloseAngle(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpersParseTreeRewriter_MissingCloseAngle"), p0);
-
- ///
- /// Tag Helper '{0}'s attributes must have names.
- ///
- internal static string TagHelpers_AttributesMustHaveAName
- {
- get => GetString("TagHelpers_AttributesMustHaveAName");
- }
-
- ///
- /// Tag Helper '{0}'s attributes must have names.
- ///
- internal static string FormatTagHelpers_AttributesMustHaveAName(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpers_AttributesMustHaveAName"), p0);
-
- ///
- /// The tag helper '{0}' must not have C# in the element's attribute declaration area.
- ///
- internal static string TagHelpers_CannotHaveCSharpInTagDeclaration
- {
- get => GetString("TagHelpers_CannotHaveCSharpInTagDeclaration");
- }
-
- ///
- /// The tag helper '{0}' must not have C# in the element's attribute declaration area.
- ///
- internal static string FormatTagHelpers_CannotHaveCSharpInTagDeclaration(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpers_CannotHaveCSharpInTagDeclaration"), p0);
-
- ///
- /// Code blocks (e.g. @{{var variable = 23;}}) must not appear in non-string tag helper attribute values.
- /// Already in an expression (code) context. If necessary an explicit expression (e.g. @(@readonly)) may be used.
- ///
- internal static string TagHelpers_CodeBlocks_NotSupported_InAttributes
- {
- get => GetString("TagHelpers_CodeBlocks_NotSupported_InAttributes");
- }
-
- ///
- /// Code blocks (e.g. @{{var variable = 23;}}) must not appear in non-string tag helper attribute values.
- /// Already in an expression (code) context. If necessary an explicit expression (e.g. @(@readonly)) may be used.
- ///
- internal static string FormatTagHelpers_CodeBlocks_NotSupported_InAttributes()
- => GetString("TagHelpers_CodeBlocks_NotSupported_InAttributes");
-
- ///
- /// Inline markup blocks (e.g. @<p>content</p>) must not appear in non-string tag helper attribute values.
- /// Expected a '{0}' attribute value, not a string.
- ///
- internal static string TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes
- {
- get => GetString("TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes");
- }
-
- ///
- /// Inline markup blocks (e.g. @<p>content</p>) must not appear in non-string tag helper attribute values.
- /// Expected a '{0}' attribute value, not a string.
- ///
- internal static string FormatTagHelpers_InlineMarkupBlocks_NotSupported_InAttributes(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes"), p0);
-
- ///
- /// In order to put a symbol back, it must have been the symbol which ended at the current position. The specified symbol ends at {0}, but the current position is {1}
- ///
- internal static string TokenizerView_CannotPutBack
- {
- get => GetString("TokenizerView_CannotPutBack");
- }
-
- ///
- /// In order to put a symbol back, it must have been the symbol which ended at the current position. The specified symbol ends at {0}, but the current position is {1}
- ///
- internal static string FormatTokenizerView_CannotPutBack(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("TokenizerView_CannotPutBack"), p0, p1);
-
- ///
- /// Unexpected literal following the '{0}' directive. Expected '{1}'.
- ///
- internal static string UnexpectedDirectiveLiteral
- {
- get => GetString("UnexpectedDirectiveLiteral");
- }
-
- ///
- /// Unexpected literal following the '{0}' directive. Expected '{1}'.
- ///
- internal static string FormatUnexpectedDirectiveLiteral(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("UnexpectedDirectiveLiteral"), p0, p1);
-
- ///
- /// Unexpected end of file following the '{0}' directive. Expected '{1}'.
- ///
- internal static string UnexpectedEOFAfterDirective
- {
- get => GetString("UnexpectedEOFAfterDirective");
- }
-
- ///
- /// Unexpected end of file following the '{0}' directive. Expected '{1}'.
- ///
- internal static string FormatUnexpectedEOFAfterDirective(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("UnexpectedEOFAfterDirective"), p0, p1);
-
- private static string GetString(string name, params string[] formatterNames)
- {
- var value = _resourceManager.GetString(name);
-
- System.Diagnostics.Debug.Assert(value != null);
-
- if (formatterNames != null)
- {
- for (var i = 0; i < formatterNames.Length; i++)
- {
- value = value.Replace("{" + formatterNames[i] + "}", "{" + i + "}");
- }
- }
-
- return value;
- }
- }
-}
diff --git a/src/Microsoft.AspNetCore.Razor.Language/Properties/Resources.Designer.cs b/src/Microsoft.AspNetCore.Razor.Language/Properties/Resources.Designer.cs
index 59b579dc00..33ad58e01e 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/Properties/Resources.Designer.cs
+++ b/src/Microsoft.AspNetCore.Razor.Language/Properties/Resources.Designer.cs
@@ -10,6 +10,48 @@ namespace Microsoft.AspNetCore.Razor.Language
private static readonly ResourceManager _resourceManager
= new ResourceManager("Microsoft.AspNetCore.Razor.Language.Resources", typeof(Resources).GetTypeInfo().Assembly);
+ ///
+ /// Register Tag Helpers for use in the current document.
+ ///
+ internal static string AddTagHelperDirective_Description
+ {
+ get => GetString("AddTagHelperDirective_Description");
+ }
+
+ ///
+ /// Register Tag Helpers for use in the current document.
+ ///
+ internal static string FormatAddTagHelperDirective_Description()
+ => GetString("AddTagHelperDirective_Description");
+
+ ///
+ /// Add tag helpers from the specified type name and assembly name. Specify '*' for the type name to include all tag helper types from the specified assembly.
+ ///
+ internal static string AddTagHelperDirective_StringToken_Description
+ {
+ get => GetString("AddTagHelperDirective_StringToken_Description");
+ }
+
+ ///
+ /// Add tag helpers from the specified type name and assembly name. Specify '*' for the type name to include all tag helper types from the specified assembly.
+ ///
+ internal static string FormatAddTagHelperDirective_StringToken_Description()
+ => GetString("AddTagHelperDirective_StringToken_Description");
+
+ ///
+ /// TypeName, AssemblyName
+ ///
+ internal static string AddTagHelperDirective_StringToken_Name
+ {
+ get => GetString("AddTagHelperDirective_StringToken_Name");
+ }
+
+ ///
+ /// TypeName, AssemblyName
+ ///
+ internal static string FormatAddTagHelperDirective_StringToken_Name()
+ => GetString("AddTagHelperDirective_StringToken_Name");
+
///
/// Value cannot be null or an empty string.
///
@@ -24,6 +66,384 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static string FormatArgumentCannotBeNullOrEmpty()
=> GetString("ArgumentCannotBeNullOrEmpty");
+ ///
+ /// Block cannot be built because a Type has not been specified in the BlockBuilder
+ ///
+ internal static string Block_Type_Not_Specified
+ {
+ get => GetString("Block_Type_Not_Specified");
+ }
+
+ ///
+ /// Block cannot be built because a Type has not been specified in the BlockBuilder
+ ///
+ internal static string FormatBlock_Type_Not_Specified()
+ => GetString("Block_Type_Not_Specified");
+
+ ///
+ /// Block directive '{0}' cannot be imported.
+ ///
+ internal static string BlockDirectiveCannotBeImported
+ {
+ get => GetString("BlockDirectiveCannotBeImported");
+ }
+
+ ///
+ /// Block directive '{0}' cannot be imported.
+ ///
+ internal static string FormatBlockDirectiveCannotBeImported(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("BlockDirectiveCannotBeImported"), p0);
+
+ ///
+ /// code
+ ///
+ internal static string BlockName_Code
+ {
+ get => GetString("BlockName_Code");
+ }
+
+ ///
+ /// code
+ ///
+ internal static string FormatBlockName_Code()
+ => GetString("BlockName_Code");
+
+ ///
+ /// explicit expression
+ ///
+ internal static string BlockName_ExplicitExpression
+ {
+ get => GetString("BlockName_ExplicitExpression");
+ }
+
+ ///
+ /// explicit expression
+ ///
+ internal static string FormatBlockName_ExplicitExpression()
+ => GetString("BlockName_ExplicitExpression");
+
+ ///
+ /// Invalid newline sequence '{0}'. Support newline sequences are '\r\n' and '\n'.
+ ///
+ internal static string CodeWriter_InvalidNewLine
+ {
+ get => GetString("CodeWriter_InvalidNewLine");
+ }
+
+ ///
+ /// Invalid newline sequence '{0}'. Support newline sequences are '\r\n' and '\n'.
+ ///
+ internal static string FormatCodeWriter_InvalidNewLine(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("CodeWriter_InvalidNewLine"), p0);
+
+ ///
+ /// <<character literal>>
+ ///
+ internal static string CSharpSymbol_CharacterLiteral
+ {
+ get => GetString("CSharpSymbol_CharacterLiteral");
+ }
+
+ ///
+ /// <<character literal>>
+ ///
+ internal static string FormatCSharpSymbol_CharacterLiteral()
+ => GetString("CSharpSymbol_CharacterLiteral");
+
+ ///
+ /// <<comment>>
+ ///
+ internal static string CSharpSymbol_Comment
+ {
+ get => GetString("CSharpSymbol_Comment");
+ }
+
+ ///
+ /// <<comment>>
+ ///
+ internal static string FormatCSharpSymbol_Comment()
+ => GetString("CSharpSymbol_Comment");
+
+ ///
+ /// <<identifier>>
+ ///
+ internal static string CSharpSymbol_Identifier
+ {
+ get => GetString("CSharpSymbol_Identifier");
+ }
+
+ ///
+ /// <<identifier>>
+ ///
+ internal static string FormatCSharpSymbol_Identifier()
+ => GetString("CSharpSymbol_Identifier");
+
+ ///
+ /// <<integer literal>>
+ ///
+ internal static string CSharpSymbol_IntegerLiteral
+ {
+ get => GetString("CSharpSymbol_IntegerLiteral");
+ }
+
+ ///
+ /// <<integer literal>>
+ ///
+ internal static string FormatCSharpSymbol_IntegerLiteral()
+ => GetString("CSharpSymbol_IntegerLiteral");
+
+ ///
+ /// <<keyword>>
+ ///
+ internal static string CSharpSymbol_Keyword
+ {
+ get => GetString("CSharpSymbol_Keyword");
+ }
+
+ ///
+ /// <<keyword>>
+ ///
+ internal static string FormatCSharpSymbol_Keyword()
+ => GetString("CSharpSymbol_Keyword");
+
+ ///
+ /// <<newline sequence>>
+ ///
+ internal static string CSharpSymbol_Newline
+ {
+ get => GetString("CSharpSymbol_Newline");
+ }
+
+ ///
+ /// <<newline sequence>>
+ ///
+ internal static string FormatCSharpSymbol_Newline()
+ => GetString("CSharpSymbol_Newline");
+
+ ///
+ /// <<real literal>>
+ ///
+ internal static string CSharpSymbol_RealLiteral
+ {
+ get => GetString("CSharpSymbol_RealLiteral");
+ }
+
+ ///
+ /// <<real literal>>
+ ///
+ internal static string FormatCSharpSymbol_RealLiteral()
+ => GetString("CSharpSymbol_RealLiteral");
+
+ ///
+ /// <<string literal>>
+ ///
+ internal static string CSharpSymbol_StringLiteral
+ {
+ get => GetString("CSharpSymbol_StringLiteral");
+ }
+
+ ///
+ /// <<string literal>>
+ ///
+ internal static string FormatCSharpSymbol_StringLiteral()
+ => GetString("CSharpSymbol_StringLiteral");
+
+ ///
+ /// <<white space>>
+ ///
+ internal static string CSharpSymbol_Whitespace
+ {
+ get => GetString("CSharpSymbol_Whitespace");
+ }
+
+ ///
+ /// <<white space>>
+ ///
+ internal static string FormatCSharpSymbol_Whitespace()
+ => GetString("CSharpSymbol_Whitespace");
+
+ ///
+ /// The document type '{0}' does not support the extension '{1}'.
+ ///
+ internal static string Diagnostic_CodeTarget_UnsupportedExtension
+ {
+ get => GetString("Diagnostic_CodeTarget_UnsupportedExtension");
+ }
+
+ ///
+ /// The document type '{0}' does not support the extension '{1}'.
+ ///
+ internal static string FormatDiagnostic_CodeTarget_UnsupportedExtension(object p0, object p1)
+ => string.Format(CultureInfo.CurrentCulture, GetString("Diagnostic_CodeTarget_UnsupportedExtension"), p0, p1);
+
+ ///
+ /// Invalid directive keyword '{0}'. Directives must have a non-empty keyword that consists only of letters.
+ ///
+ internal static string DirectiveDescriptor_InvalidDirectiveKeyword
+ {
+ get => GetString("DirectiveDescriptor_InvalidDirectiveKeyword");
+ }
+
+ ///
+ /// Invalid directive keyword '{0}'. Directives must have a non-empty keyword that consists only of letters.
+ ///
+ internal static string FormatDirectiveDescriptor_InvalidDirectiveKeyword(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveDescriptor_InvalidDirectiveKeyword"), p0);
+
+ ///
+ /// A non-optional directive token cannot follow an optional directive token.
+ ///
+ internal static string DirectiveDescriptor_InvalidNonOptionalToken
+ {
+ get => GetString("DirectiveDescriptor_InvalidNonOptionalToken");
+ }
+
+ ///
+ /// A non-optional directive token cannot follow an optional directive token.
+ ///
+ internal static string FormatDirectiveDescriptor_InvalidNonOptionalToken()
+ => GetString("DirectiveDescriptor_InvalidNonOptionalToken");
+
+ ///
+ /// The '{0}' directive expects an identifier.
+ ///
+ internal static string DirectiveExpectsIdentifier
+ {
+ get => GetString("DirectiveExpectsIdentifier");
+ }
+
+ ///
+ /// The '{0}' directive expects an identifier.
+ ///
+ internal static string FormatDirectiveExpectsIdentifier(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveExpectsIdentifier"), p0);
+
+ ///
+ /// The '{0}' directive expects a namespace name.
+ ///
+ internal static string DirectiveExpectsNamespace
+ {
+ get => GetString("DirectiveExpectsNamespace");
+ }
+
+ ///
+ /// The '{0}' directive expects a namespace name.
+ ///
+ internal static string FormatDirectiveExpectsNamespace(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveExpectsNamespace"), p0);
+
+ ///
+ /// The '{0}' directive expects a string surrounded by double quotes.
+ ///
+ internal static string DirectiveExpectsQuotedStringLiteral
+ {
+ get => GetString("DirectiveExpectsQuotedStringLiteral");
+ }
+
+ ///
+ /// The '{0}' directive expects a string surrounded by double quotes.
+ ///
+ internal static string FormatDirectiveExpectsQuotedStringLiteral(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveExpectsQuotedStringLiteral"), p0);
+
+ ///
+ /// The '{0}' directive expects a type name.
+ ///
+ internal static string DirectiveExpectsTypeName
+ {
+ get => GetString("DirectiveExpectsTypeName");
+ }
+
+ ///
+ /// The '{0}' directive expects a type name.
+ ///
+ internal static string FormatDirectiveExpectsTypeName(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveExpectsTypeName"), p0);
+
+ ///
+ /// The '{0}` directive must appear at the start of the line.
+ ///
+ internal static string DirectiveMustAppearAtStartOfLine
+ {
+ get => GetString("DirectiveMustAppearAtStartOfLine");
+ }
+
+ ///
+ /// The '{0}` directive must appear at the start of the line.
+ ///
+ internal static string FormatDirectiveMustAppearAtStartOfLine(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveMustAppearAtStartOfLine"), p0);
+
+ ///
+ /// The '{0}' directives value(s) must be separated by whitespace.
+ ///
+ internal static string DirectiveTokensMustBeSeparatedByWhitespace
+ {
+ get => GetString("DirectiveTokensMustBeSeparatedByWhitespace");
+ }
+
+ ///
+ /// The '{0}' directives value(s) must be separated by whitespace.
+ ///
+ internal static string FormatDirectiveTokensMustBeSeparatedByWhitespace(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveTokensMustBeSeparatedByWhitespace"), p0);
+
+ ///
+ /// The document of kind '{0}' does not have a '{1}'. The document classifier must set a value for '{2}'.
+ ///
+ internal static string DocumentMissingTarget
+ {
+ get => GetString("DocumentMissingTarget");
+ }
+
+ ///
+ /// The document of kind '{0}' does not have a '{1}'. The document classifier must set a value for '{2}'.
+ ///
+ internal static string FormatDocumentMissingTarget(object p0, object p1, object p2)
+ => string.Format(CultureInfo.CurrentCulture, GetString("DocumentMissingTarget"), p0, p1, p2);
+
+ ///
+ /// The '{0}' directive may only occur once per document.
+ ///
+ internal static string DuplicateDirective
+ {
+ get => GetString("DuplicateDirective");
+ }
+
+ ///
+ /// The '{0}' directive may only occur once per document.
+ ///
+ internal static string FormatDuplicateDirective(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateDirective"), p0);
+
+ ///
+ /// "EndBlock" was called without a matching call to "StartBlock".
+ ///
+ internal static string EndBlock_Called_Without_Matching_StartBlock
+ {
+ get => GetString("EndBlock_Called_Without_Matching_StartBlock");
+ }
+
+ ///
+ /// "EndBlock" was called without a matching call to "StartBlock".
+ ///
+ internal static string FormatEndBlock_Called_Without_Matching_StartBlock()
+ => GetString("EndBlock_Called_Without_Matching_StartBlock");
+
+ ///
+ /// line break
+ ///
+ internal static string ErrorComponent_Newline
+ {
+ get => GetString("ErrorComponent_Newline");
+ }
+
+ ///
+ /// line break
+ ///
+ internal static string FormatErrorComponent_Newline()
+ => GetString("ErrorComponent_Newline");
+
///
/// The '{0}' feature requires a '{1}' provided by the '{2}'.
///
@@ -38,6 +458,230 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static string FormatFeatureDependencyMissing(object p0, object p1, object p2)
=> string.Format(CultureInfo.CurrentCulture, GetString("FeatureDependencyMissing"), p0, p1, p2);
+ ///
+ /// The feature must be initialized by setting the '{0}' property.
+ ///
+ internal static string FeatureMustBeInitialized
+ {
+ get => GetString("FeatureMustBeInitialized");
+ }
+
+ ///
+ /// The feature must be initialized by setting the '{0}' property.
+ ///
+ internal static string FormatFeatureMustBeInitialized(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("FeatureMustBeInitialized"), p0);
+
+ ///
+ /// Specify a C# code block.
+ ///
+ internal static string FunctionsDirective_Description
+ {
+ get => GetString("FunctionsDirective_Description");
+ }
+
+ ///
+ /// Specify a C# code block.
+ ///
+ internal static string FormatFunctionsDirective_Description()
+ => GetString("FunctionsDirective_Description");
+
+ ///
+ /// <<newline sequence>>
+ ///
+ internal static string HtmlSymbol_NewLine
+ {
+ get => GetString("HtmlSymbol_NewLine");
+ }
+
+ ///
+ /// <<newline sequence>>
+ ///
+ internal static string FormatHtmlSymbol_NewLine()
+ => GetString("HtmlSymbol_NewLine");
+
+ ///
+ /// <<razor comment>>
+ ///
+ internal static string HtmlSymbol_RazorComment
+ {
+ get => GetString("HtmlSymbol_RazorComment");
+ }
+
+ ///
+ /// <<razor comment>>
+ ///
+ internal static string FormatHtmlSymbol_RazorComment()
+ => GetString("HtmlSymbol_RazorComment");
+
+ ///
+ /// <<text>>
+ ///
+ internal static string HtmlSymbol_Text
+ {
+ get => GetString("HtmlSymbol_Text");
+ }
+
+ ///
+ /// <<text>>
+ ///
+ internal static string FormatHtmlSymbol_Text()
+ => GetString("HtmlSymbol_Text");
+
+ ///
+ /// <<white space>>
+ ///
+ internal static string HtmlSymbol_WhiteSpace
+ {
+ get => GetString("HtmlSymbol_WhiteSpace");
+ }
+
+ ///
+ /// <<white space>>
+ ///
+ internal static string FormatHtmlSymbol_WhiteSpace()
+ => GetString("HtmlSymbol_WhiteSpace");
+
+ ///
+ /// Specify the base class for the current document.
+ ///
+ internal static string InheritsDirective_Description
+ {
+ get => GetString("InheritsDirective_Description");
+ }
+
+ ///
+ /// Specify the base class for the current document.
+ ///
+ internal static string FormatInheritsDirective_Description()
+ => GetString("InheritsDirective_Description");
+
+ ///
+ /// The base type that the current page inherits.
+ ///
+ internal static string InheritsDirective_TypeToken_Description
+ {
+ get => GetString("InheritsDirective_TypeToken_Description");
+ }
+
+ ///
+ /// The base type that the current page inherits.
+ ///
+ internal static string FormatInheritsDirective_TypeToken_Description()
+ => GetString("InheritsDirective_TypeToken_Description");
+
+ ///
+ /// TypeName
+ ///
+ internal static string InheritsDirective_TypeToken_Name
+ {
+ get => GetString("InheritsDirective_TypeToken_Name");
+ }
+
+ ///
+ /// TypeName
+ ///
+ internal static string FormatInheritsDirective_TypeToken_Name()
+ => GetString("InheritsDirective_TypeToken_Name");
+
+ ///
+ /// The '{0}' operation is not valid when the builder is empty.
+ ///
+ internal static string IntermediateNodeBuilder_PopInvalid
+ {
+ get => GetString("IntermediateNodeBuilder_PopInvalid");
+ }
+
+ ///
+ /// The '{0}' operation is not valid when the builder is empty.
+ ///
+ internal static string FormatIntermediateNodeBuilder_PopInvalid(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodeBuilder_PopInvalid"), p0);
+
+ ///
+ /// The node '{0}' has a read-only child collection and cannot be modified.
+ ///
+ internal static string IntermediateNodeReference_CollectionIsReadOnly
+ {
+ get => GetString("IntermediateNodeReference_CollectionIsReadOnly");
+ }
+
+ ///
+ /// The node '{0}' has a read-only child collection and cannot be modified.
+ ///
+ internal static string FormatIntermediateNodeReference_CollectionIsReadOnly(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodeReference_CollectionIsReadOnly"), p0);
+
+ ///
+ /// The reference is invalid. The node '{0}' could not be found as a child of '{1}'.
+ ///
+ internal static string IntermediateNodeReference_NodeNotFound
+ {
+ get => GetString("IntermediateNodeReference_NodeNotFound");
+ }
+
+ ///
+ /// The reference is invalid. The node '{0}' could not be found as a child of '{1}'.
+ ///
+ internal static string FormatIntermediateNodeReference_NodeNotFound(object p0, object p1)
+ => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodeReference_NodeNotFound"), p0, p1);
+
+ ///
+ /// The reference is invalid. References initialized with the default constructor cannot modify nodes.
+ ///
+ internal static string IntermediateNodeReference_NotInitialized
+ {
+ get => GetString("IntermediateNodeReference_NotInitialized");
+ }
+
+ ///
+ /// The reference is invalid. References initialized with the default constructor cannot modify nodes.
+ ///
+ internal static string FormatIntermediateNodeReference_NotInitialized()
+ => GetString("IntermediateNodeReference_NotInitialized");
+
+ ///
+ /// The '{0}' node type can only be used as a direct child of a '{1}' node.
+ ///
+ internal static string IntermediateNodes_InvalidParentNode
+ {
+ get => GetString("IntermediateNodes_InvalidParentNode");
+ }
+
+ ///
+ /// The '{0}' node type can only be used as a direct child of a '{1}' node.
+ ///
+ internal static string FormatIntermediateNodes_InvalidParentNode(object p0, object p1)
+ => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodes_InvalidParentNode"), p0, p1);
+
+ ///
+ /// The node '{0}' is not the owner of change '{1}'.
+ ///
+ internal static string InvalidOperation_SpanIsNotChangeOwner
+ {
+ get => GetString("InvalidOperation_SpanIsNotChangeOwner");
+ }
+
+ ///
+ /// The node '{0}' is not the owner of change '{1}'.
+ ///
+ internal static string FormatInvalidOperation_SpanIsNotChangeOwner(object p0, object p1)
+ => string.Format(CultureInfo.CurrentCulture, GetString("InvalidOperation_SpanIsNotChangeOwner"), p0, p1);
+
+ ///
+ /// Provided value for razor language version is unsupported or invalid: '{0}'.
+ ///
+ internal static string InvalidRazorLanguageVersion
+ {
+ get => GetString("InvalidRazorLanguageVersion");
+ }
+
+ ///
+ /// Provided value for razor language version is unsupported or invalid: '{0}'.
+ ///
+ internal static string FormatInvalidRazorLanguageVersion(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("InvalidRazorLanguageVersion"), p0);
+
///
/// Invalid tag helper directive look up text '{0}'. The correct look up text format is: "name, assemblyName".
///
@@ -67,18 +711,32 @@ namespace Microsoft.AspNetCore.Razor.Language
=> string.Format(CultureInfo.CurrentCulture, GetString("InvalidTagHelperPrefixValue"), p0, p1, p2);
///
- /// The '{0}' operation is not valid when the builder is empty.
+ /// The key must not be null.
///
- internal static string IntermediateNodeBuilder_PopInvalid
+ internal static string KeyMustNotBeNull
{
- get => GetString("IntermediateNodeBuilder_PopInvalid");
+ get => GetString("KeyMustNotBeNull");
}
///
- /// The '{0}' operation is not valid when the builder is empty.
+ /// The key must not be null.
///
- internal static string FormatIntermediateNodeBuilder_PopInvalid(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodeBuilder_PopInvalid"), p0);
+ internal static string FormatKeyMustNotBeNull()
+ => GetString("KeyMustNotBeNull");
+
+ ///
+ /// Cannot use built-in RazorComment handler, language characteristics does not define the CommentStart, CommentStar and CommentBody known symbol types or parser does not override TokenizerBackedParser.OutputSpanBeforeRazorComment
+ ///
+ internal static string Language_Does_Not_Support_RazorComment
+ {
+ get => GetString("Language_Does_Not_Support_RazorComment");
+ }
+
+ ///
+ /// Cannot use built-in RazorComment handler, language characteristics does not define the CommentStart, CommentStar and CommentBody known symbol types or parser does not override TokenizerBackedParser.OutputSpanBeforeRazorComment
+ ///
+ internal static string FormatLanguage_Does_Not_Support_RazorComment()
+ => GetString("Language_Does_Not_Support_RazorComment");
///
/// The specified encoding '{0}' does not match the content's encoding '{1}'.
@@ -94,6 +752,434 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static string FormatMismatchedContentEncoding(object p0, object p1)
=> string.Format(CultureInfo.CurrentCulture, GetString("MismatchedContentEncoding"), p0, p1);
+ ///
+ /// The "@" character must be followed by a ":", "(", or a C# identifier. If you intended to switch to markup, use an HTML start tag, for example:
+ ///
+ /// @if(isLoggedIn) {{
+ /// <p>Hello, @user!</p>
+ /// }}
+ ///
+ internal static string ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start
+ {
+ get => GetString("ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start");
+ }
+
+ ///
+ /// The "@" character must be followed by a ":", "(", or a C# identifier. If you intended to switch to markup, use an HTML start tag, for example:
+ ///
+ /// @if(isLoggedIn) {{
+ /// <p>Hello, @user!</p>
+ /// }}
+ ///
+ internal static string FormatParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start()
+ => GetString("ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start");
+
+ ///
+ /// End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence.
+ ///
+ internal static string ParseError_BlockComment_Not_Terminated
+ {
+ get => GetString("ParseError_BlockComment_Not_Terminated");
+ }
+
+ ///
+ /// End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence.
+ ///
+ internal static string FormatParseError_BlockComment_Not_Terminated()
+ => GetString("ParseError_BlockComment_Not_Terminated");
+
+ ///
+ /// Directive '{0}' must have a value.
+ ///
+ internal static string ParseError_DirectiveMustHaveValue
+ {
+ get => GetString("ParseError_DirectiveMustHaveValue");
+ }
+
+ ///
+ /// Directive '{0}' must have a value.
+ ///
+ internal static string FormatParseError_DirectiveMustHaveValue(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_DirectiveMustHaveValue"), p0);
+
+ ///
+ /// An opening "{0}" is missing the corresponding closing "{1}".
+ ///
+ internal static string ParseError_Expected_CloseBracket_Before_EOF
+ {
+ get => GetString("ParseError_Expected_CloseBracket_Before_EOF");
+ }
+
+ ///
+ /// An opening "{0}" is missing the corresponding closing "{1}".
+ ///
+ internal static string FormatParseError_Expected_CloseBracket_Before_EOF(object p0, object p1)
+ => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Expected_CloseBracket_Before_EOF"), p0, p1);
+
+ ///
+ /// The {0} block is missing a closing "{1}" character. Make sure you have a matching "{1}" character for all the "{2}" characters within this block, and that none of the "{1}" characters are being interpreted as markup.
+ ///
+ internal static string ParseError_Expected_EndOfBlock_Before_EOF
+ {
+ get => GetString("ParseError_Expected_EndOfBlock_Before_EOF");
+ }
+
+ ///
+ /// The {0} block is missing a closing "{1}" character. Make sure you have a matching "{1}" character for all the "{2}" characters within this block, and that none of the "{1}" characters are being interpreted as markup.
+ ///
+ internal static string FormatParseError_Expected_EndOfBlock_Before_EOF(object p0, object p1, object p2)
+ => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Expected_EndOfBlock_Before_EOF"), p0, p1, p2);
+
+ ///
+ /// The {0} directive is not supported.
+ ///
+ internal static string ParseError_HelperDirectiveNotAvailable
+ {
+ get => GetString("ParseError_HelperDirectiveNotAvailable");
+ }
+
+ ///
+ /// The {0} directive is not supported.
+ ///
+ internal static string FormatParseError_HelperDirectiveNotAvailable(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_HelperDirectiveNotAvailable"), p0);
+
+ ///
+ /// Optional quote around the directive '{0}' is missing the corresponding opening or closing quote.
+ ///
+ internal static string ParseError_IncompleteQuotesAroundDirective
+ {
+ get => GetString("ParseError_IncompleteQuotesAroundDirective");
+ }
+
+ ///
+ /// Optional quote around the directive '{0}' is missing the corresponding opening or closing quote.
+ ///
+ internal static string FormatParseError_IncompleteQuotesAroundDirective(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_IncompleteQuotesAroundDirective"), p0);
+
+ ///
+ /// Inline markup blocks (@<p>Content</p>) cannot be nested. Only one level of inline markup is allowed.
+ ///
+ internal static string ParseError_InlineMarkup_Blocks_Cannot_Be_Nested
+ {
+ get => GetString("ParseError_InlineMarkup_Blocks_Cannot_Be_Nested");
+ }
+
+ ///
+ /// Inline markup blocks (@<p>Content</p>) cannot be nested. Only one level of inline markup is allowed.
+ ///
+ internal static string FormatParseError_InlineMarkup_Blocks_Cannot_Be_Nested()
+ => GetString("ParseError_InlineMarkup_Blocks_Cannot_Be_Nested");
+
+ ///
+ /// Markup in a code block must start with a tag and all start tags must be matched with end tags. Do not use unclosed tags like "<br>". Instead use self-closing tags like "<br/>".
+ ///
+ internal static string ParseError_MarkupBlock_Must_Start_With_Tag
+ {
+ get => GetString("ParseError_MarkupBlock_Must_Start_With_Tag");
+ }
+
+ ///
+ /// Markup in a code block must start with a tag and all start tags must be matched with end tags. Do not use unclosed tags like "<br>". Instead use self-closing tags like "<br/>".
+ ///
+ internal static string FormatParseError_MarkupBlock_Must_Start_With_Tag()
+ => GetString("ParseError_MarkupBlock_Must_Start_With_Tag");
+
+ ///
+ /// The "{0}" element was not closed. All elements must be either self-closing or have a matching end tag.
+ ///
+ internal static string ParseError_MissingEndTag
+ {
+ get => GetString("ParseError_MissingEndTag");
+ }
+
+ ///
+ /// The "{0}" element was not closed. All elements must be either self-closing or have a matching end tag.
+ ///
+ internal static string FormatParseError_MissingEndTag(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_MissingEndTag"), p0);
+
+ ///
+ /// Namespace imports and type aliases cannot be placed within code blocks. They must immediately follow an "@" character in markup. It is recommended that you put them at the top of the page, as in the following example:
+ ///
+ /// @using System.Drawing;
+ /// @{{
+ /// // OK here to use types from System.Drawing in the page.
+ /// }}
+ ///
+ internal static string ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock
+ {
+ get => GetString("ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock");
+ }
+
+ ///
+ /// Namespace imports and type aliases cannot be placed within code blocks. They must immediately follow an "@" character in markup. It is recommended that you put them at the top of the page, as in the following example:
+ ///
+ /// @using System.Drawing;
+ /// @{{
+ /// // OK here to use types from System.Drawing in the page.
+ /// }}
+ ///
+ internal static string FormatParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock()
+ => GetString("ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock");
+
+ ///
+ /// Outer tag is missing a name. The first character of a markup block must be an HTML tag with a valid name.
+ ///
+ internal static string ParseError_OuterTagMissingName
+ {
+ get => GetString("ParseError_OuterTagMissingName");
+ }
+
+ ///
+ /// Outer tag is missing a name. The first character of a markup block must be an HTML tag with a valid name.
+ ///
+ internal static string FormatParseError_OuterTagMissingName()
+ => GetString("ParseError_OuterTagMissingName");
+
+ ///
+ /// End of file was reached before the end of the block comment. All comments that start with the "@*" sequence must be terminated with a matching "*@" sequence.
+ ///
+ internal static string ParseError_RazorComment_Not_Terminated
+ {
+ get => GetString("ParseError_RazorComment_Not_Terminated");
+ }
+
+ ///
+ /// End of file was reached before the end of the block comment. All comments that start with the "@*" sequence must be terminated with a matching "*@" sequence.
+ ///
+ internal static string FormatParseError_RazorComment_Not_Terminated()
+ => GetString("ParseError_RazorComment_Not_Terminated");
+
+ ///
+ /// "{0}" is a reserved word and cannot be used in implicit expressions. An explicit expression ("@()") must be used.
+ ///
+ internal static string ParseError_ReservedWord
+ {
+ get => GetString("ParseError_ReservedWord");
+ }
+
+ ///
+ /// "{0}" is a reserved word and cannot be used in implicit expressions. An explicit expression ("@()") must be used.
+ ///
+ internal static string FormatParseError_ReservedWord(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_ReservedWord"), p0);
+
+ ///
+ /// Section blocks ("{0}") cannot be nested. Only one level of section blocks are allowed.
+ ///
+ internal static string ParseError_Sections_Cannot_Be_Nested
+ {
+ get => GetString("ParseError_Sections_Cannot_Be_Nested");
+ }
+
+ ///
+ /// Section blocks ("{0}") cannot be nested. Only one level of section blocks are allowed.
+ ///
+ internal static string FormatParseError_Sections_Cannot_Be_Nested(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Sections_Cannot_Be_Nested"), p0);
+
+ ///
+ /// Expected a "{0}" but found a "{1}". Block statements must be enclosed in "{{" and "}}". You cannot use single-statement control-flow statements in CSHTML pages. For example, the following is not allowed:
+ ///
+ /// @if(isLoggedIn)
+ /// <p>Hello, @user</p>
+ ///
+ /// Instead, wrap the contents of the block in "{{}}":
+ ///
+ /// @if(isLoggedIn) {{
+ /// <p>Hello, @user</p>
+ /// }}
+ ///
+ internal static string ParseError_SingleLine_ControlFlowStatements_Not_Allowed
+ {
+ get => GetString("ParseError_SingleLine_ControlFlowStatements_Not_Allowed");
+ }
+
+ ///
+ /// Expected a "{0}" but found a "{1}". Block statements must be enclosed in "{{" and "}}". You cannot use single-statement control-flow statements in CSHTML pages. For example, the following is not allowed:
+ ///
+ /// @if(isLoggedIn)
+ /// <p>Hello, @user</p>
+ ///
+ /// Instead, wrap the contents of the block in "{{}}":
+ ///
+ /// @if(isLoggedIn) {{
+ /// <p>Hello, @user</p>
+ /// }}
+ ///
+ internal static string FormatParseError_SingleLine_ControlFlowStatements_Not_Allowed(object p0, object p1)
+ => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_SingleLine_ControlFlowStatements_Not_Allowed"), p0, p1);
+
+ ///
+ /// "<text>" and "</text>" tags cannot contain attributes.
+ ///
+ internal static string ParseError_TextTagCannotContainAttributes
+ {
+ get => GetString("ParseError_TextTagCannotContainAttributes");
+ }
+
+ ///
+ /// "<text>" and "</text>" tags cannot contain attributes.
+ ///
+ internal static string FormatParseError_TextTagCannotContainAttributes()
+ => GetString("ParseError_TextTagCannotContainAttributes");
+
+ ///
+ /// "{0}" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{{" are valid.
+ ///
+ internal static string ParseError_Unexpected_Character_At_Start_Of_CodeBlock
+ {
+ get => GetString("ParseError_Unexpected_Character_At_Start_Of_CodeBlock");
+ }
+
+ ///
+ /// "{0}" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{{" are valid.
+ ///
+ internal static string FormatParseError_Unexpected_Character_At_Start_Of_CodeBlock(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_Unexpected_Character_At_Start_Of_CodeBlock"), p0);
+
+ ///
+ /// End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@"
+ ///
+ internal static string ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock
+ {
+ get => GetString("ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock");
+ }
+
+ ///
+ /// End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@"
+ ///
+ internal static string FormatParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock()
+ => GetString("ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock");
+
+ ///
+ /// Unexpected "{{" after "@" character. Once inside the body of a code block (@if {{}}, @{{}}, etc.) you do not need to use "@{{" to switch to code.
+ ///
+ internal static string ParseError_Unexpected_Nested_CodeBlock
+ {
+ get => GetString("ParseError_Unexpected_Nested_CodeBlock");
+ }
+
+ ///
+ /// Unexpected "{{" after "@" character. Once inside the body of a code block (@if {{}}, @{{}}, etc.) you do not need to use "@{{" to switch to code.
+ ///
+ internal static string FormatParseError_Unexpected_Nested_CodeBlock()
+ => GetString("ParseError_Unexpected_Nested_CodeBlock");
+
+ ///
+ /// A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{{" are valid at the start of a code block and they must occur immediately following "@" with no space in between.
+ ///
+ internal static string ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock
+ {
+ get => GetString("ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock");
+ }
+
+ ///
+ /// A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{{" are valid at the start of a code block and they must occur immediately following "@" with no space in between.
+ ///
+ internal static string FormatParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock()
+ => GetString("ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock");
+
+ ///
+ /// Encountered end tag "{0}" with no matching start tag. Are your start/end tags properly balanced?
+ ///
+ internal static string ParseError_UnexpectedEndTag
+ {
+ get => GetString("ParseError_UnexpectedEndTag");
+ }
+
+ ///
+ /// Encountered end tag "{0}" with no matching start tag. Are your start/end tags properly balanced?
+ ///
+ internal static string FormatParseError_UnexpectedEndTag(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_UnexpectedEndTag"), p0);
+
+ ///
+ /// End of file or an unexpected character was reached before the "{0}" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "<" HTML entity.
+ ///
+ internal static string ParseError_UnfinishedTag
+ {
+ get => GetString("ParseError_UnfinishedTag");
+ }
+
+ ///
+ /// End of file or an unexpected character was reached before the "{0}" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "<" HTML entity.
+ ///
+ internal static string FormatParseError_UnfinishedTag(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("ParseError_UnfinishedTag"), p0);
+
+ ///
+ /// Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines.
+ ///
+ internal static string ParseError_Unterminated_String_Literal
+ {
+ get => GetString("ParseError_Unterminated_String_Literal");
+ }
+
+ ///
+ /// Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines.
+ ///
+ internal static string FormatParseError_Unterminated_String_Literal()
+ => GetString("ParseError_Unterminated_String_Literal");
+
+ ///
+ /// Parser was started with a null Context property. The Context property must be set BEFORE calling any methods on the parser.
+ ///
+ internal static string Parser_Context_Not_Set
+ {
+ get => GetString("Parser_Context_Not_Set");
+ }
+
+ ///
+ /// Parser was started with a null Context property. The Context property must be set BEFORE calling any methods on the parser.
+ ///
+ internal static string FormatParser_Context_Not_Set()
+ => GetString("Parser_Context_Not_Set");
+
+ ///
+ /// Cannot complete the tree, StartBlock must be called at least once.
+ ///
+ internal static string ParserContext_CannotCompleteTree_NoRootBlock
+ {
+ get => GetString("ParserContext_CannotCompleteTree_NoRootBlock");
+ }
+
+ ///
+ /// Cannot complete the tree, StartBlock must be called at least once.
+ ///
+ internal static string FormatParserContext_CannotCompleteTree_NoRootBlock()
+ => GetString("ParserContext_CannotCompleteTree_NoRootBlock");
+
+ ///
+ /// Cannot complete the tree, there are still open blocks.
+ ///
+ internal static string ParserContext_CannotCompleteTree_OutstandingBlocks
+ {
+ get => GetString("ParserContext_CannotCompleteTree_OutstandingBlocks");
+ }
+
+ ///
+ /// Cannot complete the tree, there are still open blocks.
+ ///
+ internal static string FormatParserContext_CannotCompleteTree_OutstandingBlocks()
+ => GetString("ParserContext_CannotCompleteTree_OutstandingBlocks");
+
+ ///
+ /// Cannot finish span, there is no current block. Call StartBlock at least once before finishing a span
+ ///
+ internal static string ParserContext_NoCurrentBlock
+ {
+ get => GetString("ParserContext_NoCurrentBlock");
+ }
+
+ ///
+ /// Cannot finish span, there is no current block. Call StartBlock at least once before finishing a span
+ ///
+ internal static string FormatParserContext_NoCurrentBlock()
+ => GetString("ParserContext_NoCurrentBlock");
+
///
/// The '{0}' phase requires a '{1}' provided by the '{2}'.
///
@@ -122,20 +1208,6 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static string FormatPhaseMustBeInitialized(object p0)
=> string.Format(CultureInfo.CurrentCulture, GetString("PhaseMustBeInitialized"), p0);
- ///
- /// Tag helper directive assembly name cannot be null or empty.
- ///
- internal static string TagHelperAssemblyNameCannotBeEmptyOrNull
- {
- get => GetString("TagHelperAssemblyNameCannotBeEmptyOrNull");
- }
-
- ///
- /// Tag helper directive assembly name cannot be null or empty.
- ///
- internal static string FormatTagHelperAssemblyNameCannotBeEmptyOrNull()
- => GetString("TagHelperAssemblyNameCannotBeEmptyOrNull");
-
///
/// Path must begin with a forward slash '/'.
///
@@ -150,34 +1222,6 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static string FormatRazorProject_PathMustStartWithForwardSlash()
=> GetString("RazorProject_PathMustStartWithForwardSlash");
- ///
- /// A non-optional directive token cannot follow an optional directive token.
- ///
- internal static string DirectiveDescriptor_InvalidNonOptionalToken
- {
- get => GetString("DirectiveDescriptor_InvalidNonOptionalToken");
- }
-
- ///
- /// A non-optional directive token cannot follow an optional directive token.
- ///
- internal static string FormatDirectiveDescriptor_InvalidNonOptionalToken()
- => GetString("DirectiveDescriptor_InvalidNonOptionalToken");
-
- ///
- /// The document of kind '{0}' does not have a '{1}'. The document classifier must set a value for '{2}'.
- ///
- internal static string DocumentMissingTarget
- {
- get => GetString("DocumentMissingTarget");
- }
-
- ///
- /// The document of kind '{0}' does not have a '{1}'. The document classifier must set a value for '{2}'.
- ///
- internal static string FormatDocumentMissingTarget(object p0, object p1, object p2)
- => string.Format(CultureInfo.CurrentCulture, GetString("DocumentMissingTarget"), p0, p1, p2);
-
///
/// The item '{0}' could not be found.
///
@@ -192,6 +1236,146 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static string FormatRazorTemplateEngine_ItemCouldNotBeFound(object p0)
=> string.Format(CultureInfo.CurrentCulture, GetString("RazorTemplateEngine_ItemCouldNotBeFound"), p0);
+ ///
+ /// Remove Tag Helpers for use in the current document.
+ ///
+ internal static string RemoveTagHelperDirective_Description
+ {
+ get => GetString("RemoveTagHelperDirective_Description");
+ }
+
+ ///
+ /// Remove Tag Helpers for use in the current document.
+ ///
+ internal static string FormatRemoveTagHelperDirective_Description()
+ => GetString("RemoveTagHelperDirective_Description");
+
+ ///
+ /// Remove tag helpers from the specified type name and assembly name. Specify '*' for the type name to remove all tag helper types from the specified assembly.
+ ///
+ internal static string RemoveTagHelperDirective_StringToken_Description
+ {
+ get => GetString("RemoveTagHelperDirective_StringToken_Description");
+ }
+
+ ///
+ /// Remove tag helpers from the specified type name and assembly name. Specify '*' for the type name to remove all tag helper types from the specified assembly.
+ ///
+ internal static string FormatRemoveTagHelperDirective_StringToken_Description()
+ => GetString("RemoveTagHelperDirective_StringToken_Description");
+
+ ///
+ /// TypeName, AssemblyName
+ ///
+ internal static string RemoveTagHelperDirective_StringToken_Name
+ {
+ get => GetString("RemoveTagHelperDirective_StringToken_Name");
+ }
+
+ ///
+ /// TypeName, AssemblyName
+ ///
+ internal static string FormatRemoveTagHelperDirective_StringToken_Name()
+ => GetString("RemoveTagHelperDirective_StringToken_Name");
+
+ ///
+ /// The '{0}' requires a '{1}' delegate to be set.
+ ///
+ internal static string RenderingContextRequiresDelegate
+ {
+ get => GetString("RenderingContextRequiresDelegate");
+ }
+
+ ///
+ /// The '{0}' requires a '{1}' delegate to be set.
+ ///
+ internal static string FormatRenderingContextRequiresDelegate(object p0, object p1)
+ => string.Format(CultureInfo.CurrentCulture, GetString("RenderingContextRequiresDelegate"), p0, p1);
+
+ ///
+ /// Attribute '{0}' on tag helper element '{1}' requires a value. Tag helper bound attributes of type '{2}' cannot be empty or contain only whitespace.
+ ///
+ internal static string RewriterError_EmptyTagHelperBoundAttribute
+ {
+ get => GetString("RewriterError_EmptyTagHelperBoundAttribute");
+ }
+
+ ///
+ /// Attribute '{0}' on tag helper element '{1}' requires a value. Tag helper bound attributes of type '{2}' cannot be empty or contain only whitespace.
+ ///
+ internal static string FormatRewriterError_EmptyTagHelperBoundAttribute(object p0, object p1, object p2)
+ => string.Format(CultureInfo.CurrentCulture, GetString("RewriterError_EmptyTagHelperBoundAttribute"), p0, p1, p2);
+
+ ///
+ /// Define a section to be rendered in the configured layout page.
+ ///
+ internal static string SectionDirective_Description
+ {
+ get => GetString("SectionDirective_Description");
+ }
+
+ ///
+ /// Define a section to be rendered in the configured layout page.
+ ///
+ internal static string FormatSectionDirective_Description()
+ => GetString("SectionDirective_Description");
+
+ ///
+ /// The name of the section.
+ ///
+ internal static string SectionDirective_NameToken_Description
+ {
+ get => GetString("SectionDirective_NameToken_Description");
+ }
+
+ ///
+ /// The name of the section.
+ ///
+ internal static string FormatSectionDirective_NameToken_Description()
+ => GetString("SectionDirective_NameToken_Description");
+
+ ///
+ /// SectionName
+ ///
+ internal static string SectionDirective_NameToken_Name
+ {
+ get => GetString("SectionDirective_NameToken_Name");
+ }
+
+ ///
+ /// SectionName
+ ///
+ internal static string FormatSectionDirective_NameToken_Name()
+ => GetString("SectionDirective_NameToken_Name");
+
+ ///
+ /// @section Header { ... }
+ ///
+ internal static string SectionExample
+ {
+ get => GetString("SectionExample");
+ }
+
+ ///
+ /// @section Header { ... }
+ ///
+ internal static string FormatSectionExample()
+ => GetString("SectionExample");
+
+ ///
+ /// <<unknown>>
+ ///
+ internal static string Symbol_Unknown
+ {
+ get => GetString("Symbol_Unknown");
+ }
+
+ ///
+ /// <<unknown>>
+ ///
+ internal static string FormatSymbol_Unknown()
+ => GetString("Symbol_Unknown");
+
///
/// Invalid tag helper bound property '{1}' on tag helper '{0}'. Tag helpers cannot bind to HTML attributes with name '{2}' because the name contains a '{3}' character.
///
@@ -375,298 +1559,102 @@ namespace Microsoft.AspNetCore.Razor.Language
=> GetString("TagHelper_InvalidTargetedTagNameNullOrWhitespace");
///
- /// The node '{0}' is not the owner of change '{1}'.
+ /// Tag helper directive assembly name cannot be null or empty.
///
- internal static string InvalidOperation_SpanIsNotChangeOwner
+ internal static string TagHelperAssemblyNameCannotBeEmptyOrNull
{
- get => GetString("InvalidOperation_SpanIsNotChangeOwner");
+ get => GetString("TagHelperAssemblyNameCannotBeEmptyOrNull");
}
///
- /// The node '{0}' is not the owner of change '{1}'.
+ /// Tag helper directive assembly name cannot be null or empty.
///
- internal static string FormatInvalidOperation_SpanIsNotChangeOwner(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("InvalidOperation_SpanIsNotChangeOwner"), p0, p1);
+ internal static string FormatTagHelperAssemblyNameCannotBeEmptyOrNull()
+ => GetString("TagHelperAssemblyNameCannotBeEmptyOrNull");
///
- /// Invalid directive keyword '{0}'. Directives must have a non-empty keyword that consists only of letters.
+ /// The tag helper attribute '{0}' in element '{1}' is missing a key. The syntax is '<{1} {0}{{ key }}="value">'.
///
- internal static string DirectiveDescriptor_InvalidDirectiveKeyword
+ internal static string TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey
{
- get => GetString("DirectiveDescriptor_InvalidDirectiveKeyword");
+ get => GetString("TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey");
}
///
- /// Invalid directive keyword '{0}'. Directives must have a non-empty keyword that consists only of letters.
+ /// The tag helper attribute '{0}' in element '{1}' is missing a key. The syntax is '<{1} {0}{{ key }}="value">'.
///
- internal static string FormatDirectiveDescriptor_InvalidDirectiveKeyword(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveDescriptor_InvalidDirectiveKeyword"), p0);
+ internal static string FormatTagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey(object p0, object p1)
+ => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey"), p0, p1);
///
- /// The feature must be initialized by setting the '{0}' property.
+ /// TagHelper attributes must be well-formed.
///
- internal static string FeatureMustBeInitialized
+ internal static string TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed
{
- get => GetString("FeatureMustBeInitialized");
+ get => GetString("TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed");
}
///
- /// The feature must be initialized by setting the '{0}' property.
+ /// TagHelper attributes must be well-formed.
///
- internal static string FormatFeatureMustBeInitialized(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("FeatureMustBeInitialized"), p0);
+ internal static string FormatTagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed()
+ => GetString("TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed");
///
- /// The document type '{0}' does not support the extension '{1}'.
+ /// The parent <{0}> tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed.
///
- internal static string Diagnostic_CodeTarget_UnsupportedExtension
+ internal static string TagHelperParseTreeRewriter_CannotHaveNonTagContent
{
- get => GetString("Diagnostic_CodeTarget_UnsupportedExtension");
+ get => GetString("TagHelperParseTreeRewriter_CannotHaveNonTagContent");
}
///
- /// The document type '{0}' does not support the extension '{1}'.
+ /// The parent <{0}> tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed.
///
- internal static string FormatDiagnostic_CodeTarget_UnsupportedExtension(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("Diagnostic_CodeTarget_UnsupportedExtension"), p0, p1);
+ internal static string FormatTagHelperParseTreeRewriter_CannotHaveNonTagContent(object p0, object p1)
+ => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperParseTreeRewriter_CannotHaveNonTagContent"), p0, p1);
///
- /// The '{0}` directive must appear at the start of the line.
+ /// Found an end tag (</{0}>) for tag helper '{1}' with tag structure that disallows an end tag ('{2}').
///
- internal static string DirectiveMustAppearAtStartOfLine
+ internal static string TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag
{
- get => GetString("DirectiveMustAppearAtStartOfLine");
+ get => GetString("TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag");
}
///
- /// The '{0}` directive must appear at the start of the line.
+ /// Found an end tag (</{0}>) for tag helper '{1}' with tag structure that disallows an end tag ('{2}').
///
- internal static string FormatDirectiveMustAppearAtStartOfLine(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveMustAppearAtStartOfLine"), p0);
+ internal static string FormatTagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag(object p0, object p1, object p2)
+ => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag"), p0, p1, p2);
///
- /// The '{0}' directives value(s) must be separated by whitespace.
+ /// Tag helpers '{0}' and '{1}' targeting element '{2}' must not expect different {3} values.
///
- internal static string DirectiveTokensMustBeSeparatedByWhitespace
+ internal static string TagHelperParseTreeRewriter_InconsistentTagStructure
{
- get => GetString("DirectiveTokensMustBeSeparatedByWhitespace");
+ get => GetString("TagHelperParseTreeRewriter_InconsistentTagStructure");
}
///
- /// The '{0}' directives value(s) must be separated by whitespace.
+ /// Tag helpers '{0}' and '{1}' targeting element '{2}' must not expect different {3} values.
///
- internal static string FormatDirectiveTokensMustBeSeparatedByWhitespace(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("DirectiveTokensMustBeSeparatedByWhitespace"), p0);
+ internal static string FormatTagHelperParseTreeRewriter_InconsistentTagStructure(object p0, object p1, object p2, object p3)
+ => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperParseTreeRewriter_InconsistentTagStructure"), p0, p1, p2, p3);
///
- /// The key must not be null.
+ /// The <{0}> tag is not allowed by parent <{1}> tag helper. Only child tags with name(s) '{2}' are allowed.
///
- internal static string KeyMustNotBeNull
+ internal static string TagHelperParseTreeRewriter_InvalidNestedTag
{
- get => GetString("KeyMustNotBeNull");
+ get => GetString("TagHelperParseTreeRewriter_InvalidNestedTag");
}
///
- /// The key must not be null.
+ /// The <{0}> tag is not allowed by parent <{1}> tag helper. Only child tags with name(s) '{2}' are allowed.
///
- internal static string FormatKeyMustNotBeNull()
- => GetString("KeyMustNotBeNull");
-
- ///
- /// The reference is invalid. The node '{0}' could not be found as a child of '{1}'.
- ///
- internal static string IntermediateNodeReference_NodeNotFound
- {
- get => GetString("IntermediateNodeReference_NodeNotFound");
- }
-
- ///
- /// The reference is invalid. The node '{0}' could not be found as a child of '{1}'.
- ///
- internal static string FormatIntermediateNodeReference_NodeNotFound(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodeReference_NodeNotFound"), p0, p1);
-
- ///
- /// The reference is invalid. References initialized with the default constructor cannot modify nodes.
- ///
- internal static string IntermediateNodeReference_NotInitialized
- {
- get => GetString("IntermediateNodeReference_NotInitialized");
- }
-
- ///
- /// The reference is invalid. References initialized with the default constructor cannot modify nodes.
- ///
- internal static string FormatIntermediateNodeReference_NotInitialized()
- => GetString("IntermediateNodeReference_NotInitialized");
-
- ///
- /// The node '{0}' has a read-only child collection and cannot be modified.
- ///
- internal static string IntermediateNodeReference_CollectionIsReadOnly
- {
- get => GetString("IntermediateNodeReference_CollectionIsReadOnly");
- }
-
- ///
- /// The node '{0}' has a read-only child collection and cannot be modified.
- ///
- internal static string FormatIntermediateNodeReference_CollectionIsReadOnly(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodeReference_CollectionIsReadOnly"), p0);
-
- ///
- /// The '{0}' directive may only occur once per document.
- ///
- internal static string DuplicateDirective
- {
- get => GetString("DuplicateDirective");
- }
-
- ///
- /// The '{0}' directive may only occur once per document.
- ///
- internal static string FormatDuplicateDirective(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("DuplicateDirective"), p0);
-
- ///
- /// Block directive '{0}' cannot be imported.
- ///
- internal static string BlockDirectiveCannotBeImported
- {
- get => GetString("BlockDirectiveCannotBeImported");
- }
-
- ///
- /// Block directive '{0}' cannot be imported.
- ///
- internal static string FormatBlockDirectiveCannotBeImported(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("BlockDirectiveCannotBeImported"), p0);
-
- ///
- /// Unreachable code. This can happen when a new {0} is introduced.
- ///
- internal static string UnexpectedDirectiveKind
- {
- get => GetString("UnexpectedDirectiveKind");
- }
-
- ///
- /// Unreachable code. This can happen when a new {0} is introduced.
- ///
- internal static string FormatUnexpectedDirectiveKind(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("UnexpectedDirectiveKind"), p0);
-
- ///
- /// The '{0}' requires a '{1}' delegate to be set.
- ///
- internal static string RenderingContextRequiresDelegate
- {
- get => GetString("RenderingContextRequiresDelegate");
- }
-
- ///
- /// The '{0}' requires a '{1}' delegate to be set.
- ///
- internal static string FormatRenderingContextRequiresDelegate(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("RenderingContextRequiresDelegate"), p0, p1);
-
- ///
- /// The '{0}' node type can only be used as a direct child of a '{1}' node.
- ///
- internal static string IntermediateNodes_InvalidParentNode
- {
- get => GetString("IntermediateNodes_InvalidParentNode");
- }
-
- ///
- /// The '{0}' node type can only be used as a direct child of a '{1}' node.
- ///
- internal static string FormatIntermediateNodes_InvalidParentNode(object p0, object p1)
- => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodes_InvalidParentNode"), p0, p1);
-
- ///
- /// Invalid newline sequence '{0}'. Support newline sequences are '\r\n' and '\n'.
- ///
- internal static string CodeWriter_InvalidNewLine
- {
- get => GetString("CodeWriter_InvalidNewLine");
- }
-
- ///
- /// Invalid newline sequence '{0}'. Support newline sequences are '\r\n' and '\n'.
- ///
- internal static string FormatCodeWriter_InvalidNewLine(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("CodeWriter_InvalidNewLine"), p0);
-
- ///
- /// Register Tag Helpers for use in the current document.
- ///
- internal static string AddTagHelperDirective_Description
- {
- get => GetString("AddTagHelperDirective_Description");
- }
-
- ///
- /// Register Tag Helpers for use in the current document.
- ///
- internal static string FormatAddTagHelperDirective_Description()
- => GetString("AddTagHelperDirective_Description");
-
- ///
- /// Specify a C# code block.
- ///
- internal static string FunctionsDirective_Description
- {
- get => GetString("FunctionsDirective_Description");
- }
-
- ///
- /// Specify a C# code block.
- ///
- internal static string FormatFunctionsDirective_Description()
- => GetString("FunctionsDirective_Description");
-
- ///
- /// Specify the base class for the current document.
- ///
- internal static string InheritsDirective_Description
- {
- get => GetString("InheritsDirective_Description");
- }
-
- ///
- /// Specify the base class for the current document.
- ///
- internal static string FormatInheritsDirective_Description()
- => GetString("InheritsDirective_Description");
-
- ///
- /// Remove Tag Helpers for use in the current document.
- ///
- internal static string RemoveTagHelperDirective_Description
- {
- get => GetString("RemoveTagHelperDirective_Description");
- }
-
- ///
- /// Remove Tag Helpers for use in the current document.
- ///
- internal static string FormatRemoveTagHelperDirective_Description()
- => GetString("RemoveTagHelperDirective_Description");
-
- ///
- /// Define a section to be rendered in the configured layout page.
- ///
- internal static string SectionDirective_Description
- {
- get => GetString("SectionDirective_Description");
- }
-
- ///
- /// Define a section to be rendered in the configured layout page.
- ///
- internal static string FormatSectionDirective_Description()
- => GetString("SectionDirective_Description");
+ internal static string FormatTagHelperParseTreeRewriter_InvalidNestedTag(object p0, object p1, object p2)
+ => string.Format(CultureInfo.CurrentCulture, GetString("TagHelperParseTreeRewriter_InvalidNestedTag"), p0, p1, p2);
///
/// Specify a prefix that is required in an element name for it to be included in Tag Helper processing.
@@ -682,104 +1670,6 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static string FormatTagHelperPrefixDirective_Description()
=> GetString("TagHelperPrefixDirective_Description");
- ///
- /// Provided value for razor language version is unsupported or invalid: '{0}'.
- ///
- internal static string InvalidRazorLanguageVersion
- {
- get => GetString("InvalidRazorLanguageVersion");
- }
-
- ///
- /// Provided value for razor language version is unsupported or invalid: '{0}'.
- ///
- internal static string FormatInvalidRazorLanguageVersion(object p0)
- => string.Format(CultureInfo.CurrentCulture, GetString("InvalidRazorLanguageVersion"), p0);
-
- ///
- /// Add tag helpers from the specified type name and assembly name. Specify '*' for the type name to include all tag helper types from the specified assembly.
- ///
- internal static string AddTagHelperDirective_StringToken_Description
- {
- get => GetString("AddTagHelperDirective_StringToken_Description");
- }
-
- ///
- /// Add tag helpers from the specified type name and assembly name. Specify '*' for the type name to include all tag helper types from the specified assembly.
- ///
- internal static string FormatAddTagHelperDirective_StringToken_Description()
- => GetString("AddTagHelperDirective_StringToken_Description");
-
- ///
- /// TypeName, AssemblyName
- ///
- internal static string AddTagHelperDirective_StringToken_Name
- {
- get => GetString("AddTagHelperDirective_StringToken_Name");
- }
-
- ///
- /// TypeName, AssemblyName
- ///
- internal static string FormatAddTagHelperDirective_StringToken_Name()
- => GetString("AddTagHelperDirective_StringToken_Name");
-
- ///
- /// The base type that the current page inherits.
- ///
- internal static string InheritsDirective_TypeToken_Description
- {
- get => GetString("InheritsDirective_TypeToken_Description");
- }
-
- ///
- /// The base type that the current page inherits.
- ///
- internal static string FormatInheritsDirective_TypeToken_Description()
- => GetString("InheritsDirective_TypeToken_Description");
-
- ///
- /// TypeName
- ///
- internal static string InheritsDirective_TypeToken_Name
- {
- get => GetString("InheritsDirective_TypeToken_Name");
- }
-
- ///
- /// TypeName
- ///
- internal static string FormatInheritsDirective_TypeToken_Name()
- => GetString("InheritsDirective_TypeToken_Name");
-
- ///
- /// Remove tag helpers from the specified type name and assembly name. Specify '*' for the type name to remove all tag helper types from the specified assembly.
- ///
- internal static string RemoveTagHelperDirective_StringToken_Description
- {
- get => GetString("RemoveTagHelperDirective_StringToken_Description");
- }
-
- ///
- /// Remove tag helpers from the specified type name and assembly name. Specify '*' for the type name to remove all tag helper types from the specified assembly.
- ///
- internal static string FormatRemoveTagHelperDirective_StringToken_Description()
- => GetString("RemoveTagHelperDirective_StringToken_Description");
-
- ///
- /// TypeName, AssemblyName
- ///
- internal static string RemoveTagHelperDirective_StringToken_Name
- {
- get => GetString("RemoveTagHelperDirective_StringToken_Name");
- }
-
- ///
- /// TypeName, AssemblyName
- ///
- internal static string FormatRemoveTagHelperDirective_StringToken_Name()
- => GetString("RemoveTagHelperDirective_StringToken_Name");
-
///
/// The tag prefix to apply to tag helpers.
///
@@ -809,32 +1699,134 @@ namespace Microsoft.AspNetCore.Razor.Language
=> GetString("TagHelperPrefixDirective_PrefixToken_Name");
///
- /// The name of the section.
+ /// Tag Helper '{0}'s attributes must have names.
///
- internal static string SectionDirective_NameToken_Description
+ internal static string TagHelpers_AttributesMustHaveAName
{
- get => GetString("SectionDirective_NameToken_Description");
+ get => GetString("TagHelpers_AttributesMustHaveAName");
}
///
- /// The name of the section.
+ /// Tag Helper '{0}'s attributes must have names.
///
- internal static string FormatSectionDirective_NameToken_Description()
- => GetString("SectionDirective_NameToken_Description");
+ internal static string FormatTagHelpers_AttributesMustHaveAName(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpers_AttributesMustHaveAName"), p0);
///
- /// SectionName
+ /// The tag helper '{0}' must not have C# in the element's attribute declaration area.
///
- internal static string SectionDirective_NameToken_Name
+ internal static string TagHelpers_CannotHaveCSharpInTagDeclaration
{
- get => GetString("SectionDirective_NameToken_Name");
+ get => GetString("TagHelpers_CannotHaveCSharpInTagDeclaration");
}
///
- /// SectionName
+ /// The tag helper '{0}' must not have C# in the element's attribute declaration area.
///
- internal static string FormatSectionDirective_NameToken_Name()
- => GetString("SectionDirective_NameToken_Name");
+ internal static string FormatTagHelpers_CannotHaveCSharpInTagDeclaration(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpers_CannotHaveCSharpInTagDeclaration"), p0);
+
+ ///
+ /// Code blocks (e.g. @{{var variable = 23;}}) must not appear in non-string tag helper attribute values.
+ /// Already in an expression (code) context. If necessary an explicit expression (e.g. @(@readonly)) may be used.
+ ///
+ internal static string TagHelpers_CodeBlocks_NotSupported_InAttributes
+ {
+ get => GetString("TagHelpers_CodeBlocks_NotSupported_InAttributes");
+ }
+
+ ///
+ /// Code blocks (e.g. @{{var variable = 23;}}) must not appear in non-string tag helper attribute values.
+ /// Already in an expression (code) context. If necessary an explicit expression (e.g. @(@readonly)) may be used.
+ ///
+ internal static string FormatTagHelpers_CodeBlocks_NotSupported_InAttributes()
+ => GetString("TagHelpers_CodeBlocks_NotSupported_InAttributes");
+
+ ///
+ /// Inline markup blocks (e.g. @<p>content</p>) must not appear in non-string tag helper attribute values.
+ /// Expected a '{0}' attribute value, not a string.
+ ///
+ internal static string TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes
+ {
+ get => GetString("TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes");
+ }
+
+ ///
+ /// Inline markup blocks (e.g. @<p>content</p>) must not appear in non-string tag helper attribute values.
+ /// Expected a '{0}' attribute value, not a string.
+ ///
+ internal static string FormatTagHelpers_InlineMarkupBlocks_NotSupported_InAttributes(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes"), p0);
+
+ ///
+ /// Found a malformed '{0}' tag helper. Tag helpers must have a start and end tag or be self closing.
+ ///
+ internal static string TagHelpersParseTreeRewriter_FoundMalformedTagHelper
+ {
+ get => GetString("TagHelpersParseTreeRewriter_FoundMalformedTagHelper");
+ }
+
+ ///
+ /// Found a malformed '{0}' tag helper. Tag helpers must have a start and end tag or be self closing.
+ ///
+ internal static string FormatTagHelpersParseTreeRewriter_FoundMalformedTagHelper(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpersParseTreeRewriter_FoundMalformedTagHelper"), p0);
+
+ ///
+ /// Missing close angle for tag helper '{0}'.
+ ///
+ internal static string TagHelpersParseTreeRewriter_MissingCloseAngle
+ {
+ get => GetString("TagHelpersParseTreeRewriter_MissingCloseAngle");
+ }
+
+ ///
+ /// Missing close angle for tag helper '{0}'.
+ ///
+ internal static string FormatTagHelpersParseTreeRewriter_MissingCloseAngle(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("TagHelpersParseTreeRewriter_MissingCloseAngle"), p0);
+
+ ///
+ /// Unreachable code. This can happen when a new {0} is introduced.
+ ///
+ internal static string UnexpectedDirectiveKind
+ {
+ get => GetString("UnexpectedDirectiveKind");
+ }
+
+ ///
+ /// Unreachable code. This can happen when a new {0} is introduced.
+ ///
+ internal static string FormatUnexpectedDirectiveKind(object p0)
+ => string.Format(CultureInfo.CurrentCulture, GetString("UnexpectedDirectiveKind"), p0);
+
+ ///
+ /// Unexpected literal following the '{0}' directive. Expected '{1}'.
+ ///
+ internal static string UnexpectedDirectiveLiteral
+ {
+ get => GetString("UnexpectedDirectiveLiteral");
+ }
+
+ ///
+ /// Unexpected literal following the '{0}' directive. Expected '{1}'.
+ ///
+ internal static string FormatUnexpectedDirectiveLiteral(object p0, object p1)
+ => string.Format(CultureInfo.CurrentCulture, GetString("UnexpectedDirectiveLiteral"), p0, p1);
+
+ ///
+ /// Unexpected end of file following the '{0}' directive. Expected '{1}'.
+ ///
+ internal static string UnexpectedEOFAfterDirective
+ {
+ get => GetString("UnexpectedEOFAfterDirective");
+ }
+
+ ///
+ /// Unexpected end of file following the '{0}' directive. Expected '{1}'.
+ ///
+ internal static string FormatUnexpectedEOFAfterDirective(object p0, object p1)
+ => string.Format(CultureInfo.CurrentCulture, GetString("UnexpectedEOFAfterDirective"), p0, p1);
private static string GetString(string name, params string[] formatterNames)
{
diff --git a/src/Microsoft.AspNetCore.Razor.Language/RazorDiagnosticFactory.cs b/src/Microsoft.AspNetCore.Razor.Language/RazorDiagnosticFactory.cs
index 1fe7198424..cf1ad34dd6 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/RazorDiagnosticFactory.cs
+++ b/src/Microsoft.AspNetCore.Razor.Language/RazorDiagnosticFactory.cs
@@ -33,7 +33,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_UnterminatedStringLiteral =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1000",
- () => LegacyResources.ParseError_Unterminated_String_Literal,
+ () => Resources.ParseError_Unterminated_String_Literal,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_UnterminatedStringLiteral(SourceSpan location)
{
@@ -43,7 +43,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_BlockCommentNotTerminated =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1001",
- () => LegacyResources.ParseError_BlockComment_Not_Terminated,
+ () => Resources.ParseError_BlockComment_Not_Terminated,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_BlockCommentNotTerminated(SourceSpan location)
{
@@ -53,7 +53,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_HelperDirectiveNotAvailable =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1002",
- () => LegacyResources.ParseError_HelperDirectiveNotAvailable,
+ () => Resources.ParseError_HelperDirectiveNotAvailable,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_HelperDirectiveNotAvailable(SourceSpan location)
{
@@ -63,7 +63,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_UnexpectedWhiteSpaceAtStartOfCodeBlock =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1003",
- () => LegacyResources.ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock_CS,
+ () => Resources.ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_UnexpectedWhiteSpaceAtStartOfCodeBlock(SourceSpan location)
{
@@ -73,7 +73,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_UnexpectedEndOfFileAtStartOfCodeBlock =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1004",
- () => LegacyResources.ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock,
+ () => Resources.ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_UnexpectedEndOfFileAtStartOfCodeBlock(SourceSpan location)
{
@@ -83,7 +83,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_UnexpectedCharacterAtStartOfCodeBlock =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1005",
- () => LegacyResources.ParseError_Unexpected_Character_At_Start_Of_CodeBlock_CS,
+ () => Resources.ParseError_Unexpected_Character_At_Start_Of_CodeBlock,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_UnexpectedCharacterAtStartOfCodeBlock(SourceSpan location, string content)
{
@@ -93,7 +93,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_ExpectedEndOfBlockBeforeEOF =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1006",
- () => LegacyResources.ParseError_Expected_EndOfBlock_Before_EOF,
+ () => Resources.ParseError_Expected_EndOfBlock_Before_EOF,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_ExpectedEndOfBlockBeforeEOF(SourceSpan location, string blockName, string closeBlock, string openBlock)
{
@@ -103,7 +103,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_ReservedWord =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1007",
- () => LegacyResources.ParseError_ReservedWord,
+ () => Resources.ParseError_ReservedWord,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_ReservedWord(SourceSpan location, string content)
{
@@ -113,7 +113,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_SingleLineControlFlowStatementsNotAllowed =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1008",
- () => LegacyResources.ParseError_SingleLine_ControlFlowStatements_Not_Allowed,
+ () => Resources.ParseError_SingleLine_ControlFlowStatements_Not_Allowed,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_SingleLineControlFlowStatementsNotAllowed(SourceSpan location, string expected, string actual)
{
@@ -123,7 +123,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_AtInCodeMustBeFollowedByColonParenOrIdentifierStart =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1009",
- () => LegacyResources.ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start,
+ () => Resources.ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_AtInCodeMustBeFollowedByColonParenOrIdentifierStart(SourceSpan location)
{
@@ -133,7 +133,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_UnexpectedNestedCodeBlock =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1010",
- () => LegacyResources.ParseError_Unexpected_Nested_CodeBlock,
+ () => Resources.ParseError_Unexpected_Nested_CodeBlock,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_UnexpectedNestedCodeBlock(SourceSpan location)
{
@@ -153,7 +153,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_UnexpectedEOFAfterDirective =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1012",
- () => LegacyResources.UnexpectedEOFAfterDirective,
+ () => Resources.UnexpectedEOFAfterDirective,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_UnexpectedEOFAfterDirective(SourceSpan location, string directiveName, string expectedToken)
{
@@ -163,7 +163,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_DirectiveExpectsTypeName =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1013",
- () => LegacyResources.DirectiveExpectsTypeName,
+ () => Resources.DirectiveExpectsTypeName,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_DirectiveExpectsTypeName(SourceSpan location, string directiveName)
{
@@ -173,7 +173,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_DirectiveExpectsNamespace =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1014",
- () => LegacyResources.DirectiveExpectsNamespace,
+ () => Resources.DirectiveExpectsNamespace,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_DirectiveExpectsNamespace(SourceSpan location, string directiveName)
{
@@ -183,7 +183,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_DirectiveExpectsIdentifier =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1015",
- () => LegacyResources.DirectiveExpectsIdentifier,
+ () => Resources.DirectiveExpectsIdentifier,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_DirectiveExpectsIdentifier(SourceSpan location, string directiveName)
{
@@ -193,7 +193,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_DirectiveExpectsQuotedStringLiteral =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1016",
- () => LegacyResources.DirectiveExpectsQuotedStringLiteral,
+ () => Resources.DirectiveExpectsQuotedStringLiteral,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_DirectiveExpectsQuotedStringLiteral(SourceSpan location, string directiveName)
{
@@ -203,7 +203,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_UnexpectedDirectiveLiteral =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1017",
- () => LegacyResources.UnexpectedDirectiveLiteral,
+ () => Resources.UnexpectedDirectiveLiteral,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_UnexpectedDirectiveLiteral(SourceSpan location, string directiveName, string expected)
{
@@ -213,7 +213,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_DirectiveMustHaveValue =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1018",
- () => LegacyResources.ParseError_DirectiveMustHaveValue,
+ () => Resources.ParseError_DirectiveMustHaveValue,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_DirectiveMustHaveValue(SourceSpan location, string directiveName)
{
@@ -223,7 +223,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_IncompleteQuotesAroundDirective =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1019",
- () => LegacyResources.ParseError_IncompleteQuotesAroundDirective,
+ () => Resources.ParseError_IncompleteQuotesAroundDirective,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_IncompleteQuotesAroundDirective(SourceSpan location, string directiveName)
{
@@ -253,7 +253,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_MarkupBlockMustStartWithTag =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1021",
- () => LegacyResources.ParseError_MarkupBlock_Must_Start_With_Tag,
+ () => Resources.ParseError_MarkupBlock_Must_Start_With_Tag,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_MarkupBlockMustStartWithTag(SourceSpan location)
{
@@ -263,7 +263,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_OuterTagMissingName =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1022",
- () => LegacyResources.ParseError_OuterTagMissingName,
+ () => Resources.ParseError_OuterTagMissingName,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_OuterTagMissingName(SourceSpan location)
{
@@ -273,7 +273,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_TextTagCannotContainAttributes =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1023",
- () => LegacyResources.ParseError_TextTagCannotContainAttributes,
+ () => Resources.ParseError_TextTagCannotContainAttributes,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_TextTagCannotContainAttributes(SourceSpan location)
{
@@ -283,7 +283,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_UnfinishedTag =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1024",
- () => LegacyResources.ParseError_UnfinishedTag,
+ () => Resources.ParseError_UnfinishedTag,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_UnfinishedTag(SourceSpan location, string tagName)
{
@@ -293,7 +293,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_MissingEndTag =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1025",
- () => LegacyResources.ParseError_MissingEndTag,
+ () => Resources.ParseError_MissingEndTag,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_MissingEndTag(SourceSpan location, string tagName)
{
@@ -303,7 +303,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_UnexpectedEndTag =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1026",
- () => LegacyResources.ParseError_UnexpectedEndTag,
+ () => Resources.ParseError_UnexpectedEndTag,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_UnexpectedEndTag(SourceSpan location, string tagName)
{
@@ -313,7 +313,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_ExpectedCloseBracketBeforeEOF =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1027",
- () => LegacyResources.ParseError_Expected_CloseBracket_Before_EOF,
+ () => Resources.ParseError_Expected_CloseBracket_Before_EOF,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_ExpectedCloseBracketBeforeEOF(SourceSpan location, string openBrace, string closeBrace)
{
@@ -323,7 +323,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_RazorCommentNotTerminated =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1028",
- () => LegacyResources.ParseError_RazorComment_Not_Terminated,
+ () => Resources.ParseError_RazorComment_Not_Terminated,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_RazorCommentNotTerminated(SourceSpan location)
{
@@ -333,7 +333,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_TagHelperIndexerAttributeNameMustIncludeKey =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1029",
- () => LegacyResources.TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey,
+ () => Resources.TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_TagHelperIndexerAttributeNameMustIncludeKey(SourceSpan location, string attributeName, string tagName)
{
@@ -343,7 +343,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_TagHelperAttributeListMustBeWellFormed =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1030",
- () => LegacyResources.TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed,
+ () => Resources.TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_TagHelperAttributeListMustBeWellFormed(SourceSpan location)
{
@@ -353,7 +353,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_TagHelpersCannotHaveCSharpInTagDeclaration =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1031",
- () => LegacyResources.TagHelpers_CannotHaveCSharpInTagDeclaration,
+ () => Resources.TagHelpers_CannotHaveCSharpInTagDeclaration,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_TagHelpersCannotHaveCSharpInTagDeclaration(SourceSpan location, string tagName)
{
@@ -363,7 +363,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_TagHelperAttributesMustHaveAName =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1032",
- () => LegacyResources.TagHelpers_AttributesMustHaveAName,
+ () => Resources.TagHelpers_AttributesMustHaveAName,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_TagHelperAttributesMustHaveAName(SourceSpan location, string tagName)
{
@@ -373,7 +373,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_TagHelperMustNotHaveAnEndTag =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1033",
- () => LegacyResources.TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag,
+ () => Resources.TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_TagHelperMustNotHaveAnEndTag(SourceSpan location, string tagName, string displayName, TagStructure tagStructure)
{
@@ -390,7 +390,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_TagHelperFoundMalformedTagHelper =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1034",
- () => LegacyResources.TagHelpersParseTreeRewriter_FoundMalformedTagHelper,
+ () => Resources.TagHelpersParseTreeRewriter_FoundMalformedTagHelper,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_TagHelperFoundMalformedTagHelper(SourceSpan location, string tagName)
{
@@ -405,7 +405,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_TagHelperMissingCloseAngle =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}1035",
- () => LegacyResources.TagHelpersParseTreeRewriter_MissingCloseAngle,
+ () => Resources.TagHelpersParseTreeRewriter_MissingCloseAngle,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_TagHelperMissingCloseAngle(SourceSpan location, string tagName)
{
@@ -446,17 +446,17 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_SectionsCannotBeNested =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}2002",
- () => LegacyResources.ParseError_Sections_Cannot_Be_Nested,
+ () => Resources.ParseError_Sections_Cannot_Be_Nested,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_SectionsCannotBeNested(SourceSpan location)
{
- return RazorDiagnostic.Create(Parsing_SectionsCannotBeNested, location, LegacyResources.SectionExample_CS);
+ return RazorDiagnostic.Create(Parsing_SectionsCannotBeNested, location, Resources.SectionExample);
}
internal static readonly RazorDiagnosticDescriptor Parsing_InlineMarkupBlocksCannotBeNested =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}2003",
- () => LegacyResources.ParseError_InlineMarkup_Blocks_Cannot_Be_Nested,
+ () => Resources.ParseError_InlineMarkup_Blocks_Cannot_Be_Nested,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_InlineMarkupBlocksCannotBeNested(SourceSpan location)
{
@@ -466,7 +466,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor Parsing_NamespaceImportAndTypeAliasCannotExistWithinCodeBlock =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}2004",
- () => LegacyResources.ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock,
+ () => Resources.ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateParsing_NamespaceImportAndTypeAliasCannotExistWithinCodeBlock(SourceSpan location)
{
@@ -486,7 +486,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor TagHelper_CodeBlocksNotSupportedInAttributes =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}2006",
- () => LegacyResources.TagHelpers_CodeBlocks_NotSupported_InAttributes,
+ () => Resources.TagHelpers_CodeBlocks_NotSupported_InAttributes,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateTagHelper_CodeBlocksNotSupportedInAttributes(SourceSpan location)
{
@@ -497,7 +497,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor TagHelper_InlineMarkupBlocksNotSupportedInAttributes =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}2007",
- () => LegacyResources.TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes,
+ () => Resources.TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateTagHelper_InlineMarkupBlocksNotSupportedInAttributes(SourceSpan location, string expectedTypeName)
{
@@ -512,7 +512,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor TagHelper_EmptyBoundAttribute =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}2008",
- () => LegacyResources.RewriterError_EmptyTagHelperBoundAttribute,
+ () => Resources.RewriterError_EmptyTagHelperBoundAttribute,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateTagHelper_EmptyBoundAttribute(SourceSpan location, string attributeName, string tagName, string propertyTypeName)
{
@@ -522,7 +522,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor TagHelper_CannotHaveNonTagContent =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}2009",
- () => LegacyResources.TagHelperParseTreeRewriter_CannotHaveNonTagContent,
+ () => Resources.TagHelperParseTreeRewriter_CannotHaveNonTagContent,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateTagHelper_CannotHaveNonTagContent(SourceSpan location, string tagName, string allowedChildren)
{
@@ -532,7 +532,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor TagHelper_InvalidNestedTag =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}2010",
- () => LegacyResources.TagHelperParseTreeRewriter_InvalidNestedTag,
+ () => Resources.TagHelperParseTreeRewriter_InvalidNestedTag,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateTagHelper_InvalidNestedTag(SourceSpan location, string tagName, string parent, string allowedChildren)
{
@@ -542,7 +542,7 @@ namespace Microsoft.AspNetCore.Razor.Language
internal static readonly RazorDiagnosticDescriptor TagHelper_InconsistentTagStructure =
new RazorDiagnosticDescriptor(
$"{DiagnosticPrefix}2011",
- () => LegacyResources.TagHelperParseTreeRewriter_InconsistentTagStructure,
+ () => Resources.TagHelperParseTreeRewriter_InconsistentTagStructure,
RazorDiagnosticSeverity.Error);
public static RazorDiagnostic CreateTagHelper_InconsistentTagStructure(SourceSpan location, string firstDescriptor, string secondDescriptor, string tagName)
{
diff --git a/src/Microsoft.AspNetCore.Razor.Language/Resources.resx b/src/Microsoft.AspNetCore.Razor.Language/Resources.resx
index aab3ca7f13..443ab2fe8e 100644
--- a/src/Microsoft.AspNetCore.Razor.Language/Resources.resx
+++ b/src/Microsoft.AspNetCore.Razor.Language/Resources.resx
@@ -117,45 +117,318 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ Register Tag Helpers for use in the current document.
+
+
+ Add tag helpers from the specified type name and assembly name. Specify '*' for the type name to include all tag helper types from the specified assembly.
+
+
+ TypeName, AssemblyName
+
Value cannot be null or an empty string.
+
+ Block cannot be built because a Type has not been specified in the BlockBuilder
+
+
+ Block directive '{0}' cannot be imported.
+
+
+ code
+ This is a literal used when composing ParserError_* messages. Most blocks are named by the keyword that starts them, for example "if". However, for those without keywords, a (localizable) name must be used. This literal is ALWAYS used mid-sentence, thus should not be capitalized.
+
+
+ explicit expression
+ This is a literal used when composing ParserError_* messages. Most blocks are named by the keyword that starts them, for example "if". However, for those without keywords, a (localizable) name must be used. This literal is ALWAYS used mid-sentence, thus should not be capitalized.
+
+
+ Invalid newline sequence '{0}'. Support newline sequences are '\r\n' and '\n'.
+
+
+ <<character literal>>
+
+
+ <<comment>>
+
+
+ <<identifier>>
+
+
+ <<integer literal>>
+
+
+ <<keyword>>
+
+
+ <<newline sequence>>
+
+
+ <<real literal>>
+
+
+ <<string literal>>
+
+
+ <<white space>>
+
+
+ The document type '{0}' does not support the extension '{1}'.
+
+
+ Invalid directive keyword '{0}'. Directives must have a non-empty keyword that consists only of letters.
+
+
+ A non-optional directive token cannot follow an optional directive token.
+
+
+ The '{0}' directive expects an identifier.
+
+
+ The '{0}' directive expects a namespace name.
+
+
+ The '{0}' directive expects a string surrounded by double quotes.
+
+
+ The '{0}' directive expects a type name.
+
+
+ The '{0}` directive must appear at the start of the line.
+
+
+ The '{0}' directives value(s) must be separated by whitespace.
+
+
+ The document of kind '{0}' does not have a '{1}'. The document classifier must set a value for '{2}'.
+
+
+ The '{0}' directive may only occur once per document.
+
+
+ "EndBlock" was called without a matching call to "StartBlock".
+
+
+ line break
+
The '{0}' feature requires a '{1}' provided by the '{2}'.
+
+ The feature must be initialized by setting the '{0}' property.
+
+
+ Specify a C# code block.
+
+
+ <<newline sequence>>
+
+
+ <<razor comment>>
+
+
+ <<text>>
+
+
+ <<white space>>
+
+
+ Specify the base class for the current document.
+
+
+ The base type that the current page inherits.
+
+
+ TypeName
+
+
+ The '{0}' operation is not valid when the builder is empty.
+
+
+ The node '{0}' has a read-only child collection and cannot be modified.
+
+
+ The reference is invalid. The node '{0}' could not be found as a child of '{1}'.
+
+
+ The reference is invalid. References initialized with the default constructor cannot modify nodes.
+
+
+ The '{0}' node type can only be used as a direct child of a '{1}' node.
+
+
+ The node '{0}' is not the owner of change '{1}'.
+
+
+ Provided value for razor language version is unsupported or invalid: '{0}'.
+
Invalid tag helper directive look up text '{0}'. The correct look up text format is: "name, assemblyName".
Invalid tag helper directive '{0}' value. '{1}' is not allowed in prefix '{2}'.
-
- The '{0}' operation is not valid when the builder is empty.
+
+ The key must not be null.
+
+
+ Cannot use built-in RazorComment handler, language characteristics does not define the CommentStart, CommentStar and CommentBody known symbol types or parser does not override TokenizerBackedParser.OutputSpanBeforeRazorComment
The specified encoding '{0}' does not match the content's encoding '{1}'.
+
+ The "@" character must be followed by a ":", "(", or a C# identifier. If you intended to switch to markup, use an HTML start tag, for example:
+
+@if(isLoggedIn) {{
+ <p>Hello, @user!</p>
+}}
+ "{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"
+
+
+ End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence.
+
+
+ Directive '{0}' must have a value.
+
+
+ An opening "{0}" is missing the corresponding closing "{1}".
+
+
+ The {0} block is missing a closing "{1}" character. Make sure you have a matching "{1}" character for all the "{2}" characters within this block, and that none of the "{1}" characters are being interpreted as markup.
+
+
+ The {0} directive is not supported.
+
+
+ Optional quote around the directive '{0}' is missing the corresponding opening or closing quote.
+
+
+ Inline markup blocks (@<p>Content</p>) cannot be nested. Only one level of inline markup is allowed.
+
+
+ Markup in a code block must start with a tag and all start tags must be matched with end tags. Do not use unclosed tags like "<br>". Instead use self-closing tags like "<br/>".
+
+
+ The "{0}" element was not closed. All elements must be either self-closing or have a matching end tag.
+
+
+ Namespace imports and type aliases cannot be placed within code blocks. They must immediately follow an "@" character in markup. It is recommended that you put them at the top of the page, as in the following example:
+
+@using System.Drawing;
+@{{
+ // OK here to use types from System.Drawing in the page.
+}}
+ "{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"
+
+
+ Outer tag is missing a name. The first character of a markup block must be an HTML tag with a valid name.
+
+
+ End of file was reached before the end of the block comment. All comments that start with the "@*" sequence must be terminated with a matching "*@" sequence.
+
+
+ "{0}" is a reserved word and cannot be used in implicit expressions. An explicit expression ("@()") must be used.
+
+
+ Section blocks ("{0}") cannot be nested. Only one level of section blocks are allowed.
+
+
+ Expected a "{0}" but found a "{1}". Block statements must be enclosed in "{{" and "}}". You cannot use single-statement control-flow statements in CSHTML pages. For example, the following is not allowed:
+
+@if(isLoggedIn)
+ <p>Hello, @user</p>
+
+Instead, wrap the contents of the block in "{{}}":
+
+@if(isLoggedIn) {{
+ <p>Hello, @user</p>
+}}
+ {0} is only ever a single character
+
+
+ "<text>" and "</text>" tags cannot contain attributes.
+
+
+ "{0}" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{{" are valid.
+ "{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"
+
+
+ End-of-file was found after the "@" character. "@" must be followed by a valid code block. If you want to output an "@", escape it using the sequence: "@@"
+
+
+ Unexpected "{{" after "@" character. Once inside the body of a code block (@if {{}}, @{{}}, etc.) you do not need to use "@{{" to switch to code.
+ "{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"
+
+
+ A space or line break was encountered after the "@" character. Only valid identifiers, keywords, comments, "(" and "{{" are valid at the start of a code block and they must occur immediately following "@" with no space in between.
+ "{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"
+
+
+ Encountered end tag "{0}" with no matching start tag. Are your start/end tags properly balanced?
+
+
+ End of file or an unexpected character was reached before the "{0}" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "<" HTML entity.
+
+
+ Unterminated string literal. Strings that start with a quotation mark (") must be terminated before the end of the line. However, strings that start with @ and a quotation mark (@") can span multiple lines.
+
+
+ Parser was started with a null Context property. The Context property must be set BEFORE calling any methods on the parser.
+
+
+ Cannot complete the tree, StartBlock must be called at least once.
+
+
+ Cannot complete the tree, there are still open blocks.
+
+
+ Cannot finish span, there is no current block. Call StartBlock at least once before finishing a span
+
The '{0}' phase requires a '{1}' provided by the '{2}'.
The phase must be initialized by setting the '{0}' property.
-
- Tag helper directive assembly name cannot be null or empty.
-
Path must begin with a forward slash '/'.
-
- A non-optional directive token cannot follow an optional directive token.
-
-
- The document of kind '{0}' does not have a '{1}'. The document classifier must set a value for '{2}'.
-
The item '{0}' could not be found.
+
+ Remove Tag Helpers for use in the current document.
+
+
+ Remove tag helpers from the specified type name and assembly name. Specify '*' for the type name to remove all tag helper types from the specified assembly.
+
+
+ TypeName, AssemblyName
+
+
+ The '{0}' requires a '{1}' delegate to be set.
+
+
+ Attribute '{0}' on tag helper element '{1}' requires a value. Tag helper bound attributes of type '{2}' cannot be empty or contain only whitespace.
+
+
+ Define a section to be rendered in the configured layout page.
+
+
+ The name of the section.
+
+
+ SectionName
+
+
+ @section Header { ... }
+ In CSHTML, the @section keyword is case-sensitive and lowercase (as with all C# keywords)
+
+
+ <<unknown>>
+
Invalid tag helper bound property '{1}' on tag helper '{0}'. Tag helpers cannot bind to HTML attributes with name '{2}' because the name contains a '{3}' character.
@@ -195,103 +468,63 @@
Targeted tag name cannot be null or whitespace.
-
- The node '{0}' is not the owner of change '{1}'.
+
+ Tag helper directive assembly name cannot be null or empty.
-
- Invalid directive keyword '{0}'. Directives must have a non-empty keyword that consists only of letters.
+
+ The tag helper attribute '{0}' in element '{1}' is missing a key. The syntax is '<{1} {0}{{ key }}="value">'.
-
- The feature must be initialized by setting the '{0}' property.
+
+ TagHelper attributes must be well-formed.
-
- The document type '{0}' does not support the extension '{1}'.
+
+ The parent <{0}> tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed.
-
- The '{0}` directive must appear at the start of the line.
+
+ Found an end tag (</{0}>) for tag helper '{1}' with tag structure that disallows an end tag ('{2}').
-
- The '{0}' directives value(s) must be separated by whitespace.
+
+ Tag helpers '{0}' and '{1}' targeting element '{2}' must not expect different {3} values.
-
- The key must not be null.
-
-
- The reference is invalid. The node '{0}' could not be found as a child of '{1}'.
-
-
- The reference is invalid. References initialized with the default constructor cannot modify nodes.
-
-
- The node '{0}' has a read-only child collection and cannot be modified.
-
-
- The '{0}' directive may only occur once per document.
-
-
- Block directive '{0}' cannot be imported.
-
-
- Unreachable code. This can happen when a new {0} is introduced.
-
-
- The '{0}' requires a '{1}' delegate to be set.
-
-
- The '{0}' node type can only be used as a direct child of a '{1}' node.
-
-
- Invalid newline sequence '{0}'. Support newline sequences are '\r\n' and '\n'.
-
-
- Register Tag Helpers for use in the current document.
-
-
- Specify a C# code block.
-
-
- Specify the base class for the current document.
-
-
- Remove Tag Helpers for use in the current document.
-
-
- Define a section to be rendered in the configured layout page.
+
+ The <{0}> tag is not allowed by parent <{1}> tag helper. Only child tags with name(s) '{2}' are allowed.
Specify a prefix that is required in an element name for it to be included in Tag Helper processing.
-
- Provided value for razor language version is unsupported or invalid: '{0}'.
-
-
- Add tag helpers from the specified type name and assembly name. Specify '*' for the type name to include all tag helper types from the specified assembly.
-
-
- TypeName, AssemblyName
-
-
- The base type that the current page inherits.
-
-
- TypeName
-
-
- Remove tag helpers from the specified type name and assembly name. Specify '*' for the type name to remove all tag helper types from the specified assembly.
-
-
- TypeName, AssemblyName
-
The tag prefix to apply to tag helpers.
Prefix
-
- The name of the section.
+
+ Tag Helper '{0}'s attributes must have names.
-
- SectionName
+
+ The tag helper '{0}' must not have C# in the element's attribute declaration area.
+
+
+ Code blocks (e.g. @{{var variable = 23;}}) must not appear in non-string tag helper attribute values.
+ Already in an expression (code) context. If necessary an explicit expression (e.g. @(@readonly)) may be used.
+
+
+ Inline markup blocks (e.g. @<p>content</p>) must not appear in non-string tag helper attribute values.
+ Expected a '{0}' attribute value, not a string.
+
+
+ Found a malformed '{0}' tag helper. Tag helpers must have a start and end tag or be self closing.
+
+
+ Missing close angle for tag helper '{0}'.
+
+
+ Unreachable code. This can happen when a new {0} is introduced.
+
+
+ Unexpected literal following the '{0}' directive. Expected '{1}'.
+
+
+ Unexpected end of file following the '{0}' directive. Expected '{1}'.
\ No newline at end of file
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/BasicIntegrationTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/BasicIntegrationTest.cs
index 63234e0826..7f88e16eca 100644
--- a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/BasicIntegrationTest.cs
+++ b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/BasicIntegrationTest.cs
@@ -102,7 +102,7 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests
var document = RazorCodeDocument.Create(TestRazorSourceDocument.Create("@{", fileName: "test.cshtml"));
var expected = RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation("test.cshtml", 1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{");
+ new SourceSpan(new SourceLocation("test.cshtml", 1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{");
// Act
engine.Process(document);
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpAutoCompleteTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpAutoCompleteTest.cs
index 9f83bbae65..13633efdd1 100644
--- a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpAutoCompleteTest.cs
+++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpAutoCompleteTest.cs
@@ -66,7 +66,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
.With(new AutoCompleteEditHandler(CSharpLanguageCharacteristics.Instance.TokenizeString) { AutoCompleteString = "}" })
),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"));
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"));
}
[Fact]
@@ -138,7 +138,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
.With(new StatementChunkGenerator())
),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"));
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"));
}
}
}
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpBlockTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpBlockTest.cs
index 7d6bb982bc..73ccc2c79e 100644
--- a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpBlockTest.cs
+++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpBlockTest.cs
@@ -1146,7 +1146,7 @@ catch(bar) { baz(); }", BlockKindInternal.Statement, SpanKindInternal.Code);
RazorDiagnosticFactory.CreateParsing_UnfinishedTag(
new SourceSpan(new SourceLocation(2, 0, 2), contentLength: 4), "span"),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(SourceLocation.Zero, contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(SourceLocation.Zero, contentLength: 1), Resources.BlockName_Code, "}", "{"),
};
// Act & Assert
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpErrorTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpErrorTest.cs
index d7e617b00c..4d792c1a31 100644
--- a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpErrorTest.cs
+++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpErrorTest.cs
@@ -81,7 +81,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
.With(new AutoCompleteEditHandler(CSharpLanguageCharacteristics.Instance.TokenizeString) { AutoCompleteString = "}" })
),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(SourceLocation.Zero, contentLength: 1), LegacyResources.BlockName_Code, "}", "{"));
+ new SourceSpan(SourceLocation.Zero, contentLength: 1), Resources.BlockName_Code, "}", "{"));
}
[Fact]
@@ -153,7 +153,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
RazorDiagnosticFactory.CreateParsing_UnexpectedEndOfFileAtStartOfCodeBlock(
new SourceSpan(new SourceLocation(6 + Environment.NewLine.Length, 1, 5), contentLength: 1)),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(SourceLocation.Zero, contentLength: 1), LegacyResources.BlockName_Code, "}", "{"));
+ new SourceSpan(SourceLocation.Zero, contentLength: 1), Resources.BlockName_Code, "}", "{"));
}
[Fact]
@@ -180,7 +180,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
Factory.Code($"foo bar{Environment.NewLine}baz").AsExpression()
),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(SourceLocation.Zero, contentLength: 1), LegacyResources.BlockName_ExplicitExpression, ")", "("));
+ new SourceSpan(SourceLocation.Zero, contentLength: 1), Resources.BlockName_ExplicitExpression, ")", "("));
}
[Fact]
@@ -195,7 +195,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
Factory.Code($"foo bar{Environment.NewLine}").AsExpression()
),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(SourceLocation.Zero, contentLength: 1), LegacyResources.BlockName_ExplicitExpression, ")", "("));
+ new SourceSpan(SourceLocation.Zero, contentLength: 1), Resources.BlockName_ExplicitExpression, ")", "("));
}
[Fact]
@@ -286,7 +286,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
.AsStatement()
.AutoCompleteWith("}")),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(SourceLocation.Zero, contentLength: 1), LegacyResources.BlockName_Code, "}", "{"));
+ new SourceSpan(SourceLocation.Zero, contentLength: 1), Resources.BlockName_Code, "}", "{"));
}
[Fact]
@@ -420,7 +420,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
[Fact]
public void ParseBlockRequiresControlFlowStatementsToHaveBraces()
{
- var expectedMessage = LegacyResources.FormatParseError_SingleLine_ControlFlowStatements_Not_Allowed("{", "<");
+ var expectedMessage = Resources.FormatParseError_SingleLine_ControlFlowStatements_Not_Allowed("{", "<");
ParseBlockTest("if(foo) Bar
else if(bar) Baz
else Boz
",
new StatementBlock(
Factory.Code("if(foo) ").AsStatement(),
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpExplicitExpressionTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpExplicitExpressionTest.cs
index 201935bb5e..afc2afa90a 100644
--- a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpExplicitExpressionTest.cs
+++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpExplicitExpressionTest.cs
@@ -31,7 +31,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1),
- LegacyResources.BlockName_ExplicitExpression,
+ Resources.BlockName_ExplicitExpression,
")",
"("));
}
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpRazorCommentsTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpRazorCommentsTest.cs
index 4aa963a7a0..eb626f3abe 100644
--- a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpRazorCommentsTest.cs
+++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/CSharpRazorCommentsTest.cs
@@ -146,7 +146,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
RazorDiagnosticFactory.CreateParsing_MissingEndTag(
new SourceSpan(new SourceLocation(7 + Environment.NewLine.Length, 1, 5), contentLength: 4), "text"),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"));
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"));
}
[Fact]
@@ -171,7 +171,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
RazorDiagnosticFactory.CreateParsing_RazorCommentNotTerminated(
new SourceSpan(new SourceLocation(2, 0, 2), contentLength: 2)),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"));
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"));
}
[Fact]
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/HtmlBlockTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/HtmlBlockTest.cs
index c886e21a7b..f54ba50d37 100644
--- a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/HtmlBlockTest.cs
+++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/HtmlBlockTest.cs
@@ -48,7 +48,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new MarkupTagBlock(
Factory.Markup("<"))))),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"));
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"));
}
[Fact]
@@ -82,7 +82,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
RazorDiagnosticFactory.CreateParsing_UnexpectedEndTag(
new SourceSpan(new SourceLocation(5 + Environment.NewLine.Length * 2, 2, 2), contentLength: 4), "html"),
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
});
}
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/TagHelperParseTreeRewriterTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/TagHelperParseTreeRewriterTest.cs
index f8c0851667..2feccbe1a4 100644
--- a/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/TagHelperParseTreeRewriterTest.cs
+++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Legacy/TagHelperParseTreeRewriterTest.cs
@@ -2313,7 +2313,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
RazorDiagnosticFactory.CreateParsing_MissingEndTag(
new SourceSpan(filePath: null, absoluteIndex: 3, lineIndex: 0, characterIndex: 3, length: 5), "!text"),
}
@@ -2484,7 +2484,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
MissingEndTagError("!text"),
}
},
@@ -2570,7 +2570,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
MissingEndTagError("text"),
}
},
@@ -2646,7 +2646,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!text}", 6),
}
},
@@ -2661,7 +2661,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!text", 5),
}
},
@@ -2686,7 +2686,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!text", 5),
}
},
@@ -2711,7 +2711,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!text", 5),
}
},
@@ -2739,7 +2739,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!text", 5),
}
},
@@ -2768,7 +2768,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!text", 5),
}
}
@@ -2820,7 +2820,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!}"),
}
},
@@ -2831,7 +2831,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!p}"),
}
},
@@ -2843,7 +2843,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!p"),
}
},
@@ -2868,7 +2868,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!p"),
}
},
@@ -2893,7 +2893,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!p"),
}
},
@@ -2925,7 +2925,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!p"),
}
},
@@ -2953,7 +2953,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!p"),
}
},
@@ -2983,7 +2983,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
UnfinishedTagError("!p"),
}
}
@@ -3150,7 +3150,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
MissingEndTagError("!p"),
}
},
@@ -3232,7 +3232,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
MissingEndTagError("p"),
RazorDiagnosticFactory.CreateParsing_TagHelperFoundMalformedTagHelper(
new SourceSpan(absoluteIndex: 3, lineIndex: 0, characterIndex: 3, length: 1), "p")
@@ -3392,7 +3392,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
new []
{
RazorDiagnosticFactory.CreateParsing_ExpectedEndOfBlockBeforeEOF(
- new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), LegacyResources.BlockName_Code, "}", "{"),
+ new SourceSpan(new SourceLocation(1, 0, 1), contentLength: 1), Resources.BlockName_Code, "}", "{"),
RazorDiagnosticFactory.CreateParsing_MissingEndTag(
new SourceSpan(filePath: null, absoluteIndex: 3, lineIndex: 0, characterIndex: 3, length: 2), "!p"),
}