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 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fixes #804] Fixed unsafe cast in CSharpCodeVisitor
- Loading branch information
1 parent
d337bac
commit 1cb8423
Showing
5 changed files
with
64 additions
and
12 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
33 changes: 33 additions & 0 deletions
33
...soft.AspNetCore.Razor.Test/TestFiles/CodeGenerator/Output/ExplicitExpressionWithMarkup.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,33 @@ | ||
namespace TestOutput | ||
{ | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
public class ExplicitExpressionWithMarkup | ||
{ | ||
private static object @__o; | ||
private void @__RazorDesignTimeHelpers__() | ||
{ | ||
#pragma warning disable 219 | ||
#pragma warning restore 219 | ||
} | ||
#line hidden | ||
public ExplicitExpressionWithMarkup() | ||
{ | ||
} | ||
|
||
#pragma warning disable 1998 | ||
public override async Task ExecuteAsync() | ||
{ | ||
#line 1 "ExplicitExpressionWithMarkup.cshtml" | ||
item => new Template(async(__razor_template_writer) => { | ||
} | ||
) | ||
; | ||
|
||
#line default | ||
#line hidden | ||
} | ||
#pragma warning restore 1998 | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
....AspNetCore.Razor.Test/TestFiles/CodeGenerator/Source/ExplicitExpressionWithMarkup.cshtml
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 @@ | ||
<div>@(@</div> |