-
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
25be9cf
commit 5e4a9db
Showing
4 changed files
with
77 additions
and
1 deletion.
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
37 changes: 37 additions & 0 deletions
37
...adeSourceGeneratorTests.should_handle_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,37 @@ | ||
//HintName: TestNamespace.TestFile.Razor.g.cs | ||
#pragma checksum "./TestFile.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "c5ddc67791758895b8ee73dd2a45225d3418acdb" | ||
// <auto-generated/> | ||
#pragma warning disable 1591 | ||
namespace TestNamespace | ||
{ | ||
#line hidden | ||
#nullable restore | ||
internal partial class TestFile : global::RazorBlade.HtmlTemplate | ||
#nullable disable | ||
{ | ||
#pragma warning disable 1998 | ||
protected async override global::System.Threading.Tasks.Task ExecuteAsync() | ||
{ | ||
WriteLiteral("Before section\r\n"); | ||
DefineSection("SectionName", async() => { | ||
WriteLiteral(" Section content "); | ||
} | ||
); | ||
WriteLiteral("After section\r\n"); | ||
DefineSection("OtherSectionName", async() => { | ||
WriteLiteral(" Answer is "); | ||
#nullable restore | ||
#line (4,41)-(4,43) 6 "./TestFile.cshtml" | ||
Write(42); | ||
|
||
#line default | ||
#line hidden | ||
#nullable disable | ||
WriteLiteral(" "); | ||
} | ||
); | ||
} | ||
#pragma warning restore 1998 | ||
} | ||
} | ||
#pragma warning restore 1591 |
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