Allow TagHelpers to occur after unclosed C# blocks without assert failures.

- This scenario wasn't considered previously.

#2566
This commit is contained in:
N. Taylor Mullen 2018-09-04 14:39:03 -07:00
parent 45adbe5f7c
commit 3a281b8f58
1 changed files with 0 additions and 2 deletions

View File

@ -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();