Removed LegacyResources.resx
This commit is contained in:
parent
66d244aafc
commit
439c742dec
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -1,414 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Argument_Cannot_Be_Null_Or_Empty" xml:space="preserve">
|
||||
<value>Value cannot be null or an empty string.</value>
|
||||
</data>
|
||||
<data name="Argument_Must_Be_Between" xml:space="preserve">
|
||||
<value>Value must be between {0} and {1}.</value>
|
||||
</data>
|
||||
<data name="Argument_Must_Be_Enum_Member" xml:space="preserve">
|
||||
<value>Value must be a value from the "{0}" enumeration.</value>
|
||||
</data>
|
||||
<data name="Argument_Must_Be_GreaterThan" xml:space="preserve">
|
||||
<value>Value must be greater than {0}.</value>
|
||||
</data>
|
||||
<data name="Argument_Must_Be_GreaterThanOrEqualTo" xml:space="preserve">
|
||||
<value>Value must be greater than or equal to {0}.</value>
|
||||
</data>
|
||||
<data name="Argument_Must_Be_LessThan" xml:space="preserve">
|
||||
<value>Value must be less than {0}.</value>
|
||||
</data>
|
||||
<data name="Argument_Must_Be_LessThanOrEqualTo" xml:space="preserve">
|
||||
<value>Value must be less than or equal to {0}.</value>
|
||||
</data>
|
||||
<data name="Argument_Must_Be_Null_Or_Non_Empty" xml:space="preserve">
|
||||
<value>Value cannot be an empty string. It must either be null or a non-empty string.</value>
|
||||
</data>
|
||||
<data name="BlockName_Code" xml:space="preserve">
|
||||
<value>code</value>
|
||||
<comment>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.</comment>
|
||||
</data>
|
||||
<data name="BlockName_ExplicitExpression" xml:space="preserve">
|
||||
<value>explicit expression</value>
|
||||
<comment>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.</comment>
|
||||
</data>
|
||||
<data name="Block_Type_Not_Specified" xml:space="preserve">
|
||||
<value>Block cannot be built because a Type has not been specified in the BlockBuilder</value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_CharacterLiteral" xml:space="preserve">
|
||||
<value><<character literal>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_Comment" xml:space="preserve">
|
||||
<value><<comment>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_Identifier" xml:space="preserve">
|
||||
<value><<identifier>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_IntegerLiteral" xml:space="preserve">
|
||||
<value><<integer literal>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_Keyword" xml:space="preserve">
|
||||
<value><<keyword>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_Newline" xml:space="preserve">
|
||||
<value><<newline sequence>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_RealLiteral" xml:space="preserve">
|
||||
<value><<real literal>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_StringLiteral" xml:space="preserve">
|
||||
<value><<string literal>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_Whitespace" xml:space="preserve">
|
||||
<value><<white space>></value>
|
||||
</data>
|
||||
<data name="DirectiveExpectsIdentifier" xml:space="preserve">
|
||||
<value>The '{0}' directive expects an identifier.</value>
|
||||
</data>
|
||||
<data name="DirectiveExpectsNamespace" xml:space="preserve">
|
||||
<value>The '{0}' directive expects a namespace name.</value>
|
||||
</data>
|
||||
<data name="DirectiveExpectsQuotedStringLiteral" xml:space="preserve">
|
||||
<value>The '{0}' directive expects a string surrounded by double quotes.</value>
|
||||
</data>
|
||||
<data name="DirectiveExpectsTypeName" xml:space="preserve">
|
||||
<value>The '{0}' directive expects a type name.</value>
|
||||
</data>
|
||||
<data name="EndBlock_Called_Without_Matching_StartBlock" xml:space="preserve">
|
||||
<value>"EndBlock" was called without a matching call to "StartBlock".</value>
|
||||
</data>
|
||||
<data name="ErrorComponent_Character" xml:space="preserve">
|
||||
<value>"{0}" character</value>
|
||||
</data>
|
||||
<data name="ErrorComponent_EndOfFile" xml:space="preserve">
|
||||
<value>end of file</value>
|
||||
</data>
|
||||
<data name="ErrorComponent_Newline" xml:space="preserve">
|
||||
<value>line break</value>
|
||||
</data>
|
||||
<data name="ErrorComponent_Whitespace" xml:space="preserve">
|
||||
<value>space or line break</value>
|
||||
</data>
|
||||
<data name="HtmlSymbol_NewLine" xml:space="preserve">
|
||||
<value><<newline sequence>></value>
|
||||
</data>
|
||||
<data name="HtmlSymbol_RazorComment" xml:space="preserve">
|
||||
<value><<razor comment>></value>
|
||||
</data>
|
||||
<data name="HtmlSymbol_Text" xml:space="preserve">
|
||||
<value><<text>></value>
|
||||
</data>
|
||||
<data name="HtmlSymbol_WhiteSpace" xml:space="preserve">
|
||||
<value><<white space>></value>
|
||||
</data>
|
||||
<data name="Language_Does_Not_Support_RazorComment" xml:space="preserve">
|
||||
<value>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</value>
|
||||
</data>
|
||||
<data name="ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start" xml:space="preserve">
|
||||
<value>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>
|
||||
}}</value>
|
||||
<comment>"{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"</comment>
|
||||
</data>
|
||||
<data name="ParseError_BlockComment_Not_Terminated" xml:space="preserve">
|
||||
<value>End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence.</value>
|
||||
</data>
|
||||
<data name="ParseError_DirectiveMustHaveValue" xml:space="preserve">
|
||||
<value>Directive '{0}' must have a value.</value>
|
||||
</data>
|
||||
<data name="ParseError_Expected_CloseBracket_Before_EOF" xml:space="preserve">
|
||||
<value>An opening "{0}" is missing the corresponding closing "{1}".</value>
|
||||
</data>
|
||||
<data name="ParseError_Expected_EndOfBlock_Before_EOF" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="ParseError_Expected_X" xml:space="preserve">
|
||||
<value>Expected "{0}".</value>
|
||||
</data>
|
||||
<data name="ParseError_HelperDirectiveNotAvailable" xml:space="preserve">
|
||||
<value>The {0} directive is not supported.</value>
|
||||
</data>
|
||||
<data name="ParseError_IncompleteQuotesAroundDirective" xml:space="preserve">
|
||||
<value>Optional quote around the directive '{0}' is missing the corresponding opening or closing quote.</value>
|
||||
</data>
|
||||
<data name="ParseError_InheritsKeyword_Must_Be_Followed_By_TypeName" xml:space="preserve">
|
||||
<value>The 'inherits' keyword must be followed by a type name on the same line.</value>
|
||||
</data>
|
||||
<data name="ParseError_InlineMarkup_Blocks_Cannot_Be_Nested" xml:space="preserve">
|
||||
<value>Inline markup blocks (@<p>Content</p>) cannot be nested. Only one level of inline markup is allowed.</value>
|
||||
</data>
|
||||
<data name="ParseError_MarkupBlock_Must_Start_With_Tag" xml:space="preserve">
|
||||
<value>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/>".</value>
|
||||
</data>
|
||||
<data name="ParseError_MissingEndTag" xml:space="preserve">
|
||||
<value>The "{0}" element was not closed. All elements must be either self-closing or have a matching end tag.</value>
|
||||
</data>
|
||||
<data name="ParseError_MissingOpenBraceAfterSection" xml:space="preserve">
|
||||
<value>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 -->
|
||||
}</value>
|
||||
</data>
|
||||
<data name="ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock" xml:space="preserve">
|
||||
<value>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.
|
||||
}}</value>
|
||||
<comment>"{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"</comment>
|
||||
</data>
|
||||
<data name="ParseError_OuterTagMissingName" xml:space="preserve">
|
||||
<value>Outer tag is missing a name. The first character of a markup block must be an HTML tag with a valid name.</value>
|
||||
</data>
|
||||
<data name="ParseError_RazorComment_Not_Terminated" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="ParseError_ReservedWord" xml:space="preserve">
|
||||
<value>"{0}" is a reserved word and cannot be used in implicit expressions. An explicit expression ("@()") must be used.</value>
|
||||
</data>
|
||||
<data name="ParseError_Sections_Cannot_Be_Nested" xml:space="preserve">
|
||||
<value>Section blocks ("{0}") cannot be nested. Only one level of section blocks are allowed.</value>
|
||||
</data>
|
||||
<data name="ParseError_SingleLine_ControlFlowStatements_Not_Allowed" xml:space="preserve">
|
||||
<value>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>
|
||||
}}</value>
|
||||
<comment>{0} is only ever a single character</comment>
|
||||
</data>
|
||||
<data name="ParseError_TextTagCannotContainAttributes" xml:space="preserve">
|
||||
<value>"<text>" and "</text>" tags cannot contain attributes.</value>
|
||||
</data>
|
||||
<data name="ParseError_UnexpectedEndTag" xml:space="preserve">
|
||||
<value>Encountered end tag "{0}" with no matching start tag. Are your start/end tags properly balanced?</value>
|
||||
</data>
|
||||
<data name="ParseError_Unexpected_Character_At_Section_Name_Start" xml:space="preserve">
|
||||
<value>Unexpected {0} after section keyword. Section names must start with an "_" or alphabetic character, and the remaining characters must be either "_" or alphanumeric.</value>
|
||||
</data>
|
||||
<data name="ParseError_Unexpected_Character_At_Start_Of_CodeBlock_CS" xml:space="preserve">
|
||||
<value>"{0}" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{{" are valid.</value>
|
||||
<comment>"{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"</comment>
|
||||
</data>
|
||||
<data name="ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock" xml:space="preserve">
|
||||
<value>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: "@@"</value>
|
||||
</data>
|
||||
<data name="ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock1" xml:space="preserve">
|
||||
<value>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: "@@"</value>
|
||||
</data>
|
||||
<data name="ParseError_Unexpected_Nested_CodeBlock" xml:space="preserve">
|
||||
<value>Unexpected "{{" after "@" character. Once inside the body of a code block (@if {{}}, @{{}}, etc.) you do not need to use "@{{" to switch to code.</value>
|
||||
<comment>"{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"</comment>
|
||||
</data>
|
||||
<data name="ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock_CS" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
<comment>"{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"</comment>
|
||||
</data>
|
||||
<data name="ParseError_UnfinishedTag" xml:space="preserve">
|
||||
<value>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 "&lt;" HTML entity.</value>
|
||||
</data>
|
||||
<data name="ParseError_Unterminated_String_Literal" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="ParserContext_CannotCompleteTree_NoRootBlock" xml:space="preserve">
|
||||
<value>Cannot complete the tree, StartBlock must be called at least once.</value>
|
||||
</data>
|
||||
<data name="ParserContext_CannotCompleteTree_OutstandingBlocks" xml:space="preserve">
|
||||
<value>Cannot complete the tree, there are still open blocks.</value>
|
||||
</data>
|
||||
<data name="ParserContext_NoCurrentBlock" xml:space="preserve">
|
||||
<value>Cannot finish span, there is no current block. Call StartBlock at least once before finishing a span</value>
|
||||
</data>
|
||||
<data name="ParserContext_ParseComplete" xml:space="preserve">
|
||||
<value>Cannot complete action, the parser has finished. Only CompleteParse can be called to extract the final parser results after the parser has finished</value>
|
||||
</data>
|
||||
<data name="Parser_Context_Not_Set" xml:space="preserve">
|
||||
<value>Parser was started with a null Context property. The Context property must be set BEFORE calling any methods on the parser.</value>
|
||||
</data>
|
||||
<data name="RewriterError_EmptyTagHelperBoundAttribute" xml:space="preserve">
|
||||
<value>Attribute '{0}' on tag helper element '{1}' requires a value. Tag helper bound attributes of type '{2}' cannot be empty or contain only whitespace.</value>
|
||||
</data>
|
||||
<data name="SectionExample_CS" xml:space="preserve">
|
||||
<value>@section Header { ... }</value>
|
||||
<comment>In CSHTML, the @section keyword is case-sensitive and lowercase (as with all C# keywords)</comment>
|
||||
</data>
|
||||
<data name="SourceLocationFilePathDoesNotMatch" xml:space="preserve">
|
||||
<value>Cannot perform '{1}' operations on '{0}' instances with different file paths.</value>
|
||||
</data>
|
||||
<data name="Symbol_Unknown" xml:space="preserve">
|
||||
<value><<unknown>></value>
|
||||
</data>
|
||||
<data name="TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey" xml:space="preserve">
|
||||
<value>The tag helper attribute '{0}' in element '{1}' is missing a key. The syntax is '<{1} {0}{{ key }}="value">'.</value>
|
||||
</data>
|
||||
<data name="TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed" xml:space="preserve">
|
||||
<value>TagHelper attributes must be well-formed.</value>
|
||||
</data>
|
||||
<data name="TagHelperParseTreeRewriter_CannotHaveNonTagContent" xml:space="preserve">
|
||||
<value>The parent <{0}> tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed.</value>
|
||||
</data>
|
||||
<data name="TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag" xml:space="preserve">
|
||||
<value>Found an end tag (</{0}>) for tag helper '{1}' with tag structure that disallows an end tag ('{2}').</value>
|
||||
</data>
|
||||
<data name="TagHelperParseTreeRewriter_InconsistentTagStructure" xml:space="preserve">
|
||||
<value>Tag helpers '{0}' and '{1}' targeting element '{2}' must not expect different {3} values.</value>
|
||||
</data>
|
||||
<data name="TagHelperParseTreeRewriter_InvalidNestedTag" xml:space="preserve">
|
||||
<value>The <{0}> tag is not allowed by parent <{1}> tag helper. Only child tags with name(s) '{2}' are allowed.</value>
|
||||
</data>
|
||||
<data name="TagHelpersParseTreeRewriter_FoundMalformedTagHelper" xml:space="preserve">
|
||||
<value>Found a malformed '{0}' tag helper. Tag helpers must have a start and end tag or be self closing.</value>
|
||||
</data>
|
||||
<data name="TagHelpersParseTreeRewriter_MissingCloseAngle" xml:space="preserve">
|
||||
<value>Missing close angle for tag helper '{0}'.</value>
|
||||
</data>
|
||||
<data name="TagHelpers_AttributesMustHaveAName" xml:space="preserve">
|
||||
<value>Tag Helper '{0}'s attributes must have names.</value>
|
||||
</data>
|
||||
<data name="TagHelpers_CannotHaveCSharpInTagDeclaration" xml:space="preserve">
|
||||
<value>The tag helper '{0}' must not have C# in the element's attribute declaration area.</value>
|
||||
</data>
|
||||
<data name="TagHelpers_CodeBlocks_NotSupported_InAttributes" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="TokenizerView_CannotPutBack" xml:space="preserve">
|
||||
<value>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}</value>
|
||||
</data>
|
||||
<data name="UnexpectedDirectiveLiteral" xml:space="preserve">
|
||||
<value>Unexpected literal following the '{0}' directive. Expected '{1}'.</value>
|
||||
</data>
|
||||
<data name="UnexpectedEOFAfterDirective" xml:space="preserve">
|
||||
<value>Unexpected end of file following the '{0}' directive. Expected '{1}'.</value>
|
||||
</data>
|
||||
</root>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -117,45 +117,318 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="AddTagHelperDirective_Description" xml:space="preserve">
|
||||
<value>Register Tag Helpers for use in the current document.</value>
|
||||
</data>
|
||||
<data name="AddTagHelperDirective_StringToken_Description" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="AddTagHelperDirective_StringToken_Name" xml:space="preserve">
|
||||
<value>TypeName, AssemblyName</value>
|
||||
</data>
|
||||
<data name="ArgumentCannotBeNullOrEmpty" xml:space="preserve">
|
||||
<value>Value cannot be null or an empty string.</value>
|
||||
</data>
|
||||
<data name="Block_Type_Not_Specified" xml:space="preserve">
|
||||
<value>Block cannot be built because a Type has not been specified in the BlockBuilder</value>
|
||||
</data>
|
||||
<data name="BlockDirectiveCannotBeImported" xml:space="preserve">
|
||||
<value>Block directive '{0}' cannot be imported.</value>
|
||||
</data>
|
||||
<data name="BlockName_Code" xml:space="preserve">
|
||||
<value>code</value>
|
||||
<comment>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.</comment>
|
||||
</data>
|
||||
<data name="BlockName_ExplicitExpression" xml:space="preserve">
|
||||
<value>explicit expression</value>
|
||||
<comment>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.</comment>
|
||||
</data>
|
||||
<data name="CodeWriter_InvalidNewLine" xml:space="preserve">
|
||||
<value>Invalid newline sequence '{0}'. Support newline sequences are '\r\n' and '\n'.</value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_CharacterLiteral" xml:space="preserve">
|
||||
<value><<character literal>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_Comment" xml:space="preserve">
|
||||
<value><<comment>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_Identifier" xml:space="preserve">
|
||||
<value><<identifier>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_IntegerLiteral" xml:space="preserve">
|
||||
<value><<integer literal>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_Keyword" xml:space="preserve">
|
||||
<value><<keyword>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_Newline" xml:space="preserve">
|
||||
<value><<newline sequence>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_RealLiteral" xml:space="preserve">
|
||||
<value><<real literal>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_StringLiteral" xml:space="preserve">
|
||||
<value><<string literal>></value>
|
||||
</data>
|
||||
<data name="CSharpSymbol_Whitespace" xml:space="preserve">
|
||||
<value><<white space>></value>
|
||||
</data>
|
||||
<data name="Diagnostic_CodeTarget_UnsupportedExtension" xml:space="preserve">
|
||||
<value>The document type '{0}' does not support the extension '{1}'.</value>
|
||||
</data>
|
||||
<data name="DirectiveDescriptor_InvalidDirectiveKeyword" xml:space="preserve">
|
||||
<value>Invalid directive keyword '{0}'. Directives must have a non-empty keyword that consists only of letters.</value>
|
||||
</data>
|
||||
<data name="DirectiveDescriptor_InvalidNonOptionalToken" xml:space="preserve">
|
||||
<value>A non-optional directive token cannot follow an optional directive token.</value>
|
||||
</data>
|
||||
<data name="DirectiveExpectsIdentifier" xml:space="preserve">
|
||||
<value>The '{0}' directive expects an identifier.</value>
|
||||
</data>
|
||||
<data name="DirectiveExpectsNamespace" xml:space="preserve">
|
||||
<value>The '{0}' directive expects a namespace name.</value>
|
||||
</data>
|
||||
<data name="DirectiveExpectsQuotedStringLiteral" xml:space="preserve">
|
||||
<value>The '{0}' directive expects a string surrounded by double quotes.</value>
|
||||
</data>
|
||||
<data name="DirectiveExpectsTypeName" xml:space="preserve">
|
||||
<value>The '{0}' directive expects a type name.</value>
|
||||
</data>
|
||||
<data name="DirectiveMustAppearAtStartOfLine" xml:space="preserve">
|
||||
<value>The '{0}` directive must appear at the start of the line.</value>
|
||||
</data>
|
||||
<data name="DirectiveTokensMustBeSeparatedByWhitespace" xml:space="preserve">
|
||||
<value>The '{0}' directives value(s) must be separated by whitespace.</value>
|
||||
</data>
|
||||
<data name="DocumentMissingTarget" xml:space="preserve">
|
||||
<value>The document of kind '{0}' does not have a '{1}'. The document classifier must set a value for '{2}'.</value>
|
||||
</data>
|
||||
<data name="DuplicateDirective" xml:space="preserve">
|
||||
<value>The '{0}' directive may only occur once per document.</value>
|
||||
</data>
|
||||
<data name="EndBlock_Called_Without_Matching_StartBlock" xml:space="preserve">
|
||||
<value>"EndBlock" was called without a matching call to "StartBlock".</value>
|
||||
</data>
|
||||
<data name="ErrorComponent_Newline" xml:space="preserve">
|
||||
<value>line break</value>
|
||||
</data>
|
||||
<data name="FeatureDependencyMissing" xml:space="preserve">
|
||||
<value>The '{0}' feature requires a '{1}' provided by the '{2}'.</value>
|
||||
</data>
|
||||
<data name="FeatureMustBeInitialized" xml:space="preserve">
|
||||
<value>The feature must be initialized by setting the '{0}' property.</value>
|
||||
</data>
|
||||
<data name="FunctionsDirective_Description" xml:space="preserve">
|
||||
<value>Specify a C# code block.</value>
|
||||
</data>
|
||||
<data name="HtmlSymbol_NewLine" xml:space="preserve">
|
||||
<value><<newline sequence>></value>
|
||||
</data>
|
||||
<data name="HtmlSymbol_RazorComment" xml:space="preserve">
|
||||
<value><<razor comment>></value>
|
||||
</data>
|
||||
<data name="HtmlSymbol_Text" xml:space="preserve">
|
||||
<value><<text>></value>
|
||||
</data>
|
||||
<data name="HtmlSymbol_WhiteSpace" xml:space="preserve">
|
||||
<value><<white space>></value>
|
||||
</data>
|
||||
<data name="InheritsDirective_Description" xml:space="preserve">
|
||||
<value>Specify the base class for the current document.</value>
|
||||
</data>
|
||||
<data name="InheritsDirective_TypeToken_Description" xml:space="preserve">
|
||||
<value>The base type that the current page inherits.</value>
|
||||
</data>
|
||||
<data name="InheritsDirective_TypeToken_Name" xml:space="preserve">
|
||||
<value>TypeName</value>
|
||||
</data>
|
||||
<data name="IntermediateNodeBuilder_PopInvalid" xml:space="preserve">
|
||||
<value>The '{0}' operation is not valid when the builder is empty.</value>
|
||||
</data>
|
||||
<data name="IntermediateNodeReference_CollectionIsReadOnly" xml:space="preserve">
|
||||
<value>The node '{0}' has a read-only child collection and cannot be modified.</value>
|
||||
</data>
|
||||
<data name="IntermediateNodeReference_NodeNotFound" xml:space="preserve">
|
||||
<value>The reference is invalid. The node '{0}' could not be found as a child of '{1}'.</value>
|
||||
</data>
|
||||
<data name="IntermediateNodeReference_NotInitialized" xml:space="preserve">
|
||||
<value>The reference is invalid. References initialized with the default constructor cannot modify nodes.</value>
|
||||
</data>
|
||||
<data name="IntermediateNodes_InvalidParentNode" xml:space="preserve">
|
||||
<value>The '{0}' node type can only be used as a direct child of a '{1}' node.</value>
|
||||
</data>
|
||||
<data name="InvalidOperation_SpanIsNotChangeOwner" xml:space="preserve">
|
||||
<value>The node '{0}' is not the owner of change '{1}'.</value>
|
||||
</data>
|
||||
<data name="InvalidRazorLanguageVersion" xml:space="preserve">
|
||||
<value>Provided value for razor language version is unsupported or invalid: '{0}'.</value>
|
||||
</data>
|
||||
<data name="InvalidTagHelperLookupText" xml:space="preserve">
|
||||
<value>Invalid tag helper directive look up text '{0}'. The correct look up text format is: "name, assemblyName".</value>
|
||||
</data>
|
||||
<data name="InvalidTagHelperPrefixValue" xml:space="preserve">
|
||||
<value>Invalid tag helper directive '{0}' value. '{1}' is not allowed in prefix '{2}'.</value>
|
||||
</data>
|
||||
<data name="IntermediateNodeBuilder_PopInvalid" xml:space="preserve">
|
||||
<value>The '{0}' operation is not valid when the builder is empty.</value>
|
||||
<data name="KeyMustNotBeNull" xml:space="preserve">
|
||||
<value>The key must not be null.</value>
|
||||
</data>
|
||||
<data name="Language_Does_Not_Support_RazorComment" xml:space="preserve">
|
||||
<value>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</value>
|
||||
</data>
|
||||
<data name="MismatchedContentEncoding" xml:space="preserve">
|
||||
<value>The specified encoding '{0}' does not match the content's encoding '{1}'.</value>
|
||||
</data>
|
||||
<data name="ParseError_AtInCode_Must_Be_Followed_By_Colon_Paren_Or_Identifier_Start" xml:space="preserve">
|
||||
<value>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>
|
||||
}}</value>
|
||||
<comment>"{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"</comment>
|
||||
</data>
|
||||
<data name="ParseError_BlockComment_Not_Terminated" xml:space="preserve">
|
||||
<value>End of file was reached before the end of the block comment. All comments started with "/*" sequence must be terminated with a matching "*/" sequence.</value>
|
||||
</data>
|
||||
<data name="ParseError_DirectiveMustHaveValue" xml:space="preserve">
|
||||
<value>Directive '{0}' must have a value.</value>
|
||||
</data>
|
||||
<data name="ParseError_Expected_CloseBracket_Before_EOF" xml:space="preserve">
|
||||
<value>An opening "{0}" is missing the corresponding closing "{1}".</value>
|
||||
</data>
|
||||
<data name="ParseError_Expected_EndOfBlock_Before_EOF" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="ParseError_HelperDirectiveNotAvailable" xml:space="preserve">
|
||||
<value>The {0} directive is not supported.</value>
|
||||
</data>
|
||||
<data name="ParseError_IncompleteQuotesAroundDirective" xml:space="preserve">
|
||||
<value>Optional quote around the directive '{0}' is missing the corresponding opening or closing quote.</value>
|
||||
</data>
|
||||
<data name="ParseError_InlineMarkup_Blocks_Cannot_Be_Nested" xml:space="preserve">
|
||||
<value>Inline markup blocks (@<p>Content</p>) cannot be nested. Only one level of inline markup is allowed.</value>
|
||||
</data>
|
||||
<data name="ParseError_MarkupBlock_Must_Start_With_Tag" xml:space="preserve">
|
||||
<value>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/>".</value>
|
||||
</data>
|
||||
<data name="ParseError_MissingEndTag" xml:space="preserve">
|
||||
<value>The "{0}" element was not closed. All elements must be either self-closing or have a matching end tag.</value>
|
||||
</data>
|
||||
<data name="ParseError_NamespaceImportAndTypeAlias_Cannot_Exist_Within_CodeBlock" xml:space="preserve">
|
||||
<value>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.
|
||||
}}</value>
|
||||
<comment>"{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"</comment>
|
||||
</data>
|
||||
<data name="ParseError_OuterTagMissingName" xml:space="preserve">
|
||||
<value>Outer tag is missing a name. The first character of a markup block must be an HTML tag with a valid name.</value>
|
||||
</data>
|
||||
<data name="ParseError_RazorComment_Not_Terminated" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="ParseError_ReservedWord" xml:space="preserve">
|
||||
<value>"{0}" is a reserved word and cannot be used in implicit expressions. An explicit expression ("@()") must be used.</value>
|
||||
</data>
|
||||
<data name="ParseError_Sections_Cannot_Be_Nested" xml:space="preserve">
|
||||
<value>Section blocks ("{0}") cannot be nested. Only one level of section blocks are allowed.</value>
|
||||
</data>
|
||||
<data name="ParseError_SingleLine_ControlFlowStatements_Not_Allowed" xml:space="preserve">
|
||||
<value>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>
|
||||
}}</value>
|
||||
<comment>{0} is only ever a single character</comment>
|
||||
</data>
|
||||
<data name="ParseError_TextTagCannotContainAttributes" xml:space="preserve">
|
||||
<value>"<text>" and "</text>" tags cannot contain attributes.</value>
|
||||
</data>
|
||||
<data name="ParseError_Unexpected_Character_At_Start_Of_CodeBlock" xml:space="preserve">
|
||||
<value>"{0}" is not valid at the start of a code block. Only identifiers, keywords, comments, "(" and "{{" are valid.</value>
|
||||
<comment>"{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"</comment>
|
||||
</data>
|
||||
<data name="ParseError_Unexpected_EndOfFile_At_Start_Of_CodeBlock" xml:space="preserve">
|
||||
<value>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: "@@"</value>
|
||||
</data>
|
||||
<data name="ParseError_Unexpected_Nested_CodeBlock" xml:space="preserve">
|
||||
<value>Unexpected "{{" after "@" character. Once inside the body of a code block (@if {{}}, @{{}}, etc.) you do not need to use "@{{" to switch to code.</value>
|
||||
<comment>"{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"</comment>
|
||||
</data>
|
||||
<data name="ParseError_Unexpected_WhiteSpace_At_Start_Of_CodeBlock" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
<comment>"{{" is an escape sequence for string.Format, when outputted to the user it will be displayed as "{"</comment>
|
||||
</data>
|
||||
<data name="ParseError_UnexpectedEndTag" xml:space="preserve">
|
||||
<value>Encountered end tag "{0}" with no matching start tag. Are your start/end tags properly balanced?</value>
|
||||
</data>
|
||||
<data name="ParseError_UnfinishedTag" xml:space="preserve">
|
||||
<value>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 "&lt;" HTML entity.</value>
|
||||
</data>
|
||||
<data name="ParseError_Unterminated_String_Literal" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="Parser_Context_Not_Set" xml:space="preserve">
|
||||
<value>Parser was started with a null Context property. The Context property must be set BEFORE calling any methods on the parser.</value>
|
||||
</data>
|
||||
<data name="ParserContext_CannotCompleteTree_NoRootBlock" xml:space="preserve">
|
||||
<value>Cannot complete the tree, StartBlock must be called at least once.</value>
|
||||
</data>
|
||||
<data name="ParserContext_CannotCompleteTree_OutstandingBlocks" xml:space="preserve">
|
||||
<value>Cannot complete the tree, there are still open blocks.</value>
|
||||
</data>
|
||||
<data name="ParserContext_NoCurrentBlock" xml:space="preserve">
|
||||
<value>Cannot finish span, there is no current block. Call StartBlock at least once before finishing a span</value>
|
||||
</data>
|
||||
<data name="PhaseDependencyMissing" xml:space="preserve">
|
||||
<value>The '{0}' phase requires a '{1}' provided by the '{2}'.</value>
|
||||
</data>
|
||||
<data name="PhaseMustBeInitialized" xml:space="preserve">
|
||||
<value>The phase must be initialized by setting the '{0}' property.</value>
|
||||
</data>
|
||||
<data name="TagHelperAssemblyNameCannotBeEmptyOrNull" xml:space="preserve">
|
||||
<value>Tag helper directive assembly name cannot be null or empty.</value>
|
||||
</data>
|
||||
<data name="RazorProject_PathMustStartWithForwardSlash" xml:space="preserve">
|
||||
<value>Path must begin with a forward slash '/'.</value>
|
||||
</data>
|
||||
<data name="DirectiveDescriptor_InvalidNonOptionalToken" xml:space="preserve">
|
||||
<value>A non-optional directive token cannot follow an optional directive token.</value>
|
||||
</data>
|
||||
<data name="DocumentMissingTarget" xml:space="preserve">
|
||||
<value>The document of kind '{0}' does not have a '{1}'. The document classifier must set a value for '{2}'.</value>
|
||||
</data>
|
||||
<data name="RazorTemplateEngine_ItemCouldNotBeFound" xml:space="preserve">
|
||||
<value>The item '{0}' could not be found.</value>
|
||||
</data>
|
||||
<data name="RemoveTagHelperDirective_Description" xml:space="preserve">
|
||||
<value>Remove Tag Helpers for use in the current document.</value>
|
||||
</data>
|
||||
<data name="RemoveTagHelperDirective_StringToken_Description" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="RemoveTagHelperDirective_StringToken_Name" xml:space="preserve">
|
||||
<value>TypeName, AssemblyName</value>
|
||||
</data>
|
||||
<data name="RenderingContextRequiresDelegate" xml:space="preserve">
|
||||
<value>The '{0}' requires a '{1}' delegate to be set.</value>
|
||||
</data>
|
||||
<data name="RewriterError_EmptyTagHelperBoundAttribute" xml:space="preserve">
|
||||
<value>Attribute '{0}' on tag helper element '{1}' requires a value. Tag helper bound attributes of type '{2}' cannot be empty or contain only whitespace.</value>
|
||||
</data>
|
||||
<data name="SectionDirective_Description" xml:space="preserve">
|
||||
<value>Define a section to be rendered in the configured layout page.</value>
|
||||
</data>
|
||||
<data name="SectionDirective_NameToken_Description" xml:space="preserve">
|
||||
<value>The name of the section.</value>
|
||||
</data>
|
||||
<data name="SectionDirective_NameToken_Name" xml:space="preserve">
|
||||
<value>SectionName</value>
|
||||
</data>
|
||||
<data name="SectionExample" xml:space="preserve">
|
||||
<value>@section Header { ... }</value>
|
||||
<comment>In CSHTML, the @section keyword is case-sensitive and lowercase (as with all C# keywords)</comment>
|
||||
</data>
|
||||
<data name="Symbol_Unknown" xml:space="preserve">
|
||||
<value><<unknown>></value>
|
||||
</data>
|
||||
<data name="TagHelper_InvalidBoundAttributeName" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
|
|
@ -195,103 +468,63 @@
|
|||
<data name="TagHelper_InvalidTargetedTagNameNullOrWhitespace" xml:space="preserve">
|
||||
<value>Targeted tag name cannot be null or whitespace.</value>
|
||||
</data>
|
||||
<data name="InvalidOperation_SpanIsNotChangeOwner" xml:space="preserve">
|
||||
<value>The node '{0}' is not the owner of change '{1}'.</value>
|
||||
<data name="TagHelperAssemblyNameCannotBeEmptyOrNull" xml:space="preserve">
|
||||
<value>Tag helper directive assembly name cannot be null or empty.</value>
|
||||
</data>
|
||||
<data name="DirectiveDescriptor_InvalidDirectiveKeyword" xml:space="preserve">
|
||||
<value>Invalid directive keyword '{0}'. Directives must have a non-empty keyword that consists only of letters.</value>
|
||||
<data name="TagHelperBlockRewriter_IndexerAttributeNameMustIncludeKey" xml:space="preserve">
|
||||
<value>The tag helper attribute '{0}' in element '{1}' is missing a key. The syntax is '<{1} {0}{{ key }}="value">'.</value>
|
||||
</data>
|
||||
<data name="FeatureMustBeInitialized" xml:space="preserve">
|
||||
<value>The feature must be initialized by setting the '{0}' property.</value>
|
||||
<data name="TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed" xml:space="preserve">
|
||||
<value>TagHelper attributes must be well-formed.</value>
|
||||
</data>
|
||||
<data name="Diagnostic_CodeTarget_UnsupportedExtension" xml:space="preserve">
|
||||
<value>The document type '{0}' does not support the extension '{1}'.</value>
|
||||
<data name="TagHelperParseTreeRewriter_CannotHaveNonTagContent" xml:space="preserve">
|
||||
<value>The parent <{0}> tag helper does not allow non-tag content. Only child tag helper(s) targeting tag name(s) '{1}' are allowed.</value>
|
||||
</data>
|
||||
<data name="DirectiveMustAppearAtStartOfLine" xml:space="preserve">
|
||||
<value>The '{0}` directive must appear at the start of the line.</value>
|
||||
<data name="TagHelperParseTreeRewriter_EndTagTagHelperMustNotHaveAnEndTag" xml:space="preserve">
|
||||
<value>Found an end tag (</{0}>) for tag helper '{1}' with tag structure that disallows an end tag ('{2}').</value>
|
||||
</data>
|
||||
<data name="DirectiveTokensMustBeSeparatedByWhitespace" xml:space="preserve">
|
||||
<value>The '{0}' directives value(s) must be separated by whitespace.</value>
|
||||
<data name="TagHelperParseTreeRewriter_InconsistentTagStructure" xml:space="preserve">
|
||||
<value>Tag helpers '{0}' and '{1}' targeting element '{2}' must not expect different {3} values.</value>
|
||||
</data>
|
||||
<data name="KeyMustNotBeNull" xml:space="preserve">
|
||||
<value>The key must not be null.</value>
|
||||
</data>
|
||||
<data name="IntermediateNodeReference_NodeNotFound" xml:space="preserve">
|
||||
<value>The reference is invalid. The node '{0}' could not be found as a child of '{1}'.</value>
|
||||
</data>
|
||||
<data name="IntermediateNodeReference_NotInitialized" xml:space="preserve">
|
||||
<value>The reference is invalid. References initialized with the default constructor cannot modify nodes.</value>
|
||||
</data>
|
||||
<data name="IntermediateNodeReference_CollectionIsReadOnly" xml:space="preserve">
|
||||
<value>The node '{0}' has a read-only child collection and cannot be modified.</value>
|
||||
</data>
|
||||
<data name="DuplicateDirective" xml:space="preserve">
|
||||
<value>The '{0}' directive may only occur once per document.</value>
|
||||
</data>
|
||||
<data name="BlockDirectiveCannotBeImported" xml:space="preserve">
|
||||
<value>Block directive '{0}' cannot be imported.</value>
|
||||
</data>
|
||||
<data name="UnexpectedDirectiveKind" xml:space="preserve">
|
||||
<value>Unreachable code. This can happen when a new {0} is introduced.</value>
|
||||
</data>
|
||||
<data name="RenderingContextRequiresDelegate" xml:space="preserve">
|
||||
<value>The '{0}' requires a '{1}' delegate to be set.</value>
|
||||
</data>
|
||||
<data name="IntermediateNodes_InvalidParentNode" xml:space="preserve">
|
||||
<value>The '{0}' node type can only be used as a direct child of a '{1}' node.</value>
|
||||
</data>
|
||||
<data name="CodeWriter_InvalidNewLine" xml:space="preserve">
|
||||
<value>Invalid newline sequence '{0}'. Support newline sequences are '\r\n' and '\n'.</value>
|
||||
</data>
|
||||
<data name="AddTagHelperDirective_Description" xml:space="preserve">
|
||||
<value>Register Tag Helpers for use in the current document.</value>
|
||||
</data>
|
||||
<data name="FunctionsDirective_Description" xml:space="preserve">
|
||||
<value>Specify a C# code block.</value>
|
||||
</data>
|
||||
<data name="InheritsDirective_Description" xml:space="preserve">
|
||||
<value>Specify the base class for the current document.</value>
|
||||
</data>
|
||||
<data name="RemoveTagHelperDirective_Description" xml:space="preserve">
|
||||
<value>Remove Tag Helpers for use in the current document.</value>
|
||||
</data>
|
||||
<data name="SectionDirective_Description" xml:space="preserve">
|
||||
<value>Define a section to be rendered in the configured layout page.</value>
|
||||
<data name="TagHelperParseTreeRewriter_InvalidNestedTag" xml:space="preserve">
|
||||
<value>The <{0}> tag is not allowed by parent <{1}> tag helper. Only child tags with name(s) '{2}' are allowed.</value>
|
||||
</data>
|
||||
<data name="TagHelperPrefixDirective_Description" xml:space="preserve">
|
||||
<value>Specify a prefix that is required in an element name for it to be included in Tag Helper processing.</value>
|
||||
</data>
|
||||
<data name="InvalidRazorLanguageVersion" xml:space="preserve">
|
||||
<value>Provided value for razor language version is unsupported or invalid: '{0}'.</value>
|
||||
</data>
|
||||
<data name="AddTagHelperDirective_StringToken_Description" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="AddTagHelperDirective_StringToken_Name" xml:space="preserve">
|
||||
<value>TypeName, AssemblyName</value>
|
||||
</data>
|
||||
<data name="InheritsDirective_TypeToken_Description" xml:space="preserve">
|
||||
<value>The base type that the current page inherits.</value>
|
||||
</data>
|
||||
<data name="InheritsDirective_TypeToken_Name" xml:space="preserve">
|
||||
<value>TypeName</value>
|
||||
</data>
|
||||
<data name="RemoveTagHelperDirective_StringToken_Description" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="RemoveTagHelperDirective_StringToken_Name" xml:space="preserve">
|
||||
<value>TypeName, AssemblyName</value>
|
||||
</data>
|
||||
<data name="TagHelperPrefixDirective_PrefixToken_Description" xml:space="preserve">
|
||||
<value>The tag prefix to apply to tag helpers.</value>
|
||||
</data>
|
||||
<data name="TagHelperPrefixDirective_PrefixToken_Name" xml:space="preserve">
|
||||
<value>Prefix</value>
|
||||
</data>
|
||||
<data name="SectionDirective_NameToken_Description" xml:space="preserve">
|
||||
<value>The name of the section.</value>
|
||||
<data name="TagHelpers_AttributesMustHaveAName" xml:space="preserve">
|
||||
<value>Tag Helper '{0}'s attributes must have names.</value>
|
||||
</data>
|
||||
<data name="SectionDirective_NameToken_Name" xml:space="preserve">
|
||||
<value>SectionName</value>
|
||||
<data name="TagHelpers_CannotHaveCSharpInTagDeclaration" xml:space="preserve">
|
||||
<value>The tag helper '{0}' must not have C# in the element's attribute declaration area.</value>
|
||||
</data>
|
||||
<data name="TagHelpers_CodeBlocks_NotSupported_InAttributes" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="TagHelpers_InlineMarkupBlocks_NotSupported_InAttributes" xml:space="preserve">
|
||||
<value>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.</value>
|
||||
</data>
|
||||
<data name="TagHelpersParseTreeRewriter_FoundMalformedTagHelper" xml:space="preserve">
|
||||
<value>Found a malformed '{0}' tag helper. Tag helpers must have a start and end tag or be self closing.</value>
|
||||
</data>
|
||||
<data name="TagHelpersParseTreeRewriter_MissingCloseAngle" xml:space="preserve">
|
||||
<value>Missing close angle for tag helper '{0}'.</value>
|
||||
</data>
|
||||
<data name="UnexpectedDirectiveKind" xml:space="preserve">
|
||||
<value>Unreachable code. This can happen when a new {0} is introduced.</value>
|
||||
</data>
|
||||
<data name="UnexpectedDirectiveLiteral" xml:space="preserve">
|
||||
<value>Unexpected literal following the '{0}' directive. Expected '{1}'.</value>
|
||||
</data>
|
||||
<data name="UnexpectedEOFAfterDirective" xml:space="preserve">
|
||||
<value>Unexpected end of file following the '{0}' directive. Expected '{1}'.</value>
|
||||
</data>
|
||||
</root>
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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, "}", "{"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) <p>Bar</p> else if(bar) <p>Baz</p> else <p>Boz</p>",
|
||||
new StatementBlock(
|
||||
Factory.Code("if(foo) ").AsStatement(),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
")",
|
||||
"("));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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, "}", "{"),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue