-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix VS crash with malformed tag helpers (#26779)
- Loading branch information
1 parent
ab973d2
commit b866b76
Showing
6 changed files
with
68 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...iterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly11.cspans.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Markup span at (10:0,10 [3] ) (Accepts:Any) - Parent: Tag block at (0:0,0 [34] ) | ||
Transition span at (15:0,15 [1] ) (Accepts:None) - Parent: Statement block at (15:0,15 [15] ) | ||
Code span at (16:0,16 [9] ) (Accepts:Any) - Parent: Statement block at (15:0,15 [15] ) | ||
Markup span at (25:0,25 [4] ) (Accepts:None) - Parent: Tag block at (25:0,25 [4] ) | ||
Code span at (29:0,29 [1] ) (Accepts:Any) - Parent: Statement block at (15:0,15 [15] ) |
1 change: 1 addition & 0 deletions
1
...writerTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly11.diag.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(1,28): Error RZ1026: Encountered end tag "p" with no matching start tag. Are your start/end tags properly balanced? |
44 changes: 44 additions & 0 deletions
44
...riterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly11.stree.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
RazorDocument - [0..34)::34 - [<p class='foo'>@if(true){</p>}</p>] | ||
MarkupBlock - [0..34)::34 | ||
MarkupTagHelperElement - [0..34)::34 - p[StartTagAndEndTag] - pTagHelper | ||
MarkupTagHelperStartTag - [0..15)::15 - [<p class='foo'>] - Gen<Markup> - SpanEditHandler;Accepts:Any | ||
OpenAngle;[<]; | ||
Text;[p]; | ||
MarkupTagHelperAttribute - [2..14)::12 - class - SingleQuotes - Unbound - [ class='foo'] | ||
MarkupTextLiteral - [2..3)::1 - [ ] - Gen<Markup> - SpanEditHandler;Accepts:Any | ||
Whitespace;[ ]; | ||
MarkupTextLiteral - [3..8)::5 - [class] - Gen<Markup> - SpanEditHandler;Accepts:Any | ||
Text;[class]; | ||
Equals;[=]; | ||
MarkupTextLiteral - [9..10)::1 - ['] - Gen<Markup> - SpanEditHandler;Accepts:Any | ||
SingleQuote;[']; | ||
MarkupTagHelperAttributeValue - [10..13)::3 | ||
MarkupLiteralAttributeValue - [10..13)::3 - [foo] | ||
MarkupTextLiteral - [10..13)::3 - [foo] - Gen<Markup> - SpanEditHandler;Accepts:Any | ||
Text;[foo]; | ||
MarkupTextLiteral - [13..14)::1 - ['] - Gen<Markup> - SpanEditHandler;Accepts:Any | ||
SingleQuote;[']; | ||
CloseAngle;[>]; | ||
CSharpCodeBlock - [15..30)::15 | ||
CSharpTransition - [15..16)::1 - Gen<None> - SpanEditHandler;Accepts:None | ||
Transition;[@]; | ||
CSharpStatementLiteral - [16..25)::9 - [if(true){] - Gen<Stmt> - SpanEditHandler;Accepts:Any | ||
Keyword;[if]; | ||
LeftParenthesis;[(]; | ||
Keyword;[true]; | ||
RightParenthesis;[)]; | ||
LeftBrace;[{]; | ||
MarkupBlock - [25..29)::4 | ||
MarkupElement - [25..29)::4 | ||
MarkupEndTag - [25..29)::4 - [</p>] - Gen<Markup> - SpanEditHandler;Accepts:None | ||
OpenAngle;[<]; | ||
ForwardSlash;[/]; | ||
Text;[p]; | ||
CloseAngle;[>]; | ||
CSharpStatementLiteral - [29..30)::1 - [}] - Gen<Stmt> - SpanEditHandler;Accepts:Any | ||
RightBrace;[}]; | ||
MarkupTagHelperEndTag - [30..34)::4 - [</p>] | ||
OpenAngle;[<]; | ||
ForwardSlash;[/]; | ||
Text;[p]; | ||
CloseAngle;[>]; |
1 change: 1 addition & 0 deletions
1
...iterTest/RequiredAttributeDescriptorsCreateMalformedTagHelperBlocksCorrectly11.tspans.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TagHelper span at (0:0,0 [34] ) - pTagHelper |