diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/HtmlMarkupParser.cs b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/HtmlMarkupParser.cs
index ed3e705216..8754420217 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/HtmlMarkupParser.cs
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/src/Legacy/HtmlMarkupParser.cs
@@ -1149,8 +1149,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
var nameContent = string.Concat(name.LiteralTokens.Nodes.Select(s => s.Content));
if (IsConditionalAttributeName(nameContent))
{
- SpanContext.ChunkGenerator = SpanChunkGenerator.Null; // The block chunk generator will render the prefix
-
// We now have the value prefix which is usually whitespace and/or a quote
valuePrefix = OutputAsMarkupLiteral();
@@ -1178,8 +1176,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
if (quote != SyntaxKind.Marker && At(quote))
{
AcceptAndMoveNext();
- // Again, block chunk generator will render the suffix
- SpanContext.ChunkGenerator = SpanChunkGenerator.Null;
valueSuffix = OutputAsMarkupLiteral();
}
}
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml
index f32934b44a..05c96f57a2 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml
@@ -2,4 +2,8 @@
}
+
+
") or have matching end tags ("
Hello
"). If you intended to display a "<" character, use the "<" HTML entity.
+TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml(9,11): Error RZ1024: End of file or an unexpected character was reached before the "script" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
") or have matching end tags ("Hello
"). If you intended to display a "<" character, use the "<" HTML entity.
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.ir.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.ir.txt
index c06477366a..b3a19f88d0 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.ir.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.ir.txt
@@ -23,8 +23,21 @@ Document -
IntermediateToken - (44:1,40 [15] Tags.cshtml) - Html -
CSharpCode - (59:1,55 [2] Tags.cshtml)
IntermediateToken - (59:1,55 [2] Tags.cshtml) - CSharp - \n
- HtmlContent - (64:3,0 [20] Tags.cshtml)
+ HtmlContent - (64:3,0 [38] Tags.cshtml)
IntermediateToken - (64:3,0 [2] Tags.cshtml) - Html - \n
IntermediateToken - (66:4,0 [7] Tags.cshtml) - Html -
+ IntermediateToken - (91:4,25 [6] Tags.cshtml) - Html - \n
+ IntermediateToken - (97:5,4 [5] Tags.cshtml) - Html - <%var
+ HtmlAttribute - (102:5,9 [4] Tags.cshtml) - x = -
+ HtmlAttribute - (106:5,13 [9] Tags.cshtml) - window = -
+ HtmlContent - (115:5,22 [41] Tags.cshtml)
+ IntermediateToken - (115:5,22 [7] Tags.cshtml) - Html - = null%
+ IntermediateToken - (122:5,29 [1] Tags.cshtml) - Html - >
+ IntermediateToken - (123:5,30 [2] Tags.cshtml) - Html - \n
+ IntermediateToken - (125:6,0 [9] Tags.cshtml) - Html -
+ IntermediateToken - (134:6,9 [4] Tags.cshtml) - Html - \n\n
+ IntermediateToken - (138:8,0 [7] Tags.cshtml) - Html -
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Tags_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml")]
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
{
#line hidden
- [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"42fb758ed87c3709cfb3f3aeff7a9cf8d242b74c", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml")]
+ [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"75edd5542ddb6f78ab6a4d309bb3525a99ecfa55", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml")]
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Tags_Runtime
{
#pragma warning disable 1998
@@ -13,7 +13,12 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
{
WriteLiteral(" \r\n");
- WriteLiteral("\r\n\r\n <%var");
+ BeginWriteAttribute("x", " x =", 102, "", 106, 0);
+ EndWriteAttribute();
+ BeginWriteAttribute("window", " window =", 106, "", 115, 0);
+ EndWriteAttribute();
+ WriteLiteral("= null%>\r\n\r\n\r\n") or have matching end tags ("Hello
"). If you intended to display a "<" character, use the "<" HTML entity.
+TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml(9,11): Error RZ1024: End of file or an unexpected character was reached before the "script" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("
") or have matching end tags ("Hello
"). If you intended to display a "<" character, use the "<" HTML entity.
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.ir.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.ir.txt
index 38757651f0..f50d573ada 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.ir.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_Runtime.ir.txt
@@ -20,8 +20,21 @@ Document -
IntermediateToken - (59:1,55 [2] Tags.cshtml) - Html - \n
CSharpCode - (61:2,0 [0] Tags.cshtml)
IntermediateToken - (61:2,0 [0] Tags.cshtml) - CSharp -
- HtmlContent - (64:3,0 [20] Tags.cshtml)
+ HtmlContent - (64:3,0 [38] Tags.cshtml)
IntermediateToken - (64:3,0 [2] Tags.cshtml) - Html - \n
IntermediateToken - (66:4,0 [7] Tags.cshtml) - Html -
+ IntermediateToken - (91:4,25 [6] Tags.cshtml) - Html - \n
+ IntermediateToken - (97:5,4 [5] Tags.cshtml) - Html - <%var
+ HtmlAttribute - (102:5,9 [4] Tags.cshtml) - x = -
+ HtmlAttribute - (106:5,13 [9] Tags.cshtml) - window = -
+ HtmlContent - (115:5,22 [41] Tags.cshtml)
+ IntermediateToken - (115:5,22 [7] Tags.cshtml) - Html - = null%
+ IntermediateToken - (122:5,29 [1] Tags.cshtml) - Html - >
+ IntermediateToken - (123:5,30 [2] Tags.cshtml) - Html - \n
+ IntermediateToken - (125:6,0 [9] Tags.cshtml) - Html -
+ IntermediateToken - (134:6,9 [4] Tags.cshtml) - Html - \n\n
+ IntermediateToken - (138:8,0 [7] Tags.cshtml) - Html - - SpanEditHandler;Accepts:Any
Text;[href];
Equals;[=];
- MarkupTextLiteral - [200..201)::1 - ["] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [200..201)::1 - ["] - Gen - SpanEditHandler;Accepts:Any
DoubleQuote;["];
GenericBlock - [201..257)::56
MarkupDynamicAttributeValue - [201..257)::56 - [@Html.ActionUrl("Products", "Detail", new { id = p.Id })]
@@ -139,7 +139,7 @@ RazorDocument - [0..352)::352 - [@foreach(var c in db.Categories) {LF
Whitespace;[ ];
RightBrace;[}];
RightParenthesis;[)];
- MarkupTextLiteral - [257..258)::1 - ["] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [257..258)::1 - ["] - Gen - SpanEditHandler;Accepts:Any
DoubleQuote;["];
CloseAngle;[>];
MarkupTextLiteral - [259..259)::0 - [] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.stree.txt
index 6ea3f05e53..f4dfa89174 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/StopsParsingCodeAfterElseBranch.stree.txt
@@ -159,14 +159,14 @@ RazorDocument - [0..314)::314 - [@if(int i = 0; i < 10; new Foo { Bar = "baz" })
MarkupTextLiteral - [262..263)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
Whitespace;[ ];
Equals;[=];
- MarkupTextLiteral - [264..266)::2 - [ "] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [264..266)::2 - [ "] - Gen - SpanEditHandler;Accepts:Any
Whitespace;[ ];
DoubleQuote;["];
GenericBlock - [266..269)::3
MarkupLiteralAttributeValue - [266..269)::3 - [baz]
MarkupTextLiteral - [266..269)::3 - [baz] - Gen - SpanEditHandler;Accepts:Any
Text;[baz];
- MarkupTextLiteral - [269..270)::1 - ["] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [269..270)::1 - ["] - Gen - SpanEditHandler;Accepts:Any
DoubleQuote;["];
MarkupMinimizedAttributeBlock - [270..273)::3 - [ })]
MarkupTextLiteral - [270..271)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt
index 7f968fcc3f..b08e365411 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtBeginningOfAttributeValue_DoesNotThrow.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..23)::23 - [@{}]
MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any
Text;[foo];
Equals;[=];
- MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [13..18)::5
MarkupBlock - [13..15)::2
@@ -32,7 +32,7 @@ RazorDocument - [0..23)::23 - [@{}]
MarkupLiteralAttributeValue - [15..18)::3 - [def]
MarkupTextLiteral - [15..18)::3 - [def] - Gen - SpanEditHandler;Accepts:Any
Text;[def];
- MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [19..20)::1
MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt
index 931cd0b1e2..439763c3fb 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionAtEndOfAttributeValue_DoesNotThrow.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..23)::23 - [@{}]
MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any
Text;[foo];
Equals;[=];
- MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [13..18)::5
MarkupLiteralAttributeValue - [13..16)::3 - [abc]
@@ -32,7 +32,7 @@ RazorDocument - [0..23)::23 - [@{}]
Transition;[@];
MarkupEphemeralTextLiteral - [17..18)::1 - [@] - Gen - SpanEditHandler;Accepts:None
Transition;[@];
- MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [19..20)::1
MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt
index 0e56c91bea..b32d5a6822 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionBetweenAttributeValue_DoesNotThrow.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..28)::28 - [@{}]
MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any
Text;[foo];
Equals;[=];
- MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [13..23)::10
MarkupLiteralAttributeValue - [13..16)::3 - [abc]
@@ -38,7 +38,7 @@ RazorDocument - [0..28)::28 - [@{}]
Whitespace;[ ];
MarkupTextLiteral - [20..23)::3 - [def] - Gen - SpanEditHandler;Accepts:Any
Text;[def];
- MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [24..25)::1
MarkupTextLiteral - [24..25)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt
index aea355dd25..9a403936c1 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInAttributeValue_DoesNotThrow.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..20)::20 - [@{}]
MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any
Text;[foo];
Equals;[=];
- MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [13..15)::2
MarkupBlock - [13..15)::2
@@ -29,7 +29,7 @@ RazorDocument - [0..20)::20 - [@{}]
Transition;[@];
MarkupEphemeralTextLiteral - [14..15)::1 - [@] - Gen - SpanEditHandler;Accepts:None
Transition;[@];
- MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [16..17)::1
MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt
index 440b6e0f7b..480eaf7a51 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInEmail_DoesNotThrow.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..45)::45 - [@{}]
MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any
Text;[foo];
Equals;[=];
- MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [13..40)::27
MarkupLiteralAttributeValue - [13..24)::11 - [abc@def.com]
@@ -46,7 +46,7 @@ RazorDocument - [0..45)::45 - [@{}]
Transition;[@];
MarkupEphemeralTextLiteral - [39..40)::1 - [@] - Gen - SpanEditHandler;Accepts:None
Transition;[@];
- MarkupTextLiteral - [40..41)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [40..41)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [41..42)::1
MarkupTextLiteral - [41..42)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt
index 071e88d493..3f25fa1782 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionInRegex_DoesNotThrow.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..118)::118 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [12..13)::1 - ["] - Gen - SpanEditHandler;Accepts:Any
DoubleQuote;["];
GenericBlock - [13..113)::100
MarkupLiteralAttributeValue - [13..45)::32 - [/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+]
@@ -77,7 +77,7 @@ RazorDocument - [0..118)::118 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [113..114)::1 - ["] - Gen - SpanEditHandler;Accepts:Any
DoubleQuote;["];
MarkupMiscAttributeContent - [114..115)::1
MarkupTextLiteral - [114..115)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt
index 06b8e19b9b..9b4efd9401 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransitionWithExpressionBlock_DoesNotThrow.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [13..21)::8
MarkupBlock - [13..15)::2
@@ -47,7 +47,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupAttributeBlock - [22..50)::28 - [ bar='@(2+3)@@@DateTime.Now']
MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
@@ -55,7 +55,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [28..49)::21
MarkupDynamicAttributeValue - [28..34)::6 - [@(2+3)]
@@ -93,7 +93,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [49..50)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupAttributeBlock - [50..72)::22 - [ baz='@DateTime.Now@@']
MarkupTextLiteral - [50..51)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
@@ -101,7 +101,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [55..56)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [56..71)::15
MarkupDynamicAttributeValue - [56..69)::13 - [@DateTime.Now]
@@ -121,7 +121,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [71..72)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupAttributeBlock - [72..95)::23 - [ bat='@DateTime.Now @@']
MarkupTextLiteral - [72..73)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
@@ -129,7 +129,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [77..78)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [78..94)::16
MarkupDynamicAttributeValue - [78..91)::13 - [@DateTime.Now]
@@ -150,7 +150,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [94..95)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupAttributeBlock - [95..117)::22 - [ zoo='@@@DateTime.Now']
MarkupTextLiteral - [95..96)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
@@ -158,7 +158,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [100..101)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [101..116)::15
MarkupBlock - [101..103)::2
@@ -180,7 +180,7 @@ RazorDocument - [0..121)::121 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [116..117)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [117..118)::1
MarkupTextLiteral - [117..118)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.stree.txt
index 56adc1414b..da26fe2d8f 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithDoubleTransition_EndOfFile_Throws.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..15)::15 - [@{ - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [13..15)::2
MarkupBlock - [13..15)::2
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt
index c724b78d64..b869f26632 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpBlockTest/WithUnexpectedTransitionsInAttributeValue_Throws.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..21)::21 - [@{}]
MarkupTextLiteral - [8..11)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any
Text;[foo];
Equals;[=];
- MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [13..16)::3
MarkupDynamicAttributeValue - [13..14)::1 - [@]
@@ -46,7 +46,7 @@ RazorDocument - [0..21)::21 - [@{}]
CSharpCodeBlock - [16..16)::0
CSharpExpressionLiteral - [16..16)::0 - [] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14
Marker;[];
- MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [17..18)::1
MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.stree.txt
index 48df1c0bfc..bd38826bb7 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition1.stree.txt
@@ -29,7 +29,7 @@ RazorDocument - [0..30)::30 - [@section s {}]
MarkupTextLiteral - [18..21)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any
Text;[foo];
Equals;[=];
- MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [23..25)::2
MarkupBlock - [23..25)::2
@@ -37,7 +37,7 @@ RazorDocument - [0..30)::30 - [@section s {}]
Transition;[@];
MarkupEphemeralTextLiteral - [24..25)::1 - [@] - Gen - SpanEditHandler;Accepts:None
Transition;[@];
- MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [25..26)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [26..27)::1
MarkupTextLiteral - [26..27)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.stree.txt
index 2659456d6f..2bbe5cc9d9 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpSectionTest/_WithDoubleTransition2.stree.txt
@@ -29,7 +29,7 @@ RazorDocument - [0..44)::44 - [@section s {}]
MarkupTextLiteral - [18..21)::3 - [foo] - Gen - SpanEditHandler;Accepts:Any
Text;[foo];
Equals;[=];
- MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [23..39)::16
MarkupDynamicAttributeValue - [23..36)::13 - [@DateTime.Now]
@@ -50,7 +50,7 @@ RazorDocument - [0..44)::44 - [@section s {}]
Transition;[@];
MarkupEphemeralTextLiteral - [38..39)::1 - [@] - Gen - SpanEditHandler;Accepts:None
Transition;[@];
- MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [39..40)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [40..41)::1
MarkupTextLiteral - [40..41)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.stree.txt
index 63dbd49360..bbd0281f2f 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/CSharpTemplateTest/_WithDoubleTransition_DoesNotThrow.stree.txt
@@ -42,7 +42,7 @@ RazorDocument - [0..75)::75 - [@{ var foo = bar; Html.ExecuteTemplate(foo, @ - SpanEditHandler;Accepts:Any
Text;[foo];
Equals;[=];
- MarkupTextLiteral - [52..53)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [52..53)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [53..55)::2
MarkupBlock - [53..55)::2
@@ -50,7 +50,7 @@ RazorDocument - [0..75)::75 - [@{ var foo = bar; Html.ExecuteTemplate(foo, @ - SpanEditHandler;Accepts:None
Transition;[@];
- MarkupTextLiteral - [55..56)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [55..56)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
CloseAngle;[>];
MarkupTextLiteral - [57..62)::5 - [Foo #] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.stree.txt
index 4cbebe5321..e8c4ec1095 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesAsMarkup.stree.txt
@@ -11,7 +11,7 @@ RazorDocument - [0..27)::27 - []
Transition;[@];
Text;[class];
Equals;[=];
- MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [14..18)::4
MarkupDynamicAttributeValue - [14..18)::4 - [@foo]
@@ -24,7 +24,7 @@ RazorDocument - [0..27)::27 - []
CSharpCodeBlock - [15..18)::3
CSharpExpressionLiteral - [15..18)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14
Identifier;[foo];
- MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
CloseAngle;[>];
MarkupEndTag - [20..27)::7 - [
] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.stree.txt
index cc833ddb21..4742d0f6c3 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ComponentFileKind_ParsesDirectiveAttributesWithParameterAsMarkup.stree.txt
@@ -11,7 +11,7 @@ RazorDocument - [0..33)::33 - []
Transition;[@];
Text;[class:param];
Equals;[=];
- MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [20..24)::4
MarkupDynamicAttributeValue - [20..24)::4 - [@foo]
@@ -24,7 +24,7 @@ RazorDocument - [0..33)::33 - []
CSharpCodeBlock - [21..24)::3
CSharpExpressionLiteral - [21..24)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14
Identifier;[foo];
- MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
CloseAngle;[>];
MarkupEndTag - [26..33)::7 - [] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.stree.txt
index 91ef6c8bd3..dcab17b569 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/ConditionalAttributesAreEnabledForDataAttributesWithExperimentalFlag.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..32)::32 - [@{}]
MarkupTextLiteral - [8..16)::8 - [data-foo] - Gen - SpanEditHandler;Accepts:Any
Text;[data-foo];
Equals;[=];
- MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [18..22)::4
MarkupDynamicAttributeValue - [18..22)::4 - [@foo]
@@ -34,7 +34,7 @@ RazorDocument - [0..32)::32 - [@{}]
CSharpCodeBlock - [19..22)::3
CSharpExpressionLiteral - [19..22)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14
Identifier;[foo];
- MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
CloseAngle;[>];
MarkupEndTag - [24..31)::7 - [] - Gen - SpanEditHandler;Accepts:None
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.stree.txt
index eaab6eb162..522918f3b3 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DoubleQuotedLiteralAttribute.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..27)::27 - [@{}]
MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any
Text;[href];
Equals;[=];
- MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [10..11)::1 - ["] - Gen - SpanEditHandler;Accepts:Any
DoubleQuote;["];
GenericBlock - [11..22)::11
MarkupLiteralAttributeValue - [11..14)::3 - [Foo]
@@ -37,7 +37,7 @@ RazorDocument - [0..27)::27 - [@{}]
Whitespace;[ ];
MarkupTextLiteral - [19..22)::3 - [Baz] - Gen - SpanEditHandler;Accepts:Any
Text;[Baz];
- MarkupTextLiteral - [22..23)::1 - ["] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [22..23)::1 - ["] - Gen - SpanEditHandler;Accepts:Any
DoubleQuote;["];
MarkupMiscAttributeContent - [23..24)::1
MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.stree.txt
index da6e6fd85b..59949b3f82 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/DynamicAttributeWithWhitespaceSurroundingEquals.stree.txt
@@ -24,7 +24,7 @@ RazorDocument - [0..26)::26 - [@{}]
Whitespace;[ ];
NewLine;[LF];
Equals;[=];
- MarkupTextLiteral - [13..17)::4 - [ LF'] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [13..17)::4 - [ LF'] - Gen - SpanEditHandler;Accepts:Any
Whitespace;[ ];
NewLine;[LF];
SingleQuote;['];
@@ -39,7 +39,7 @@ RazorDocument - [0..26)::26 - [@{}]
CSharpCodeBlock - [18..21)::3
CSharpExpressionLiteral - [18..21)::3 - [Foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14
Identifier;[Foo];
- MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [21..22)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [22..23)::1
MarkupTextLiteral - [22..23)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.stree.txt
index 32849f4eed..449c6e679d 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiPartLiteralAttribute.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..27)::27 - [@{}]
MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any
Text;[href];
Equals;[=];
- MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [11..22)::11
MarkupLiteralAttributeValue - [11..14)::3 - [Foo]
@@ -37,7 +37,7 @@ RazorDocument - [0..27)::27 - [@{}]
Whitespace;[ ];
MarkupTextLiteral - [19..22)::3 - [Baz] - Gen - SpanEditHandler;Accepts:Any
Text;[Baz];
- MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [23..24)::1
MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.stree.txt
index 810f3a08c7..9a528190d3 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/MultiValueExpressionAttribute.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..29)::29 - [@{}]
MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any
Text;[href];
Equals;[=];
- MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [11..24)::13
MarkupDynamicAttributeValue - [11..15)::4 - [@foo]
@@ -51,7 +51,7 @@ RazorDocument - [0..29)::29 - [@{}]
CSharpCodeBlock - [21..24)::3
CSharpExpressionLiteral - [21..24)::3 - [baz] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14
Identifier;[baz];
- MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [24..25)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [25..26)::1
MarkupTextLiteral - [25..26)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.stree.txt
index 91de5c77b1..9284b6d6e4 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLineBetweenAttributes.stree.txt
@@ -21,13 +21,13 @@ RazorDocument - [0..32)::32 - [@{}]
MarkupTextLiteral - [6..10)::4 - [href] - Gen - SpanEditHandler;Accepts:Any
Text;[href];
Equals;[=];
- MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [12..15)::3
MarkupLiteralAttributeValue - [12..15)::3 - [Foo]
MarkupTextLiteral - [12..15)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupAttributeBlock - [16..28)::12 - [LFabcd='Bar']
MarkupTextLiteral - [16..18)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any
@@ -35,13 +35,13 @@ RazorDocument - [0..32)::32 - [@{}]
MarkupTextLiteral - [18..22)::4 - [abcd] - Gen - SpanEditHandler;Accepts:Any
Text;[abcd];
Equals;[=];
- MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [23..24)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [24..27)::3
MarkupLiteralAttributeValue - [24..27)::3 - [Bar]
MarkupTextLiteral - [24..27)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any
Text;[Bar];
- MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [27..28)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [28..29)::1
MarkupTextLiteral - [28..29)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.stree.txt
index 219a8eaa05..c50f1edec6 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/NewLinePrecedingAttribute.stree.txt
@@ -21,13 +21,13 @@ RazorDocument - [0..20)::20 - [@{}]
MarkupTextLiteral - [6..10)::4 - [href] - Gen - SpanEditHandler;Accepts:Any
Text;[href];
Equals;[=];
- MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [11..12)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [12..15)::3
MarkupLiteralAttributeValue - [12..15)::3 - [Foo]
MarkupTextLiteral - [12..15)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [16..17)::1
MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.stree.txt
index 87ce1cb744..f62fcea9b0 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleExpressionAttribute.stree.txt
@@ -21,7 +21,7 @@ RazorDocument - [0..20)::20 - [@{}]
MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any
Text;[href];
Equals;[=];
- MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [11..15)::4
MarkupDynamicAttributeValue - [11..15)::4 - [@foo]
@@ -34,7 +34,7 @@ RazorDocument - [0..20)::20 - [@{}]
CSharpCodeBlock - [12..15)::3
CSharpExpressionLiteral - [12..15)::3 - [foo] - Gen - ImplicitExpressionEditHandler;Accepts:NonWhitespace;ImplicitExpression[RTD];K14
Identifier;[foo];
- MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [16..17)::1
MarkupTextLiteral - [16..17)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.stree.txt
index 243a97aba5..71e57bd7e4 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttribute.stree.txt
@@ -21,13 +21,13 @@ RazorDocument - [0..19)::19 - [@{}]
MarkupTextLiteral - [5..9)::4 - [href] - Gen - SpanEditHandler;Accepts:Any
Text;[href];
Equals;[=];
- MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [10..11)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [11..14)::3
MarkupLiteralAttributeValue - [11..14)::3 - [Foo]
MarkupTextLiteral - [11..14)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [15..16)::1
MarkupTextLiteral - [15..16)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.stree.txt
index 4633a61d10..3363750b09 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SimpleLiteralAttributeWithWhitespaceSurroundingEquals.stree.txt
@@ -24,7 +24,7 @@ RazorDocument - [0..27)::27 - [@{}]
Whitespace;[ ];
NewLine;[LF];
Equals;[=];
- MarkupTextLiteral - [14..19)::5 - [ LF'] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [14..19)::5 - [ LF'] - Gen - SpanEditHandler;Accepts:Any
Whitespace;[ ];
NewLine;[LF];
SingleQuote;['];
@@ -32,7 +32,7 @@ RazorDocument - [0..27)::27 - [@{}]
MarkupLiteralAttributeValue - [19..22)::3 - [Foo]
MarkupTextLiteral - [19..22)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [23..24)::1
MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.stree.txt
index 6a0b8855a0..dc163ac41b 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes1.stree.txt
@@ -23,13 +23,13 @@ RazorDocument - [0..21)::21 - [@{}]
Text;[item];
RightBracket;[]];
Equals;[=];
- MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [13..16)::3
MarkupLiteralAttributeValue - [13..16)::3 - [Foo]
MarkupTextLiteral - [13..16)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [17..18)::1
MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.stree.txt
index 55515d7460..b35f003282 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes2.stree.txt
@@ -22,13 +22,13 @@ RazorDocument - [0..22)::22 - [@{}]
LeftBracket;[[];
Text;[(item,];
Equals;[=];
- MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [14..17)::3
MarkupLiteralAttributeValue - [14..17)::3 - [Foo]
MarkupTextLiteral - [14..17)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [18..19)::1
MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.stree.txt
index 7e9f79e40f..14dbd17409 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes3.stree.txt
@@ -21,13 +21,13 @@ RazorDocument - [0..22)::22 - [@{}]
MarkupTextLiteral - [5..12)::7 - [(click)] - Gen - SpanEditHandler;Accepts:Any
Text;[(click)];
Equals;[=];
- MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [13..14)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [14..17)::3
MarkupLiteralAttributeValue - [14..17)::3 - [Foo]
MarkupTextLiteral - [14..17)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [17..18)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [18..19)::1
MarkupTextLiteral - [18..19)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.stree.txt
index cc0ee42338..b7b93fab26 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes4.stree.txt
@@ -21,13 +21,13 @@ RazorDocument - [0..23)::23 - [@{}]
MarkupTextLiteral - [5..13)::8 - [(^click)] - Gen - SpanEditHandler;Accepts:Any
Text;[(^click)];
Equals;[=];
- MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [15..18)::3
MarkupLiteralAttributeValue - [15..18)::3 - [Foo]
MarkupTextLiteral - [15..18)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [19..20)::1
MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.stree.txt
index 2bceb1e701..51a3ab853e 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes5.stree.txt
@@ -21,13 +21,13 @@ RazorDocument - [0..25)::25 - [@{}]
MarkupTextLiteral - [5..15)::10 - [*something] - Gen - SpanEditHandler;Accepts:Any
Text;[*something];
Equals;[=];
- MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [17..20)::3
MarkupLiteralAttributeValue - [17..20)::3 - [Foo]
MarkupTextLiteral - [17..20)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [21..22)::1
MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.stree.txt
index 42409d68bb..c257aeddef 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes6.stree.txt
@@ -21,13 +21,13 @@ RazorDocument - [0..21)::21 - [@{}]
MarkupTextLiteral - [5..11)::6 - [#local] - Gen - SpanEditHandler;Accepts:Any
Text;[#local];
Equals;[=];
- MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [12..13)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [13..16)::3
MarkupLiteralAttributeValue - [13..16)::3 - [Foo]
MarkupTextLiteral - [13..16)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [17..18)::1
MarkupTextLiteral - [17..18)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.stree.txt
index 948765f401..2dd3fffe2c 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace1.stree.txt
@@ -25,13 +25,13 @@ RazorDocument - [0..38)::38 - [@{}]
MarkupTextLiteral - [11..13)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any
NewLine;[LF];
Equals;[=];
- MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [15..18)::3
MarkupLiteralAttributeValue - [15..18)::3 - [Foo]
MarkupTextLiteral - [15..18)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupAttributeBlock - [19..34)::15 - [ [item]=LF'Bar']
MarkupTextLiteral - [19..20)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
@@ -41,14 +41,14 @@ RazorDocument - [0..38)::38 - [@{}]
Text;[item];
RightBracket;[]];
Equals;[=];
- MarkupTextLiteral - [27..30)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [27..30)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any
NewLine;[LF];
SingleQuote;['];
GenericBlock - [30..33)::3
MarkupLiteralAttributeValue - [30..33)::3 - [Bar]
MarkupTextLiteral - [30..33)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any
Text;[Bar];
- MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [33..34)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [34..35)::1
MarkupTextLiteral - [34..35)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.stree.txt
index f4752e38b0..c020e7c836 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace2.stree.txt
@@ -24,13 +24,13 @@ RazorDocument - [0..40)::40 - [@{}]
MarkupTextLiteral - [12..14)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any
NewLine;[LF];
Equals;[=];
- MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [16..19)::3
MarkupLiteralAttributeValue - [16..19)::3 - [Foo]
MarkupTextLiteral - [16..19)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupAttributeBlock - [20..36)::16 - [ [(item,=LF'Bar']
MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
@@ -39,14 +39,14 @@ RazorDocument - [0..40)::40 - [@{}]
LeftBracket;[[];
Text;[(item,];
Equals;[=];
- MarkupTextLiteral - [29..32)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [29..32)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any
NewLine;[LF];
SingleQuote;['];
GenericBlock - [32..35)::3
MarkupLiteralAttributeValue - [32..35)::3 - [Bar]
MarkupTextLiteral - [32..35)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any
Text;[Bar];
- MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [36..37)::1
MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.stree.txt
index adfbf037c6..403687e9a1 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace3.stree.txt
@@ -23,13 +23,13 @@ RazorDocument - [0..40)::40 - [@{}]
MarkupTextLiteral - [12..14)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any
NewLine;[LF];
Equals;[=];
- MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [15..16)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [16..19)::3
MarkupLiteralAttributeValue - [16..19)::3 - [Foo]
MarkupTextLiteral - [16..19)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [19..20)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupAttributeBlock - [20..36)::16 - [ (click)=LF'Bar']
MarkupTextLiteral - [20..21)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
@@ -37,14 +37,14 @@ RazorDocument - [0..40)::40 - [@{}]
MarkupTextLiteral - [21..28)::7 - [(click)] - Gen - SpanEditHandler;Accepts:Any
Text;[(click)];
Equals;[=];
- MarkupTextLiteral - [29..32)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [29..32)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any
NewLine;[LF];
SingleQuote;['];
GenericBlock - [32..35)::3
MarkupLiteralAttributeValue - [32..35)::3 - [Bar]
MarkupTextLiteral - [32..35)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any
Text;[Bar];
- MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [35..36)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [36..37)::1
MarkupTextLiteral - [36..37)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.stree.txt
index 14b11adff4..3a677aa3db 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace4.stree.txt
@@ -23,13 +23,13 @@ RazorDocument - [0..42)::42 - [@{}]
MarkupTextLiteral - [13..15)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any
NewLine;[LF];
Equals;[=];
- MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [16..17)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [17..20)::3
MarkupLiteralAttributeValue - [17..20)::3 - [Foo]
MarkupTextLiteral - [17..20)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [20..21)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupAttributeBlock - [21..38)::17 - [ (^click)=LF'Bar']
MarkupTextLiteral - [21..22)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
@@ -37,14 +37,14 @@ RazorDocument - [0..42)::42 - [@{}]
MarkupTextLiteral - [22..30)::8 - [(^click)] - Gen - SpanEditHandler;Accepts:Any
Text;[(^click)];
Equals;[=];
- MarkupTextLiteral - [31..34)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [31..34)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any
NewLine;[LF];
SingleQuote;['];
GenericBlock - [34..37)::3
MarkupLiteralAttributeValue - [34..37)::3 - [Bar]
MarkupTextLiteral - [34..37)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any
Text;[Bar];
- MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [37..38)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [38..39)::1
MarkupTextLiteral - [38..39)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.stree.txt
index 400be0767b..4b9f7e3f7b 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace5.stree.txt
@@ -23,13 +23,13 @@ RazorDocument - [0..46)::46 - [@{}]
MarkupTextLiteral - [15..17)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any
NewLine;[LF];
Equals;[=];
- MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [18..19)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [19..22)::3
MarkupLiteralAttributeValue - [19..22)::3 - [Foo]
MarkupTextLiteral - [19..22)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [22..23)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupAttributeBlock - [23..42)::19 - [ *something=LF'Bar']
MarkupTextLiteral - [23..24)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
@@ -37,14 +37,14 @@ RazorDocument - [0..46)::46 - [@{}]
MarkupTextLiteral - [24..34)::10 - [*something] - Gen - SpanEditHandler;Accepts:Any
Text;[*something];
Equals;[=];
- MarkupTextLiteral - [35..38)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [35..38)::3 - [LF'] - Gen - SpanEditHandler;Accepts:Any
NewLine;[LF];
SingleQuote;['];
GenericBlock - [38..41)::3
MarkupLiteralAttributeValue - [38..41)::3 - [Bar]
MarkupTextLiteral - [38..41)::3 - [Bar] - Gen - SpanEditHandler;Accepts:Any
Text;[Bar];
- MarkupTextLiteral - [41..42)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [41..42)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
MarkupMiscAttributeContent - [42..43)::1
MarkupTextLiteral - [42..43)::1 - [ ] - Gen - SpanEditHandler;Accepts:Any
diff --git a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.stree.txt b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.stree.txt
index 789dfc7621..bf93ad7e28 100644
--- a/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.stree.txt
+++ b/src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/ParserTests/HtmlAttributeTest/SymbolBoundAttributes_BeforeEqualWhitespace6.stree.txt
@@ -23,13 +23,13 @@ RazorDocument - [0..38)::38 - [@{}]
MarkupTextLiteral - [11..13)::2 - [LF] - Gen - SpanEditHandler;Accepts:Any
NewLine;[LF];
Equals;[=];
- MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
+ MarkupTextLiteral - [14..15)::1 - ['] - Gen - SpanEditHandler;Accepts:Any
SingleQuote;['];
GenericBlock - [15..18)::3
MarkupLiteralAttributeValue - [15..18)::3 - [Foo]
MarkupTextLiteral - [15..18)::3 - [Foo] - Gen - SpanEditHandler;Accepts:Any
Text;[Foo];
- MarkupTextLiteral - [18..19)::1 - ['] - Gen