-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e4a9db
commit 5438503
Showing
5 changed files
with
167 additions
and
18 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
54 changes: 54 additions & 0 deletions
54
...rceGeneratorTests.should_detect_async_sections#TestNamespace.TestFile.Razor.g.verified.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,54 @@ | ||
//HintName: TestNamespace.TestFile.Razor.g.cs | ||
#pragma checksum "./TestFile.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "ad80bc3dc0df64bf01f11639ab5672ca37eb6742" | ||
// <auto-generated/> | ||
#pragma warning disable 1591 | ||
namespace TestNamespace | ||
{ | ||
#line hidden | ||
#nullable restore | ||
#line 1 "./TestFile.cshtml" | ||
using System.Threading.Tasks; | ||
|
||
#line default | ||
#line hidden | ||
#nullable disable | ||
#nullable restore | ||
internal partial class TestFile : global::RazorBlade.HtmlTemplate | ||
#nullable disable | ||
{ | ||
#pragma warning disable 1998 | ||
protected async override global::System.Threading.Tasks.Task ExecuteAsync() | ||
{ | ||
#nullable restore | ||
#line 2 "./TestFile.cshtml" | ||
if(42.ToString() == "42") { | ||
|
||
|
||
#line default | ||
#line hidden | ||
#nullable disable | ||
DefineSection("SectionName", async() => { | ||
WriteLiteral(" "); | ||
#nullable restore | ||
#line (3,29)-(3,54) 6 "./TestFile.cshtml" | ||
Write(await Task.FromResult(42)); | ||
|
||
#line default | ||
#line hidden | ||
#nullable disable | ||
WriteLiteral(" "); | ||
} | ||
); | ||
#nullable restore | ||
#line 3 "./TestFile.cshtml" | ||
|
||
} | ||
|
||
#line default | ||
#line hidden | ||
#nullable disable | ||
} | ||
#pragma warning restore 1998 | ||
} | ||
} | ||
#pragma warning restore 1591 |
22 changes: 22 additions & 0 deletions
22
...neratorTests.should_detect_async_sections#TestNamespace.TestFile.RazorBlade.g.verified.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,22 @@ | ||
//HintName: TestNamespace.TestFile.RazorBlade.g.cs | ||
// <auto-generated/> | ||
|
||
#nullable restore | ||
|
||
namespace TestNamespace | ||
{ | ||
partial class TestFile | ||
{ | ||
/// <inheritdoc cref="M:RazorBlade.RazorTemplate.Render(System.Threading.CancellationToken)" /> | ||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] | ||
[global::System.Obsolete("The generated template is async. Use RenderAsync instead.", DiagnosticId = "RB0003")] | ||
public new string Render(global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) | ||
=> base.Render(cancellationToken); | ||
|
||
/// <inheritdoc cref="M:RazorBlade.RazorTemplate.Render(System.IO.TextWriter,System.Threading.CancellationToken)" /> | ||
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] | ||
[global::System.Obsolete("The generated template is async. Use RenderAsync instead.", DiagnosticId = "RB0003")] | ||
public new void Render(global::System.IO.TextWriter textWriter, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) | ||
=> base.Render(textWriter, cancellationToken); | ||
} | ||
} |
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