Skip to content

Commit a3ee54d

Browse files
committed
Merge remote-tracking branch 'upstream/main' into CohostSpellCheck
# Conflicts: # eng/targets/Services.props # src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Remote/RazorServices.cs
2 parents b69b08c + 49e727b commit a3ee54d

File tree

188 files changed

+2419
-510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+2419
-510
lines changed

eng/targets/Services.props

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
<ServiceHubService Include="Microsoft.VisualStudio.Razor.GoToDefinition" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteGoToDefinitionService+Factory" />
3030
<ServiceHubService Include="Microsoft.VisualStudio.Razor.Rename" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteRenameService+Factory" />
3131
<ServiceHubService Include="Microsoft.VisualStudio.Razor.AutoInsert" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteAutoInsertService+Factory" />
32+
<ServiceHubService Include="Microsoft.VisualStudio.Razor.Formatting" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteFormattingService+Factory" />
33+
<ServiceHubService Include="Microsoft.VisualStudio.Razor.GoToImplementation" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteGoToImplementationService+Factory" />
3234
<ServiceHubService Include="Microsoft.VisualStudio.Razor.SpellCheck" ClassName="Microsoft.CodeAnalysis.Remote.Razor.RemoteSpellCheckService+Factory" />
3335
</ItemGroup>
3436
</Project>

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentCodeGenerationTestBase.cs

+40-15
Original file line numberDiff line numberDiff line change
@@ -2336,9 +2336,9 @@ public class MyComponent : ComponentBase
23362336
: [// x:\dir\subdir\Test\TestComponent.cshtml(1,27): error CS1503: Argument 1: cannot convert from 'string' to 'int'
23372337
// ParentValue
23382338
Diagnostic(ErrorCode.ERR_BadArgType, "ParentValue").WithArguments("1", "string", "int").WithLocation(1, 27),
2339-
// (38,158): error CS0029: Cannot implicitly convert type 'int' to 'string'
2340-
// __builder.AddComponentParameter(2, "ValueChanged", (global::System.Action<System.Int32>)(__value => ParentValue = __value));
2341-
Diagnostic(ErrorCode.ERR_NoImplicitConv, "__value").WithArguments("int", "string").WithLocation(38, 158)]);
2339+
// (38,166): error CS0029: Cannot implicitly convert type 'int' to 'string'
2340+
// __builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<global::System.Int32>)(__value => ParentValue = __value));
2341+
Diagnostic(ErrorCode.ERR_NoImplicitConv, "__value").WithArguments("int", "string").WithLocation(38, 166)]);
23422342
}
23432343

23442344
[IntegrationTestFact]
@@ -2616,18 +2616,18 @@ public class MyComponent : ComponentBase
26162616

26172617

26182618
CompileToAssembly(generated, DesignTime
2619-
? [// (31,179): error CS0029: Cannot implicitly convert type 'int' to 'string'
2620-
// __builder.AddComponentParameter(3, "ValueExpression", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.String>>>(() => ParentValue));
2621-
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ParentValue").WithArguments("int", "string").WithLocation(38, 179),
2622-
// (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
2623-
// __builder.AddComponentParameter(3, "ValueExpression", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.String>>>(() => ParentValue));
2624-
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "ParentValue").WithArguments("lambda expression").WithLocation(38, 179)]
2625-
: [// (39,258): error CS0029: Cannot implicitly convert type 'int' to 'string'
2626-
// __builder.AddComponentParameter(3, "ValueExpression", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.String>>>(() => ParentValue));
2627-
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ParentValue").WithArguments("int", "string").WithLocation(39, 258),
2628-
// (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
2629-
// __builder.AddComponentParameter(3, "ValueExpression", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.String>>>(() => ParentValue));
2630-
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "ParentValue").WithArguments("lambda expression").WithLocation(39, 258)
2619+
? [// (38,195): error CS0029: Cannot implicitly convert type 'int' to 'string'
2620+
// __o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => ParentValue);
2621+
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ParentValue").WithArguments("int", "string").WithLocation(38, 195),
2622+
// (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
2623+
// __o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.String>>>(() => ParentValue);
2624+
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "ParentValue").WithArguments("lambda expression").WithLocation(38, 195)]
2625+
: [// (39,274): error CS0029: Cannot implicitly convert type 'int' to 'string'
2626+
// __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));
2627+
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ParentValue").WithArguments("int", "string").WithLocation(39, 274),
2628+
// (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
2629+
// __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));
2630+
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "ParentValue").WithArguments("lambda expression").WithLocation(39, 274)
26312631
]);
26322632
}
26332633

@@ -8743,6 +8743,31 @@ public class MyComponent<TService, TKey> : ComponentBase
87438743
CompileToAssembly(generated);
87448744
}
87458745

8746+
[IntegrationTestFact, WorkItem("https://github.com/dotnet/razor/issues/10827")]
8747+
public void GenericTypeCheck()
8748+
{
8749+
var generated = CompileToCSharp("""
8750+
<TestComponent Data="null" />
8751+
8752+
@code {
8753+
private class System
8754+
{
8755+
private class String
8756+
{
8757+
}
8758+
}
8759+
8760+
[Parameter]
8761+
public List<global::System.String> Data { get; set; }
8762+
}
8763+
""");
8764+
8765+
// Assert
8766+
AssertDocumentNodeMatchesBaseline(generated.CodeDocument);
8767+
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
8768+
CompileToAssembly(generated);
8769+
}
8770+
87468771
#endregion
87478772

87488773
#region Key

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.codegen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
3535
);
3636
__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,
3737
global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)));
38-
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.Int32>>>(() => ParentValue);
38+
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.Int32>>>(() => ParentValue);
3939
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
4040
}
4141
));

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Generated Location: (1135:29,26 [11] )
55

66
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
77
|Value|
8-
Generated Location: (2197:45,19 [5] )
8+
Generated Location: (2213:45,19 [5] )
99
|Value|
1010

1111
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
1212
|
1313
public int ParentValue { get; set; } = 42;
1414
|
15-
Generated Location: (2610:63,7 [50] )
15+
Generated Location: (2626:63,7 [50] )
1616
|
1717
public int ParentValue { get; set; } = 42;
1818
|

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
3333
#line hidden
3434
#nullable disable
3535
);
36-
__o = new global::System.Action<System.Int32>(
36+
__o = new global::System.Action<global::System.Int32>(
3737
__value => ParentValue = __value);
3838
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
3939
}

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ Generated Location: (1135:29,26 [11] )
55

66
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
77
|Value|
8-
Generated Location: (1668:44,19 [5] )
8+
Generated Location: (1676:44,19 [5] )
99
|Value|
1010

1111
Source Location: (45:0,45 [5] x:\dir\subdir\Test\TestComponent.cshtml)
1212
|Value|
13-
Generated Location: (1915:53,45 [5] )
13+
Generated Location: (1923:53,45 [5] )
1414
|Value|
1515

1616
Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
1717
|
1818
public int ParentValue { get; set; } = 42;
1919
|
20-
Generated Location: (2328:71,7 [50] )
20+
Generated Location: (2336:71,7 [50] )
2121
|
2222
public int ParentValue { get; set; } = 42;
2323
|

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.codegen.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
3333
#line hidden
3434
#nullable disable
3535
);
36-
__o = new global::System.Action<System.Int32>(
36+
__o = new global::System.Action<global::System.Int32>(
3737
__value => ParentValue = __value);
38-
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.Int32>>>(() => ParentValue);
38+
__o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<global::System.Func<global::System.Int32>>>(() => ParentValue);
3939
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
4040
}
4141
));

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Generated Location: (1135:29,26 [11] )
55

66
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
77
|Value|
8-
Generated Location: (1860:45,19 [5] )
8+
Generated Location: (1884:45,19 [5] )
99
|Value|
1010

1111
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
1212
|
1313
public int ParentValue { get; set; } = 42;
1414
|
15-
Generated Location: (2273:63,7 [50] )
15+
Generated Location: (2297:63,7 [50] )
1616
|
1717
public int ParentValue { get; set; } = 42;
1818
|

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
3333
#line hidden
3434
#nullable disable
3535
);
36-
__o = new global::System.Action<System.Int32>(
36+
__o = new global::System.Action<global::System.Int32>(
3737
__value => ParentValue = __value);
3838
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
3939
}

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Generated Location: (1135:29,26 [11] )
55

66
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
77
|Value|
8-
Generated Location: (1668:44,19 [5] )
8+
Generated Location: (1676:44,19 [5] )
99
|Value|
1010

1111
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
1212
|
1313
public int ParentValue { get; set; } = 42;
1414
|
15-
Generated Location: (2081:62,7 [50] )
15+
Generated Location: (2089:62,7 [50] )
1616
|
1717
public int ParentValue { get; set; } = 42;
1818
|

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.codegen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
3333
#line hidden
3434
#nullable disable
3535
);
36-
__o = new global::System.Action<System.Int32>(
36+
__o = new global::System.Action<global::System.Int32>(
3737
__value => ParentValue = __value);
3838
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
3939
}

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.mappings.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Generated Location: (1131:29,22 [11] )
55

66
Source Location: (15:0,15 [5] x:\dir\subdir\Test\TestComponent.cshtml)
77
|Value|
8-
Generated Location: (1656:44,15 [5] )
8+
Generated Location: (1664:44,15 [5] )
99
|Value|
1010

1111
Source Location: (46:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
1212
|
1313
public int ParentValue { get; set; } = 42;
1414
|
15-
Generated Location: (2065:62,7 [50] )
15+
Generated Location: (2073:62,7 [50] )
1616
|
1717
public int ParentValue { get; set; } = 42;
1818
|

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.codegen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
3333
#line hidden
3434
#nullable disable
3535
);
36-
__o = new global::System.Action<System.Int32>(
36+
__o = new global::System.Action<global::System.Int32>(
3737
__value => ParentValue = __value);
3838
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
3939
}

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.mappings.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Generated Location: (1127:29,18 [11] )
55

66
Source Location: (11:0,11 [5] x:\dir\subdir\Test\TestComponent.cshtml)
77
|Value|
8-
Generated Location: (1645:44,11 [5] )
8+
Generated Location: (1653:44,11 [5] )
99
|Value|
1010

1111
Source Location: (42:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
1212
|
1313
public int ParentValue { get; set; } = 42;
1414
|
15-
Generated Location: (2051:62,7 [50] )
15+
Generated Location: (2059:62,7 [50] )
1616
|
1717
public int ParentValue { get; set; } = 42;
1818
|

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.codegen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
3333
#line hidden
3434
#nullable disable
3535
);
36-
__o = new global::System.Action<System.Int32>(
36+
__o = new global::System.Action<global::System.Int32>(
3737
__value => ParentValue = __value);
3838
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
3939
}

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.mappings.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Generated Location: (1135:29,26 [11] )
55

66
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
77
|Value|
8-
Generated Location: (1663:44,19 [5] )
8+
Generated Location: (1671:44,19 [5] )
99
|Value|
1010

1111
Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
1212
|
1313
public int ParentValue { get; set; } = 42;
1414
|
15-
Generated Location: (2071:62,7 [50] )
15+
Generated Location: (2079:62,7 [50] )
1616
|
1717
public int ParentValue { get; set; } = 42;
1818
|

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.codegen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
3333
#line hidden
3434
#nullable disable
3535
);
36-
__o = new global::System.Action<System.Int32>(
36+
__o = new global::System.Action<global::System.Int32>(
3737
__value => ParentValue = __value);
3838
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
3939
}

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.mappings.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Generated Location: (1135:29,26 [11] )
55

66
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
77
|Value|
8-
Generated Location: (1668:44,19 [5] )
8+
Generated Location: (1676:44,19 [5] )
99
|Value|
1010

1111
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)
1414

1515
public string nameof(string s) => string.Empty;
1616
|
17-
Generated Location: (2081:62,7 [105] )
17+
Generated Location: (2089:62,7 [105] )
1818
|
1919
public int ParentValue { get; set; } = 42;
2020

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
3333
#line hidden
3434
#nullable disable
3535
);
36-
__o = new global::System.Action<System.Int32>(
36+
__o = new global::System.Action<global::System.Int32>(
3737
__value => ParentValue = __value);
3838
__builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
3939
}

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Generated Location: (1135:29,26 [11] )
55

66
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
77
|Value|
8-
Generated Location: (1668:44,19 [5] )
8+
Generated Location: (1676:44,19 [5] )
99
|Value|
1010

1111
Source Location: (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml)
1212
|
1313
public string ParentValue { get; set; } = "42";
1414
|
15-
Generated Location: (2081:62,7 [55] )
15+
Generated Location: (2089:62,7 [55] )
1616
|
1717
public string ParentValue { get; set; } = "42";
1818
|

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.codegen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
3333
#line hidden
3434
#nullable disable
3535
);
36-
__o = new global::System.Action<System.Int32>(
36+
__o = new global::System.Action<global::System.Int32>(
3737
__value => { ParentValue = __value; global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeSynchronousDelegate(
3838
#nullable restore
3939
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.mappings.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ Generated Location: (1139:29,30 [11] )
55

66
Source Location: (62:0,62 [6] x:\dir\subdir\Test\TestComponent.cshtml)
77
|Update|
8-
Generated Location: (1559:39,62 [6] )
8+
Generated Location: (1567:39,62 [6] )
99
|Update|
1010

1111
Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml)
1212
|Value|
13-
Generated Location: (1983:52,19 [5] )
13+
Generated Location: (1991:52,19 [5] )
1414
|Value|
1515

1616
Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
1717
|Value|
18-
Generated Location: (2234:61,49 [5] )
18+
Generated Location: (2242:61,49 [5] )
1919
|Value|
2020

2121
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)
2424

2525
public void Update() { }
2626
|
27-
Generated Location: (2647:79,7 [82] )
27+
Generated Location: (2655:79,7 [82] )
2828
|
2929
public int ParentValue { get; set; } = 42;
3030

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.codegen.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
3333
#line hidden
3434
#nullable disable
3535
);
36-
__o = new global::System.Action<System.Int32>(
36+
__o = new global::System.Action<global::System.Int32>(
3737
__value => { ParentValue = __value; global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeSynchronousDelegate(
3838
#nullable restore
3939
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"

0 commit comments

Comments
 (0)