-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recognize
_Imports.razor
in the source generator (#10992)
- Loading branch information
Showing
6 changed files
with
198 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
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
39 changes: 39 additions & 0 deletions
39
...s/TestFiles/RazorSourceGeneratorComponentTests/ImportsRazor/Folder1_Component1_razor.g.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,39 @@ | ||
#pragma checksum "Folder1/Component1.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "6b035b1ceae4651124a6a654ee9943a6c99618b3" | ||
// <auto-generated/> | ||
#pragma warning disable 1591 | ||
namespace MyApp.Folder1 | ||
{ | ||
#line default | ||
using global::System; | ||
using global::System.Collections.Generic; | ||
using global::System.Linq; | ||
using global::System.Threading.Tasks; | ||
using global::Microsoft.AspNetCore.Components; | ||
#nullable restore | ||
#line (1,2)-(1,36) "Folder1/_Imports.razor" | ||
using MyApp.MyNamespace.AndAnother | ||
|
||
#line default | ||
#line hidden | ||
#nullable disable | ||
; | ||
#nullable restore | ||
public partial class Component1 : global::Microsoft.AspNetCore.Components.ComponentBase | ||
#nullable disable | ||
{ | ||
#pragma warning disable 1998 | ||
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) | ||
{ | ||
#nullable restore | ||
#line (1,3)-(1,26) "Folder1/Component1.razor" | ||
var c = new Class1(); | ||
|
||
#line default | ||
#line hidden | ||
#nullable disable | ||
|
||
} | ||
#pragma warning restore 1998 | ||
} | ||
} | ||
#pragma warning restore 1591 |
31 changes: 31 additions & 0 deletions
31
...sts/TestFiles/RazorSourceGeneratorComponentTests/ImportsRazor/Folder1__Imports_razor.g.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,31 @@ | ||
#pragma checksum "Folder1/_Imports.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "4b635952fa51f5f9709e03900447fd0d79a5bbf4" | ||
// <auto-generated/> | ||
#pragma warning disable 1591 | ||
namespace MyApp.Folder1 | ||
{ | ||
#line default | ||
using global::System; | ||
using global::System.Collections.Generic; | ||
using global::System.Linq; | ||
using global::System.Threading.Tasks; | ||
using global::Microsoft.AspNetCore.Components; | ||
#nullable restore | ||
#line (1,2)-(1,36) "Folder1/_Imports.razor" | ||
using MyApp.MyNamespace.AndAnother | ||
|
||
#line default | ||
#line hidden | ||
#nullable disable | ||
; | ||
#nullable restore | ||
public partial class _Imports : System.Object | ||
#nullable disable | ||
{ | ||
#pragma warning disable 1998 | ||
protected void Execute() | ||
{ | ||
} | ||
#pragma warning restore 1998 | ||
} | ||
} | ||
#pragma warning restore 1591 |
33 changes: 33 additions & 0 deletions
33
...s/TestFiles/RazorSourceGeneratorComponentTests/ImportsRazor/Folder2_Component2_razor.g.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 @@ | ||
#pragma checksum "Folder2/Component2.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "6b035b1ceae4651124a6a654ee9943a6c99618b3" | ||
// <auto-generated/> | ||
#pragma warning disable 1591 | ||
namespace MyApp.Folder2 | ||
{ | ||
#line default | ||
using global::System; | ||
using global::System.Collections.Generic; | ||
using global::System.Linq; | ||
using global::System.Threading.Tasks; | ||
using global::Microsoft.AspNetCore.Components; | ||
#line default | ||
#line hidden | ||
#nullable restore | ||
public partial class Component2 : global::Microsoft.AspNetCore.Components.ComponentBase | ||
#nullable disable | ||
{ | ||
#pragma warning disable 1998 | ||
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) | ||
{ | ||
#nullable restore | ||
#line (1,3)-(1,26) "Folder2/Component2.razor" | ||
var c = new Class1(); | ||
|
||
#line default | ||
#line hidden | ||
#nullable disable | ||
|
||
} | ||
#pragma warning restore 1998 | ||
} | ||
} | ||
#pragma warning restore 1591 |
31 changes: 31 additions & 0 deletions
31
.../TestFiles/RazorSourceGeneratorComponentTests/ImportsRazor_WithMarkup/_Imports_razor.g.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,31 @@ | ||
#pragma checksum "_Imports.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "26a98239eb5029d034398cd0d9647d5b05517dc7" | ||
// <auto-generated/> | ||
#pragma warning disable 1591 | ||
namespace MyApp | ||
{ | ||
#line default | ||
using global::System; | ||
using global::System.Collections.Generic; | ||
using global::System.Linq; | ||
using global::System.Threading.Tasks; | ||
using global::Microsoft.AspNetCore.Components; | ||
#nullable restore | ||
#line (1,2)-(1,23) "_Imports.razor" | ||
using System.Net.Http | ||
|
||
#line default | ||
#line hidden | ||
#nullable disable | ||
; | ||
#nullable restore | ||
public partial class _Imports : System.Object | ||
#nullable disable | ||
{ | ||
#pragma warning disable 1998 | ||
protected void Execute() | ||
{ | ||
} | ||
#pragma warning restore 1998 | ||
} | ||
} | ||
#pragma warning restore 1591 |