Allow TagHelpers to occur after unclosed C# blocks without assert failures.
- This scenario wasn't considered previously. #2566
This commit is contained in:
parent
45adbe5f7c
commit
3a281b8f58
|
|
@ -136,8 +136,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Legacy
|
|||
// scope. Block scopes are special cases in Razor such as @<p> would cause an error because there's no
|
||||
// matching end </p> tag in the template block scope and therefore doesn't make sense as a tag helper.
|
||||
BuildMalformedTagHelpers(_trackerStack.Count - activeTrackers, errorSink);
|
||||
|
||||
Debug.Assert(activeTrackers == _trackerStack.Count);
|
||||
}
|
||||
|
||||
BuildCurrentlyTrackedBlock();
|
||||
|
|
|
|||
Loading…
Reference in New Issue