This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix empty attribute projections for TagHelpers.
- Added TagHelperParseTreeRewriter tests, attempted to cover all empty attribute edge cases. - Added Codegen tests to validate output and DesignTimeLineMappings. #271
- Loading branch information
1 parent
efab52c
commit 7afd78b
Showing
6 changed files
with
365 additions
and
15 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
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
62 changes: 62 additions & 0 deletions
62
...spNet.Razor.Test/TestFiles/CodeGenerator/CS/Output/EmptyAttributeTagHelpers.DesignTime.cs
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,62 @@ | ||
namespace TestOutput | ||
{ | ||
using Microsoft.AspNet.Razor.Runtime.TagHelpers; | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
public class EmptyAttributeTagHelpers | ||
{ | ||
private static object @__o; | ||
private void @__RazorDesignTimeHelpers__() | ||
{ | ||
#pragma warning disable 219 | ||
string __tagHelperDirectiveSyntaxHelper = null; | ||
__tagHelperDirectiveSyntaxHelper = | ||
#line 1 "EmptyAttributeTagHelpers.cshtml" | ||
"something" | ||
|
||
#line default | ||
#line hidden | ||
; | ||
#pragma warning restore 219 | ||
} | ||
#line hidden | ||
private InputTagHelper __InputTagHelper = null; | ||
private InputTagHelper2 __InputTagHelper2 = null; | ||
private PTagHelper __PTagHelper = null; | ||
#line hidden | ||
public EmptyAttributeTagHelpers() | ||
{ | ||
} | ||
|
||
#pragma warning disable 1998 | ||
public override async Task ExecuteAsync() | ||
{ | ||
__InputTagHelper = CreateTagHelper<InputTagHelper>(); | ||
__InputTagHelper.Type = ""; | ||
__InputTagHelper2 = CreateTagHelper<InputTagHelper2>(); | ||
__InputTagHelper2.Type = __InputTagHelper.Type; | ||
#line 4 "EmptyAttributeTagHelpers.cshtml" | ||
__InputTagHelper2.Checked = ; | ||
|
||
#line default | ||
#line hidden | ||
__InputTagHelper = CreateTagHelper<InputTagHelper>(); | ||
__InputTagHelper.Type = ""; | ||
__InputTagHelper2 = CreateTagHelper<InputTagHelper2>(); | ||
__InputTagHelper2.Type = __InputTagHelper.Type; | ||
#line 6 "EmptyAttributeTagHelpers.cshtml" | ||
__InputTagHelper2.Checked = ; | ||
|
||
#line default | ||
#line hidden | ||
__PTagHelper = CreateTagHelper<PTagHelper>(); | ||
#line 5 "EmptyAttributeTagHelpers.cshtml" | ||
__PTagHelper.Age = ; | ||
|
||
#line default | ||
#line hidden | ||
} | ||
#pragma warning restore 1998 | ||
} | ||
} |
Oops, something went wrong.