Merge remote-tracking branch 'upstream/main' into CohostSpellCheck

# Conflicts:
#	eng/targets/Services.props
#	src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Remote/RazorServices.cs
This commit is contained in:
David Wengier 2024-09-06 13:28:23 +10:00
Родитель b69b08cbe3 49e727b90e
Коммит a3ee54d9a5
188 изменённых файлов: 2416 добавлений и 507 удалений

Просмотреть файл

@ -29,6 +29,8 @@
<ServiceHubService Include="Microsoft.VisualStudio.Razor.GoToDefinition" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteGoToDefinitionService+Factory" />
<ServiceHubService Include="Microsoft.VisualStudio.Razor.Rename" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteRenameService+Factory" />
<ServiceHubService Include="Microsoft.VisualStudio.Razor.AutoInsert" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteAutoInsertService+Factory" />
<ServiceHubService Include="Microsoft.VisualStudio.Razor.Formatting" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteFormattingService+Factory" />
<ServiceHubService Include="Microsoft.VisualStudio.Razor.GoToImplementation" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteGoToImplementationService+Factory" />
<ServiceHubService Include="Microsoft.VisualStudio.Razor.SpellCheck" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteSpellCheckService+Factory" />
</ItemGroup>
</Project>

Просмотреть файл

@ -2336,9 +2336,9 @@ namespace Test
: [// x:\dir\subdir\Test\TestComponent.cshtml(1,27): error CS1503: Argument 1: cannot convert from 'string' to 'int'
// ParentValue
Diagnostic(ErrorCode.ERR_BadArgType, "ParentValue").WithArguments("1", "string", "int").WithLocation(1, 27),
// (38,158): error CS0029: Cannot implicitly convert type 'int' to 'string'
// __builder.AddComponentParameter(2, "ValueChanged", (global::System.Action<System.Int32>)(__value => ParentValue = __value));
Diagnostic(ErrorCode.ERR_NoImplicitConv, "__value").WithArguments("int", "string").WithLocation(38, 158)]);
// (38,166): error CS0029: Cannot implicitly convert type 'int' to 'string'
// __builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<global::System.Int32>)(__value => ParentValue = __value));
Diagnostic(ErrorCode.ERR_NoImplicitConv, "__value").WithArguments("int", "string").WithLocation(38, 166)]);
}
[IntegrationTestFact]
@ -2616,18 +2616,18 @@ namespace Test
CompileToAssembly(generated, DesignTime
? [// (31,179): error CS0029: Cannot implicitly convert type 'int' to 'string'
// __builder.AddComponentParameter(3, "ValueExpression", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.String>>>(() => ParentValue));
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ParentValue").WithArguments("int", "string").WithLocation(38, 179),
// (31,179): error CS1662: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type
// __builder.AddComponentParameter(3, "ValueExpression", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.String>>>(() => ParentValue));
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "ParentValue").WithArguments("lambda expression").WithLocation(38, 179)]
: [// (39,258): error CS0029: Cannot implicitly convert type 'int' to 'string'
// __builder.AddComponentParameter(3, "ValueExpression", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.String>>>(() => ParentValue));
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ParentValue").WithArguments("int", "string").WithLocation(39, 258),
// (39,258): error CS1662: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type
// __builder.AddComponentParameter(3, "ValueExpression", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.String>>>(() => ParentValue));
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "ParentValue").WithArguments("lambda expression").WithLocation(39, 258)
? [// (38,195): error CS0029: Cannot implicitly convert type 'int' to 'string'
// __o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => ParentValue);
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ParentValue").WithArguments("int", "string").WithLocation(38, 195),
// (38,195): error CS1662: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type
// __o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => ParentValue);
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "ParentValue").WithArguments("lambda expression").WithLocation(38, 195)]
: [// (39,274): error CS0029: Cannot implicitly convert type 'int' to 'string'
// __builder.AddComponentParameter(3, nameof(global::Test.MyComponent.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => ParentValue));
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ParentValue").WithArguments("int", "string").WithLocation(39, 274),
// (39,274): error CS1662: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type
// __builder.AddComponentParameter(3, nameof(global::Test.MyComponent.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => ParentValue));
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "ParentValue").WithArguments("lambda expression").WithLocation(39, 274)
]);
}
@ -8743,6 +8743,31 @@ namespace Test
CompileToAssembly(generated);
}
[IntegrationTestFact, WorkItem("https://github.com/dotnet/razor/issues/10827")]
public void GenericTypeCheck()
{
var generated = CompileToCSharp("""
<TestComponent Data="null" />
@code {
private class System
{
private class String
{
}
}
[Parameter]
public List<global::System.String> Data { get; set; }
}
""");
// Assert
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
CompileToAssembly(generated);
}
#endregion
#region Key

Просмотреть файл

@ -35,7 +35,7 @@ namespace Test
);
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Microsoft.AspNetCore.Components.EventCallback<global::System.Int32>>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::System.Int32>(this,
global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)));
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.Int32>>>(() => ParentValue);
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.Int32>>>(() => ParentValue);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));

Просмотреть файл

@ -5,14 +5,14 @@ Generated Location: (1135:29,26 [11] )
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2197:45,19 [5] )
Generated Location: (2213:45,19 [5] )
|Value|
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2610:63,7 [50] )
Generated Location: (2626:63,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
__value => ParentValue = __value);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}

Просмотреть файл

@ -5,19 +5,19 @@ Generated Location: (1135:29,26 [11] )
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1668:44,19 [5] )
Generated Location: (1676:44,19 [5] )
|Value|
Source Location: (45:0,45 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1915:53,45 [5] )
Generated Location: (1923:53,45 [5] )
|Value|
Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2328:71,7 [50] )
Generated Location: (2336:71,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -33,9 +33,9 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
__value => ParentValue = __value);
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.Int32>>>(() => ParentValue);
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.Int32>>>(() => ParentValue);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));

Просмотреть файл

@ -5,14 +5,14 @@ Generated Location: (1135:29,26 [11] )
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1860:45,19 [5] )
Generated Location: (1884:45,19 [5] )
|Value|
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2273:63,7 [50] )
Generated Location: (2297:63,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
__value => ParentValue = __value);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}

Просмотреть файл

@ -5,14 +5,14 @@ Generated Location: (1135:29,26 [11] )
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1668:44,19 [5] )
Generated Location: (1676:44,19 [5] )
|Value|
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2081:62,7 [50] )
Generated Location: (2089:62,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
__value => ParentValue = __value);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}

Просмотреть файл

@ -5,14 +5,14 @@ Generated Location: (1131:29,22 [11] )
Source Location: (15:0,15 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1656:44,15 [5] )
Generated Location: (1664:44,15 [5] )
|Value|
Source Location: (46:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2065:62,7 [50] )
Generated Location: (2073:62,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
__value => ParentValue = __value);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}

Просмотреть файл

@ -5,14 +5,14 @@ Generated Location: (1127:29,18 [11] )
Source Location: (11:0,11 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1645:44,11 [5] )
Generated Location: (1653:44,11 [5] )
|Value|
Source Location: (42:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2051:62,7 [50] )
Generated Location: (2059:62,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
__value => ParentValue = __value);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}

Просмотреть файл

@ -5,14 +5,14 @@ Generated Location: (1135:29,26 [11] )
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1663:44,19 [5] )
Generated Location: (1671:44,19 [5] )
|Value|
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2071:62,7 [50] )
Generated Location: (2079:62,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
__value => ParentValue = __value);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}

Просмотреть файл

@ -5,7 +5,7 @@ Generated Location: (1135:29,26 [11] )
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1668:44,19 [5] )
Generated Location: (1676:44,19 [5] )
|Value|
Source Location: (50:1,7 [105] x:\dir\subdir\Test\TestComponent.cshtml)
@ -14,7 +14,7 @@ Source Location: (50:1,7 [105] x:\dir\subdir\Test\TestComponent.cshtml)
public string nameof(string s) => string.Empty;
|
Generated Location: (2081:62,7 [105] )
Generated Location: (2089:62,7 [105] )
|
public int ParentValue { get; set; } = 42;

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
__value => ParentValue = __value);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}

Просмотреть файл

@ -5,14 +5,14 @@ Generated Location: (1135:29,26 [11] )
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1668:44,19 [5] )
Generated Location: (1676:44,19 [5] )
|Value|
Source Location: (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "42";
|
Generated Location: (2081:62,7 [55] )
Generated Location: (2089:62,7 [55] )
|
public string ParentValue { get; set; } = "42";
|

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
__value => { ParentValue = __value; global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeSynchronousDelegate(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"

Просмотреть файл

@ -5,17 +5,17 @@ Generated Location: (1139:29,30 [11] )
Source Location: (62:0,62 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|Update|
Generated Location: (1559:39,62 [6] )
Generated Location: (1567:39,62 [6] )
|Update|
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1983:52,19 [5] )
Generated Location: (1991:52,19 [5] )
|Value|
Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2234:61,49 [5] )
Generated Location: (2242:61,49 [5] )
|Value|
Source Location: (81:1,7 [82] x:\dir\subdir\Test\TestComponent.cshtml)
@ -24,7 +24,7 @@ Source Location: (81:1,7 [82] x:\dir\subdir\Test\TestComponent.cshtml)
public void Update() { }
|
Generated Location: (2647:79,7 [82] )
Generated Location: (2655:79,7 [82] )
|
public int ParentValue { get; set; } = 42;

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
__value => { ParentValue = __value; global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeSynchronousDelegate(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"

Просмотреть файл

@ -5,24 +5,24 @@ Generated Location: (1139:29,30 [11] )
Source Location: (62:0,62 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|() => { }|
Generated Location: (1559:39,62 [9] )
Generated Location: (1567:39,62 [9] )
|() => { }|
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1986:52,19 [5] )
Generated Location: (1994:52,19 [5] )
|Value|
Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2237:61,49 [5] )
Generated Location: (2245:61,49 [5] )
|Value|
Source Location: (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2650:79,7 [50] )
Generated Location: (2658:79,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
(value => { ParentValue = value; return Task.CompletedTask; })

Просмотреть файл

@ -5,24 +5,24 @@ Generated Location: (1139:29,30 [11] )
Source Location: (60:0,60 [62] x:\dir\subdir\Test\TestComponent.cshtml)
|(value => { ParentValue = value; return Task.CompletedTask; })|
Generated Location: (1408:38,60 [62] )
Generated Location: (1416:38,60 [62] )
|(value => { ParentValue = value; return Task.CompletedTask; })|
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1884:51,19 [5] )
Generated Location: (1892:51,19 [5] )
|Value|
Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2135:60,49 [5] )
Generated Location: (2143:60,49 [5] )
|Value|
Source Location: (135:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2548:78,7 [50] )
Generated Location: (2556:78,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Func<System.Int32, System.Threading.Tasks.Task>(
__o = new global::System.Func<global::System.Int32, global::System.Threading.Tasks.Task>(
async __value => { ParentValue = __value; await global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"

Просмотреть файл

@ -5,17 +5,17 @@ Generated Location: (1139:29,30 [11] )
Source Location: (62:0,62 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|Update|
Generated Location: (1599:39,62 [6] )
Generated Location: (1615:39,62 [6] )
|Update|
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2023:52,19 [5] )
Generated Location: (2039:52,19 [5] )
|Value|
Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2274:61,49 [5] )
Generated Location: (2290:61,49 [5] )
|Value|
Source Location: (81:1,7 [101] x:\dir\subdir\Test\TestComponent.cshtml)
@ -24,7 +24,7 @@ Source Location: (81:1,7 [101] x:\dir\subdir\Test\TestComponent.cshtml)
public Task Update() => Task.CompletedTask;
|
Generated Location: (2687:79,7 [101] )
Generated Location: (2703:79,7 [101] )
|
public int ParentValue { get; set; } = 42;

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Func<System.Int32, System.Threading.Tasks.Task>(
__o = new global::System.Func<global::System.Int32, global::System.Threading.Tasks.Task>(
async __value => { ParentValue = __value; await global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"

Просмотреть файл

@ -5,24 +5,24 @@ Generated Location: (1139:29,30 [11] )
Source Location: (62:0,62 [36] x:\dir\subdir\Test\TestComponent.cshtml)
|() => { return Task.CompletedTask; }|
Generated Location: (1599:39,62 [36] )
Generated Location: (1615:39,62 [36] )
|() => { return Task.CompletedTask; }|
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2053:52,19 [5] )
Generated Location: (2069:52,19 [5] )
|Value|
Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2304:61,49 [5] )
Generated Location: (2320:61,49 [5] )
|Value|
Source Location: (111:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2717:79,7 [50] )
Generated Location: (2733:79,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
UpdateValue

Просмотреть файл

@ -5,17 +5,17 @@ Generated Location: (1139:29,30 [11] )
Source Location: (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|UpdateValue|
Generated Location: (1408:38,60 [11] )
Generated Location: (1416:38,60 [11] )
|UpdateValue|
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1833:51,19 [5] )
Generated Location: (1841:51,19 [5] )
|Value|
Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2084:60,49 [5] )
Generated Location: (2092:60,49 [5] )
|Value|
Source Location: (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml)
@ -24,7 +24,7 @@ Source Location: (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml)
public void UpdateValue(int value) => ParentValue = value;
|
Generated Location: (2497:78,7 [116] )
Generated Location: (2505:78,7 [116] )
|
public int ParentValue { get; set; } = 42;

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
value => ParentValue = value

Просмотреть файл

@ -5,24 +5,24 @@ Generated Location: (1139:29,30 [11] )
Source Location: (60:0,60 [28] x:\dir\subdir\Test\TestComponent.cshtml)
|value => ParentValue = value|
Generated Location: (1408:38,60 [28] )
Generated Location: (1416:38,60 [28] )
|value => ParentValue = value|
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1850:51,19 [5] )
Generated Location: (1858:51,19 [5] )
|Value|
Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2101:60,49 [5] )
Generated Location: (2109:60,49 [5] )
|Value|
Source Location: (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2514:78,7 [50] )
Generated Location: (2522:78,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.Int32>(
__o = new global::System.Action<global::System.Int32>(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
UpdateValue

Просмотреть файл

@ -5,17 +5,17 @@ Generated Location: (1139:29,30 [11] )
Source Location: (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|UpdateValue|
Generated Location: (1408:38,60 [11] )
Generated Location: (1416:38,60 [11] )
|UpdateValue|
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1833:51,19 [5] )
Generated Location: (1841:51,19 [5] )
|Value|
Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2084:60,49 [5] )
Generated Location: (2092:60,49 [5] )
|Value|
Source Location: (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml)
@ -24,7 +24,7 @@ Source Location: (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml)
public void UpdateValue(int value) => ParentValue = value;
|
Generated Location: (2497:78,7 [116] )
Generated Location: (2505:78,7 [116] )
|
public int ParentValue { get; set; } = 42;

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Func<System.Int32, System.Threading.Tasks.Task>(
__o = new global::System.Func<global::System.Int32, global::System.Threading.Tasks.Task>(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
UpdateValue

Просмотреть файл

@ -5,17 +5,17 @@ Generated Location: (1139:29,30 [11] )
Source Location: (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|UpdateValue|
Generated Location: (1435:38,60 [11] )
Generated Location: (1451:38,60 [11] )
|UpdateValue|
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1860:51,19 [5] )
Generated Location: (1876:51,19 [5] )
|Value|
Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2111:60,49 [5] )
Generated Location: (2127:60,49 [5] )
|Value|
Source Location: (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml)
@ -24,7 +24,7 @@ Source Location: (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml)
public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; }
|
Generated Location: (2524:78,7 [144] )
Generated Location: (2540:78,7 [144] )
|
public int ParentValue { get; set; } = 42;

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Func<System.Int32, System.Threading.Tasks.Task>(
__o = new global::System.Func<global::System.Int32, global::System.Threading.Tasks.Task>(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
value => { ParentValue = value; return Task.CompletedTask; }

Просмотреть файл

@ -5,24 +5,24 @@ Generated Location: (1139:29,30 [11] )
Source Location: (60:0,60 [60] x:\dir\subdir\Test\TestComponent.cshtml)
|value => { ParentValue = value; return Task.CompletedTask; }|
Generated Location: (1435:38,60 [60] )
Generated Location: (1451:38,60 [60] )
|value => { ParentValue = value; return Task.CompletedTask; }|
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1909:51,19 [5] )
Generated Location: (1925:51,19 [5] )
|Value|
Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2160:60,49 [5] )
Generated Location: (2176:60,49 [5] )
|Value|
Source Location: (133:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2573:78,7 [50] )
Generated Location: (2589:78,7 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -33,7 +33,7 @@ namespace Test
#line hidden
#nullable disable
);
__o = new global::System.Action<System.String>(
__o = new global::System.Action<global::System.String>(
__value => person.Name = __value);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}

Просмотреть файл

@ -5,14 +5,14 @@ Generated Location: (1134:29,24 [11] )
Source Location: (17:0,17 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1664:44,17 [5] )
Generated Location: (1672:44,17 [5] )
|Value|
Source Location: (56:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml)
|
Person person = new Person();
|
Generated Location: (2069:62,1 [37] )
Generated Location: (2077:62,1 [37] )
|
Person person = new Person();
|

Просмотреть файл

@ -47,7 +47,7 @@ namespace Test
#line default
#line hidden
#nullable disable
__o = new global::Microsoft.AspNetCore.Components.RenderFragment<System.String>(
__o = new global::Microsoft.AspNetCore.Components.RenderFragment<global::System.String>(
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
header

Просмотреть файл

@ -15,11 +15,11 @@ Generated Location: (1492:44,87 [2] )
Source Location: (113:1,21 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|header|
Generated Location: (1731:52,21 [6] )
Generated Location: (1739:52,21 [6] )
|header|
Source Location: (105:1,13 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|Header|
Generated Location: (2145:65,13 [6] )
Generated Location: (2153:65,13 [6] )
|Header|

Просмотреть файл

@ -47,7 +47,7 @@ namespace Test
#line default
#line hidden
#nullable disable
__o = new global::Microsoft.AspNetCore.Components.RenderFragment<System.String>(
__o = new global::Microsoft.AspNetCore.Components.RenderFragment<global::System.String>(
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
header

Просмотреть файл

@ -15,11 +15,11 @@ Generated Location: (1492:44,87 [2] )
Source Location: (113:1,21 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|header|
Generated Location: (1731:52,21 [6] )
Generated Location: (1739:52,21 [6] )
|header|
Source Location: (105:1,13 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|Header|
Generated Location: (2302:68,13 [6] )
Generated Location: (2310:68,13 [6] )
|Header|

Просмотреть файл

@ -24,7 +24,7 @@ namespace Test
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = new global::System.Action<System.EventArgs>(
__o = new global::System.Action<global::System.EventArgs>(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
Increment

Просмотреть файл

@ -1,11 +1,11 @@
Source Location: (23:0,23 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|Increment|
Generated Location: (1072:29,23 [9] )
Generated Location: (1080:29,23 [9] )
|Increment|
Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|OnClick|
Generated Location: (1489:42,13 [7] )
Generated Location: (1497:42,13 [7] )
|OnClick|
Source Location: (46:2,7 [98] x:\dir\subdir\Test\TestComponent.cshtml)
@ -15,7 +15,7 @@ Source Location: (46:2,7 [98] x:\dir\subdir\Test\TestComponent.cshtml)
counter++;
}
|
Generated Location: (1904:60,7 [98] )
Generated Location: (1912:60,7 [98] )
|
private int counter;
private void Increment(EventArgs e) {

Просмотреть файл

@ -24,7 +24,7 @@ namespace Test
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<System.String>)((context) => (__builder2) => {
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<global::System.String>)((context) => (__builder2) => {
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = context;

Просмотреть файл

@ -1,5 +1,5 @@
Source Location: (28:0,28 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|context|
Generated Location: (1172:29,28 [7] )
Generated Location: (1180:29,28 [7] )
|context|

Просмотреть файл

@ -25,7 +25,7 @@ namespace Test
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = "";
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<System.String>)((context) => (__builder2) => {
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<global::System.String>)((context) => (__builder2) => {
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = context.ToLowerInvariant();

Просмотреть файл

@ -1,10 +1,10 @@
Source Location: (54:0,54 [26] x:\dir\subdir\Test\TestComponent.cshtml)
|context.ToLowerInvariant()|
Generated Location: (1221:30,54 [26] )
Generated Location: (1229:30,54 [26] )
|context.ToLowerInvariant()|
Source Location: (13:0,13 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|MyAttr|
Generated Location: (1509:41,13 [6] )
Generated Location: (1517:41,13 [6] )
|MyAttr|

Просмотреть файл

@ -25,7 +25,7 @@ namespace Test
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = "";
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<System.String>)((item) => (__builder2) => {
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<global::System.String>)((item) => (__builder2) => {
#nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = item.ToLowerInvariant();

Просмотреть файл

@ -1,10 +1,10 @@
Source Location: (93:2,32 [23] x:\dir\subdir\Test\TestComponent.cshtml)
|item.ToLowerInvariant()|
Generated Location: (1196:30,32 [23] )
Generated Location: (1204:30,32 [23] )
|item.ToLowerInvariant()|
Source Location: (13:0,13 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|MyAttr|
Generated Location: (1481:41,13 [6] )
Generated Location: (1489:41,13 [6] )
|MyAttr|

Просмотреть файл

@ -25,7 +25,7 @@ namespace Test
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = "";
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<System.String>)((item) => (__builder2) => {
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment<global::System.String>)((item) => (__builder2) => {
#nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = item.ToLowerInvariant();

Просмотреть файл

@ -1,10 +1,10 @@
Source Location: (93:2,32 [23] x:\dir\subdir\Test\TestComponent.cshtml)
|item.ToLowerInvariant()|
Generated Location: (1196:30,32 [23] )
Generated Location: (1204:30,32 [23] )
|item.ToLowerInvariant()|
Source Location: (13:0,13 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|MyAttr|
Generated Location: (1481:41,13 [6] )
Generated Location: (1489:41,13 [6] )
|MyAttr|

Просмотреть файл

@ -24,7 +24,7 @@ namespace Test
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = new global::System.Action<System.EventArgs>(
__o = new global::System.Action<global::System.EventArgs>(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
e => { Increment(); }

Просмотреть файл

@ -1,11 +1,11 @@
Source Location: (24:0,24 [21] x:\dir\subdir\Test\TestComponent.cshtml)
|e => { Increment(); }|
Generated Location: (1073:29,24 [21] )
Generated Location: (1081:29,24 [21] )
|e => { Increment(); }|
Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|OnClick|
Generated Location: (1502:42,13 [7] )
Generated Location: (1510:42,13 [7] )
|OnClick|
Source Location: (60:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)
@ -15,7 +15,7 @@ Source Location: (60:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml)
counter++;
}
|
Generated Location: (1917:60,7 [87] )
Generated Location: (1925:60,7 [87] )
|
private int counter;
private void Increment() {

Просмотреть файл

@ -39,7 +39,7 @@ __o = typeof(global::Test.HeaderComponent);
#line default
#line hidden
#nullable disable
__builder.AddAttribute(-1, "Footer", (global::Microsoft.AspNetCore.Components.RenderFragment<System.DateTime>)((context) => (__builder2) => {
__builder.AddAttribute(-1, "Footer", (global::Microsoft.AspNetCore.Components.RenderFragment<global::System.DateTime>)((context) => (__builder2) => {
#nullable restore
#line 7 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = context;
@ -66,7 +66,7 @@ __o = typeof(global::Test.HeaderComponent);
#line default
#line hidden
#nullable disable
__builder.AddAttribute(-1, "Footer", (global::Microsoft.AspNetCore.Components.RenderFragment<System.DateTime>)((context) => (__builder2) => {
__builder.AddAttribute(-1, "Footer", (global::Microsoft.AspNetCore.Components.RenderFragment<global::System.DateTime>)((context) => (__builder2) => {
#nullable restore
#line 13 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = context;

Просмотреть файл

@ -5,11 +5,11 @@ Generated Location: (361:12,0 [17] )
Source Location: (119:6,13 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|context|
Generated Location: (1578:44,13 [7] )
Generated Location: (1586:44,13 [7] )
|context|
Source Location: (276:12,13 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|context|
Generated Location: (2403:71,13 [7] )
Generated Location: (2419:71,13 [7] )
|context|

Просмотреть файл

@ -24,7 +24,7 @@ namespace Test
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<(System.Int32 Horizontal, System.Int32 Vertical)>(
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<(global::System.Int32 Horizontal, global::System.Int32 Vertical)>(
#nullable restore
#line 5 "x:\dir\subdir\Test\TestComponent.cshtml"
(32, 16)

Просмотреть файл

@ -1,18 +1,18 @@
Source Location: (113:4,23 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|(32, 16)|
Generated Location: (1160:29,23 [8] )
Generated Location: (1176:29,23 [8] )
|(32, 16)|
Source Location: (105:4,15 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|Gutter|
Generated Location: (1580:42,15 [6] )
Generated Location: (1596:42,15 [6] )
|Gutter|
Source Location: (7:0,7 [78] x:\dir\subdir\Test\TestComponent.cshtml)
|
[Parameter] public (int Horizontal, int Vertical) Gutter { get; set; }
|
Generated Location: (1996:60,7 [78] )
Generated Location: (2012:60,7 [78] )
|
[Parameter] public (int Horizontal, int Vertical) Gutter { get; set; }
|

Просмотреть файл

@ -44,7 +44,7 @@ namespace Test
);
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Microsoft.AspNetCore.Components.EventCallback<global::System.String>>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::System.String>(this,
global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => message = __value, message)));
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Action<System.String>>>(() => message);
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Action<global::System.String>>>(() => message);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));

Просмотреть файл

@ -10,19 +10,19 @@ Generated Location: (1451:38,48 [7] )
Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|Message|
Generated Location: (2496:54,13 [7] )
Generated Location: (2512:54,13 [7] )
|Message|
Source Location: (38:0,38 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|Message|
Generated Location: (2738:63,38 [7] )
Generated Location: (2754:63,38 [7] )
|Message|
Source Location: (73:1,12 [30] x:\dir\subdir\Test\TestComponent.cshtml)
|
string message = "hi";
|
Generated Location: (3158:81,12 [30] )
Generated Location: (3174:81,12 [30] )
|
string message = "hi";
|

Просмотреть файл

@ -44,7 +44,7 @@ namespace Test
);
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Microsoft.AspNetCore.Components.EventCallback<global::System.String>>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::System.String>(this,
global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => message = __value, message)));
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Action<System.String>>>(() => message);
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Action<global::System.String>>>(() => message);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));

Просмотреть файл

@ -10,19 +10,19 @@ Generated Location: (1626:38,59 [7] )
Source Location: (13:0,13 [14] x:\dir\subdir\Test\TestComponent.cshtml)
|MessageChanged|
Generated Location: (2671:54,13 [14] )
Generated Location: (2687:54,13 [14] )
|MessageChanged|
Source Location: (49:0,49 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|Message|
Generated Location: (2931:63,49 [7] )
Generated Location: (2947:63,49 [7] )
|Message|
Source Location: (84:1,12 [30] x:\dir\subdir\Test\TestComponent.cshtml)
|
string message = "hi";
|
Generated Location: (3351:81,12 [30] )
Generated Location: (3367:81,12 [30] )
|
string message = "hi";
|

Просмотреть файл

@ -24,7 +24,7 @@ namespace Test
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Action<System.String>>>(
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Action<global::System.String>>>(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
(s) => {}
@ -44,7 +44,7 @@ namespace Test
);
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Microsoft.AspNetCore.Components.EventCallback<global::System.String>>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::System.String>(this,
global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => message = __value, message)));
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Action<System.String>>>(() => message);
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Action<global::System.String>>>(() => message);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));

Просмотреть файл

@ -1,28 +1,28 @@
Source Location: (59:0,59 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|(s) => {}|
Generated Location: (1220:29,59 [9] )
Generated Location: (1236:29,59 [9] )
|(s) => {}|
Source Location: (29:0,29 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|message|
Generated Location: (1521:38,29 [7] )
Generated Location: (1537:38,29 [7] )
|message|
Source Location: (38:0,38 [17] x:\dir\subdir\Test\TestComponent.cshtml)
|MessageExpression|
Generated Location: (2591:54,38 [17] )
Generated Location: (2623:54,38 [17] )
|MessageExpression|
Source Location: (19:0,19 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|Message|
Generated Location: (2824:63,19 [7] )
Generated Location: (2856:63,19 [7] )
|Message|
Source Location: (87:1,12 [30] x:\dir\subdir\Test\TestComponent.cshtml)
|
string message = "hi";
|
Generated Location: (3244:81,12 [30] )
Generated Location: (3276:81,12 [30] )
|
string message = "hi";
|

Просмотреть файл

@ -0,0 +1,77 @@
// <auto-generated/>
#pragma warning disable 1591
namespace Test
{
#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 TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase
#nullable disable
{
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
}
#pragma warning restore 219
#pragma warning disable 0414
private static object __o = null;
#pragma warning restore 0414
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Collections.Generic.List<global::System.String>>(
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
null
#line default
#line hidden
#nullable disable
);
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
}
));
#pragma warning disable BL0005
((global::Test.TestComponent)default).
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
Data
#line default
#line hidden
#nullable disable
= default;
#pragma warning restore BL0005
#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(global::Test.TestComponent);
#line default
#line hidden
#nullable disable
}
#pragma warning restore 1998
#nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
private class System
{
private class String
{
}
}
[Parameter]
public List<global::System.String> Data { get; set; }
#line default
#line hidden
#nullable disable
}
}
#pragma warning restore 1591

Просмотреть файл

@ -0,0 +1,23 @@
Document -
NamespaceDeclaration - - Test
UsingDirective - (3:1,1 [20] ) - global::System
UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic
UsingDirective - (69:3,1 [25] ) - global::System.Linq
UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks
UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components
ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase -
DesignTimeDirective -
CSharpCode -
IntermediateToken - - CSharp - #pragma warning disable 0414
CSharpCode -
IntermediateToken - - CSharp - private static object __o = null;
CSharpCode -
IntermediateToken - - CSharp - #pragma warning restore 0414
MethodDeclaration - - protected override - void - BuildRenderTree
Component - (0:0,0 [29] x:\dir\subdir\Test\TestComponent.cshtml) - TestComponent
ComponentAttribute - (21:0,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Data - Data - AttributeStructure.DoubleQuotes
LazyIntermediateToken - (21:0,21 [4] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - null
HtmlContent - (29:0,29 [4] x:\dir\subdir\Test\TestComponent.cshtml)
LazyIntermediateToken - (29:0,29 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n
CSharpCode - (40:2,7 [172] x:\dir\subdir\Test\TestComponent.cshtml)
LazyIntermediateToken - (40:2,7 [172] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private class System\n {\n private class String\n {\n }\n }\n\n [Parameter]\n public List<global::System.String> Data { get; set; }\n

Просмотреть файл

@ -0,0 +1,35 @@
Source Location: (21:0,21 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|null|
Generated Location: (1172:29,21 [4] )
|null|
Source Location: (15:0,15 [4] x:\dir\subdir\Test\TestComponent.cshtml)
|Data|
Generated Location: (1588:42,15 [4] )
|Data|
Source Location: (40:2,7 [172] x:\dir\subdir\Test\TestComponent.cshtml)
|
private class System
{
private class String
{
}
}
[Parameter]
public List<global::System.String> Data { get; set; }
|
Generated Location: (2002:60,7 [172] )
|
private class System
{
private class String
{
}
}
[Parameter]
public List<global::System.String> Data { get; set; }
|

Просмотреть файл

@ -54,7 +54,7 @@ namespace Test
#line default
#line hidden
#nullable disable
__o = new global::Microsoft.AspNetCore.Components.RenderFragment<Test.Context>(
__o = new global::Microsoft.AspNetCore.Components.RenderFragment<global::Test.Context>(
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
template

Просмотреть файл

@ -20,11 +20,11 @@ Generated Location: (1740:51,107 [2] )
Source Location: (136:1,24 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|template|
Generated Location: (1981:59,24 [8] )
Generated Location: (1989:59,24 [8] )
|template|
Source Location: (125:1,13 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|Template|
Generated Location: (2397:72,13 [8] )
Generated Location: (2405:72,13 [8] )
|Template|

Просмотреть файл

@ -47,7 +47,7 @@ namespace Test
#line default
#line hidden
#nullable disable
__o = new global::Microsoft.AspNetCore.Components.RenderFragment<Test.Person>(
__o = new global::Microsoft.AspNetCore.Components.RenderFragment<global::Test.Person>(
#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
template

Просмотреть файл

@ -15,11 +15,11 @@ Generated Location: (1465:44,73 [2] )
Source Location: (108:1,30 [8] x:\dir\subdir\Test\TestComponent.cshtml)
|template|
Generated Location: (1711:52,30 [8] )
Generated Location: (1719:52,30 [8] )
|template|
Source Location: (91:1,13 [14] x:\dir\subdir\Test\TestComponent.cshtml)
|PersonTemplate|
Generated Location: (2127:65,13 [14] )
Generated Location: (2135:65,13 [14] )
|PersonTemplate|

Просмотреть файл

@ -36,7 +36,7 @@ ParentValue
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::Microsoft.AspNetCore.Components.EventCallback<global::System.Int32>>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create<global::System.Int32>(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue))));
__builder.AddComponentParameter(3, nameof(global::Test.MyComponent.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.Int32>>>(() => ParentValue));
__builder.AddComponentParameter(3, nameof(global::Test.MyComponent.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.Int32>>>(() => ParentValue));
__builder.CloseComponent();
}
#pragma warning restore 1998

Просмотреть файл

@ -12,7 +12,7 @@ Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2174:44,0 [50] )
Generated Location: (2190:44,0 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -35,7 +35,7 @@ ParentValue
#line hidden
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.OnChanged), (global::System.Action<System.Int32>)(__value => ParentValue = __value));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.OnChanged), (global::System.Action<global::System.Int32>)(__value => ParentValue = __value));
__builder.CloseComponent();
}
#pragma warning restore 1998

Просмотреть файл

@ -12,7 +12,7 @@ Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1560:43,0 [50] )
Generated Location: (1568:43,0 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -35,8 +35,8 @@ ParentValue
#line hidden
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<System.Int32>)(__value => ParentValue = __value));
__builder.AddComponentParameter(3, nameof(global::Test.MyComponent.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.Int32>>>(() => ParentValue));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<global::System.Int32>)(__value => ParentValue = __value));
__builder.AddComponentParameter(3, nameof(global::Test.MyComponent.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.Int32>>>(() => ParentValue));
__builder.CloseComponent();
}
#pragma warning restore 1998

Просмотреть файл

@ -12,7 +12,7 @@ Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1835:44,0 [50] )
Generated Location: (1859:44,0 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -35,7 +35,7 @@ ParentValue
#line hidden
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<System.Int32>)(__value => ParentValue = __value));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<global::System.Int32>)(__value => ParentValue = __value));
__builder.CloseComponent();
}
#pragma warning restore 1998

Просмотреть файл

@ -12,7 +12,7 @@ Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1563:43,0 [50] )
Generated Location: (1571:43,0 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -35,7 +35,7 @@ ParentValue
#line hidden
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.dynamic.ValueChanged), (global::System.Action<System.Int32>)(__value => ParentValue = __value));
__builder.AddComponentParameter(2, nameof(global::Test.dynamic.ValueChanged), (global::System.Action<global::System.Int32>)(__value => ParentValue = __value));
__builder.CloseComponent();
}
#pragma warning restore 1998

Просмотреть файл

@ -12,7 +12,7 @@ Source Location: (46:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1551:43,0 [50] )
Generated Location: (1559:43,0 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -35,7 +35,7 @@ ParentValue
#line hidden
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.@int.ValueChanged), (global::System.Action<System.Int32>)(__value => ParentValue = __value));
__builder.AddComponentParameter(2, nameof(global::Test.@int.ValueChanged), (global::System.Action<global::System.Int32>)(__value => ParentValue = __value));
__builder.CloseComponent();
}
#pragma warning restore 1998

Просмотреть файл

@ -12,7 +12,7 @@ Source Location: (42:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1542:43,0 [50] )
Generated Location: (1550:43,0 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -35,7 +35,7 @@ ParentValue
#line hidden
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::MyComponent.ValueChanged), (global::System.Action<System.Int32>)(__value => ParentValue = __value));
__builder.AddComponentParameter(2, nameof(global::MyComponent.ValueChanged), (global::System.Action<global::System.Int32>)(__value => ParentValue = __value));
__builder.CloseComponent();
}
#pragma warning restore 1998

Просмотреть файл

@ -12,7 +12,7 @@ Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1548:43,0 [50] )
Generated Location: (1556:43,0 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -35,7 +35,7 @@ ParentValue
#line hidden
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<System.Int32>)(__value => ParentValue = __value));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<global::System.Int32>)(__value => ParentValue = __value));
__builder.CloseComponent();
}
#pragma warning restore 1998

Просмотреть файл

@ -14,7 +14,7 @@ Source Location: (50:1,7 [105] x:\dir\subdir\Test\TestComponent.cshtml)
public string nameof(string s) => string.Empty;
|
Generated Location: (1563:43,0 [105] )
Generated Location: (1571:43,0 [105] )
|
public int ParentValue { get; set; } = 42;

Просмотреть файл

@ -35,7 +35,7 @@ ParentValue
#line hidden
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<System.Int32>)(__value => ParentValue = __value));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<global::System.Int32>)(__value => ParentValue = __value));
__builder.CloseComponent();
}
#pragma warning restore 1998

Просмотреть файл

@ -12,7 +12,7 @@ Source Location: (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "42";
|
Generated Location: (1563:43,0 [55] )
Generated Location: (1571:43,0 [55] )
|
public string ParentValue { get; set; } = "42";
|

Просмотреть файл

@ -35,7 +35,7 @@ ParentValue
#line hidden
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<System.Int32>)( __value => { ParentValue = __value; global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeSynchronousDelegate(
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<global::System.Int32>)( __value => { ParentValue = __value; global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeSynchronousDelegate(
#nullable restore
#line (1,63)-(1,69) "x:\dir\subdir\Test\TestComponent.cshtml"
Update

Просмотреть файл

@ -10,7 +10,7 @@ Generated Location: (1144:31,0 [11] )
Source Location: (62:0,62 [6] x:\dir\subdir\Test\TestComponent.cshtml)
|Update|
Generated Location: (1575:40,0 [6] )
Generated Location: (1583:40,0 [6] )
|Update|
Source Location: (81:1,7 [82] x:\dir\subdir\Test\TestComponent.cshtml)
@ -19,7 +19,7 @@ Source Location: (81:1,7 [82] x:\dir\subdir\Test\TestComponent.cshtml)
public void Update() { }
|
Generated Location: (1824:51,0 [82] )
Generated Location: (1832:51,0 [82] )
|
public int ParentValue { get; set; } = 42;

Просмотреть файл

@ -35,7 +35,7 @@ ParentValue
#line hidden
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<System.Int32>)( __value => { ParentValue = __value; global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeSynchronousDelegate(
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<global::System.Int32>)( __value => { ParentValue = __value; global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeSynchronousDelegate(
#nullable restore
#line (1,63)-(1,72) "x:\dir\subdir\Test\TestComponent.cshtml"
() => { }

Просмотреть файл

@ -10,14 +10,14 @@ Generated Location: (1144:31,0 [11] )
Source Location: (62:0,62 [9] x:\dir\subdir\Test\TestComponent.cshtml)
|() => { }|
Generated Location: (1575:40,0 [9] )
Generated Location: (1583:40,0 [9] )
|() => { }|
Source Location: (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1827:51,0 [50] )
Generated Location: (1835:51,0 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -35,7 +35,7 @@ ParentValue
#line hidden
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<System.Int32>)(
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<global::System.Int32>)(
#nullable restore
#line (1,61)-(1,123) "x:\dir\subdir\Test\TestComponent.cshtml"
(value => { ParentValue = value; return Task.CompletedTask; })

Просмотреть файл

@ -10,14 +10,14 @@ Generated Location: (1144:31,0 [11] )
Source Location: (60:0,60 [62] x:\dir\subdir\Test\TestComponent.cshtml)
|(value => { ParentValue = value; return Task.CompletedTask; })|
Generated Location: (1441:40,0 [62] )
Generated Location: (1449:40,0 [62] )
|(value => { ParentValue = value; return Task.CompletedTask; })|
Source Location: (135:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1742:51,0 [50] )
Generated Location: (1750:51,0 [50] )
|
public int ParentValue { get; set; } = 42;
|

Просмотреть файл

@ -35,7 +35,7 @@ ParentValue
#line hidden
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Func<System.Int32, System.Threading.Tasks.Task>)(async __value => { ParentValue = __value; await global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Func<global::System.Int32, global::System.Threading.Tasks.Task>)(async __value => { ParentValue = __value; await global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(
#nullable restore
#line (1,63)-(1,69) "x:\dir\subdir\Test\TestComponent.cshtml"
Update

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше