Skip to content

Commit 3df065d

Browse files
committed
Update baselines
1 parent 94e4be6 commit 3df065d

File tree

345 files changed

+3412
-513
lines changed

Some content is hidden

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

345 files changed

+3412
-513
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,9 +1797,9 @@ public class MyComponent : ComponentBase
17971797
: [// x:\dir\subdir\Test\TestComponent.cshtml(1,27): error CS1503: Argument 1: cannot convert from 'string' to 'int'
17981798
// ParentValue
17991799
Diagnostic(ErrorCode.ERR_BadArgType, "ParentValue").WithArguments("1", "string", "int").WithLocation(1, 27),
1800-
// (30,158): error CS0029: Cannot implicitly convert type 'int' to 'string'
1800+
// (38,158): error CS0029: Cannot implicitly convert type 'int' to 'string'
18011801
// __builder.AddComponentParameter(2, "ValueChanged", (global::System.Action<System.Int32>)(__value => ParentValue = __value));
1802-
Diagnostic(ErrorCode.ERR_NoImplicitConv, "__value").WithArguments("int", "string").WithLocation(30, 158)]);
1802+
Diagnostic(ErrorCode.ERR_NoImplicitConv, "__value").WithArguments("int", "string").WithLocation(38, 158)]);
18031803
}
18041804

18051805
[IntegrationTestFact]
@@ -1876,9 +1876,9 @@ public class MyComponent : ComponentBase
18761876
: [// x:\dir\subdir\Test\TestComponent.cshtml(1,27): error CS1503: Argument 1: cannot convert from 'string' to 'int'
18771877
// ParentValue
18781878
Diagnostic(ErrorCode.ERR_BadArgType, "ParentValue").WithArguments("1", "string", "int").WithLocation(1, 27),
1879-
// (30,351): error CS1503: Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<string>' to 'Microsoft.AspNetCore.Components.EventCallback'
1879+
// (38,351): error CS1503: Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback<string>' to 'Microsoft.AspNetCore.Components.EventCallback'
18801880
// global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)));
1881-
Diagnostic(ErrorCode.ERR_BadArgType, "global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)").WithArguments("2", "Microsoft.AspNetCore.Components.EventCallback<string>", "Microsoft.AspNetCore.Components.EventCallback").WithLocation(30, 351)
1881+
Diagnostic(ErrorCode.ERR_BadArgType, "global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)").WithArguments("2", "Microsoft.AspNetCore.Components.EventCallback<string>", "Microsoft.AspNetCore.Components.EventCallback").WithLocation(38, 351)
18821882
]
18831883
);
18841884
}
@@ -2083,12 +2083,12 @@ public class MyComponent : ComponentBase
20832083
// (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
20842084
// __builder.AddComponentParameter(3, "ValueExpression", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.String>>>(() => ParentValue));
20852085
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "ParentValue").WithArguments("lambda expression").WithLocation(38, 179)]
2086-
: [// (31,258): error CS0029: Cannot implicitly convert type 'int' to 'string'
2086+
: [// (39,258): error CS0029: Cannot implicitly convert type 'int' to 'string'
20872087
// __builder.AddComponentParameter(3, "ValueExpression", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.String>>>(() => ParentValue));
2088-
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ParentValue").WithArguments("int", "string").WithLocation(31, 258),
2089-
// (31,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
2088+
Diagnostic(ErrorCode.ERR_NoImplicitConv, "ParentValue").WithArguments("int", "string").WithLocation(39, 258),
2089+
// (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
20902090
// __builder.AddComponentParameter(3, "ValueExpression", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Linq.Expressions.Expression<System.Func<System.String>>>(() => ParentValue));
2091-
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "ParentValue").WithArguments("lambda expression").WithLocation(31, 258)
2091+
Diagnostic(ErrorCode.ERR_CantConvAnonMethReturns, "ParentValue").WithArguments("lambda expression").WithLocation(39, 258)
20922092
]);
20932093
}
20942094

@@ -10364,9 +10364,9 @@ public class MyComponent : ComponentBase
1036410364
: [// x:\dir\subdir\Test\TestComponent.cshtml(1,32): error CS1003: Syntax error, ',' expected
1036510365
// x
1036610366
Diagnostic(ErrorCode.ERR_SyntaxError, "").WithArguments(",").WithLocation(1, 32),
10367-
// (27,169): error CS1501: No overload for method 'TypeCheck' takes 2 arguments
10367+
// (29,88): error CS1501: No overload for method 'TypeCheck' takes 2 arguments
1036810368
// __o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.String>(
10369-
Diagnostic(ErrorCode.ERR_BadArgCount, "TypeCheck<global::System.String>").WithArguments("TypeCheck", "2").WithLocation(21, 169)]
10369+
Diagnostic(ErrorCode.ERR_BadArgCount, "TypeCheck<global::System.String>").WithArguments("TypeCheck", "2").WithLocation(29, 88)]
1037010370
);
1037110371
Assert.NotEmpty(generated.RazorDiagnostics);
1037210372
}

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.codegen.cs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,24 @@ internal static class TypeInference
5555
public static void CreateMyComponent_0<T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::Test.MyClass<T> __arg0, int __seq1, global::System.Boolean __arg1)
5656
{
5757
__builder.OpenComponent<global::Test.MyComponent<T>>(seq);
58-
__builder.AddAttribute(__seq0, nameof(global::Test.MyComponent<T>.MyParameter), (object)__arg0);
59-
__builder.AddAttribute(__seq1, nameof(global::Test.MyComponent<T>.BoolParameter), (object)__arg1);
58+
__builder.AddAttribute(__seq0, nameof(global::Test.MyComponent<T>.
59+
#nullable restore
60+
#line (1,14)-(1,25) "x:\dir\subdir\Test\TestComponent.cshtml"
61+
MyParameter
62+
63+
#line default
64+
#line hidden
65+
#nullable disable
66+
), (object)__arg0);
67+
__builder.AddAttribute(__seq1, nameof(global::Test.MyComponent<T>.
68+
#nullable restore
69+
#line (1,30)-(1,43) "x:\dir\subdir\Test\TestComponent.cshtml"
70+
BoolParameter
71+
72+
#line default
73+
#line hidden
74+
#nullable disable
75+
), (object)__arg1);
6076
__builder.CloseComponent();
6177
}
6278
}

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.mappings.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,13 @@ Generated Location: (1189:40,0 [42] )
1717
private MyClass<string> c = new();
1818
|
1919

20+
Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml)
21+
|MyParameter|
22+
Generated Location: (1864:60,0 [11] )
23+
|MyParameter|
24+
25+
Source Location: (29:0,29 [13] x:\dir\subdir\Test\TestComponent.cshtml)
26+
|BoolParameter|
27+
Generated Location: (2114:69,0 [13] )
28+
|BoolParameter|
29+

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.codegen.cs

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,51 @@ internal static class TypeInference
7171
public static void CreateMyComponent_0<T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.Boolean __arg0, int __seq1, global::System.String __arg1, int __seq2, global::System.Delegate __arg2, int __seq3, global::System.Object __arg3, int __seq4, global::Test.MyClass<T> __arg4, int __seq5, global::Microsoft.AspNetCore.Components.EventCallback<global::Test.MyClass<T>> __arg5)
7272
{
7373
__builder.OpenComponent<global::Test.MyComponent<T>>(seq);
74-
__builder.AddAttribute(__seq0, nameof(global::Test.MyComponent<T>.BoolParameter), (object)__arg0);
75-
__builder.AddAttribute(__seq1, nameof(global::Test.MyComponent<T>.StringParameter), (object)__arg1);
76-
__builder.AddAttribute(__seq2, nameof(global::Test.MyComponent<T>.DelegateParameter), (object)__arg2);
77-
__builder.AddAttribute(__seq3, nameof(global::Test.MyComponent<T>.ObjectParameter), (object)__arg3);
78-
__builder.AddAttribute(__seq4, nameof(global::Test.MyComponent<T>.MyParameter), (object)__arg4);
74+
__builder.AddAttribute(__seq0, nameof(global::Test.MyComponent<T>.
75+
#nullable restore
76+
#line (2,5)-(2,18) "x:\dir\subdir\Test\TestComponent.cshtml"
77+
BoolParameter
78+
79+
#line default
80+
#line hidden
81+
#nullable disable
82+
), (object)__arg0);
83+
__builder.AddAttribute(__seq1, nameof(global::Test.MyComponent<T>.
84+
#nullable restore
85+
#line (3,5)-(3,20) "x:\dir\subdir\Test\TestComponent.cshtml"
86+
StringParameter
87+
88+
#line default
89+
#line hidden
90+
#nullable disable
91+
), (object)__arg1);
92+
__builder.AddAttribute(__seq2, nameof(global::Test.MyComponent<T>.
93+
#nullable restore
94+
#line (4,5)-(4,22) "x:\dir\subdir\Test\TestComponent.cshtml"
95+
DelegateParameter
96+
97+
#line default
98+
#line hidden
99+
#nullable disable
100+
), (object)__arg2);
101+
__builder.AddAttribute(__seq3, nameof(global::Test.MyComponent<T>.
102+
#nullable restore
103+
#line (5,5)-(5,20) "x:\dir\subdir\Test\TestComponent.cshtml"
104+
ObjectParameter
105+
106+
#line default
107+
#line hidden
108+
#nullable disable
109+
), (object)__arg3);
110+
__builder.AddAttribute(__seq4, nameof(global::Test.MyComponent<T>.
111+
#nullable restore
112+
#line (1,20)-(1,31) "x:\dir\subdir\Test\TestComponent.cshtml"
113+
MyParameter
114+
115+
#line default
116+
#line hidden
117+
#nullable disable
118+
), (object)__arg4);
79119
__builder.AddAttribute(__seq5, nameof(global::Test.MyComponent<T>.MyParameterChanged), (object)__arg5);
80120
__builder.CloseComponent();
81121
}

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.mappings.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,28 @@ Generated Location: (1731:56,0 [42] )
2727
private MyClass<string> c = new();
2828
|
2929

30+
Source Location: (40:1,4 [13] x:\dir\subdir\Test\TestComponent.cshtml)
31+
|BoolParameter|
32+
Generated Location: (2632:76,0 [13] )
33+
|BoolParameter|
34+
35+
Source Location: (66:2,4 [15] x:\dir\subdir\Test\TestComponent.cshtml)
36+
|StringParameter|
37+
Generated Location: (2883:85,0 [15] )
38+
|StringParameter|
39+
40+
Source Location: (93:3,4 [17] x:\dir\subdir\Test\TestComponent.cshtml)
41+
|DelegateParameter|
42+
Generated Location: (3136:94,0 [17] )
43+
|DelegateParameter|
44+
45+
Source Location: (128:4,4 [15] x:\dir\subdir\Test\TestComponent.cshtml)
46+
|ObjectParameter|
47+
Generated Location: (3391:103,0 [15] )
48+
|ObjectParameter|
49+
50+
Source Location: (19:0,19 [11] x:\dir\subdir\Test\TestComponent.cshtml)
51+
|MyParameter|
52+
Generated Location: (3645:112,0 [11] )
53+
|MyParameter|
54+

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.codegen.cs

Lines changed: 54 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,60 @@ internal static class TypeInference
7979
public static void CreateMyComponent_0<T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::Test.MyClass<T> __arg0, int __seq1, global::Microsoft.AspNetCore.Components.EventCallback __arg1, int __seq2, global::System.Boolean __arg2, int __seq3, global::System.String __arg3, int __seq4, global::System.Delegate __arg4, int __seq5, global::System.Object __arg5)
8080
{
8181
__builder.OpenComponent<global::Test.MyComponent<T>>(seq);
82-
__builder.AddAttribute(__seq0, nameof(global::Test.MyComponent<T>.MyParameter), (object)__arg0);
83-
__builder.AddAttribute(__seq1, nameof(global::Test.MyComponent<T>.MyEvent), (object)__arg1);
84-
__builder.AddAttribute(__seq2, nameof(global::Test.MyComponent<T>.BoolParameter), (object)__arg2);
85-
__builder.AddAttribute(__seq3, nameof(global::Test.MyComponent<T>.StringParameter), (object)__arg3);
86-
__builder.AddAttribute(__seq4, nameof(global::Test.MyComponent<T>.DelegateParameter), (object)__arg4);
87-
__builder.AddAttribute(__seq5, nameof(global::Test.MyComponent<T>.ObjectParameter), (object)__arg5);
82+
__builder.AddAttribute(__seq0, nameof(global::Test.MyComponent<T>.
83+
#nullable restore
84+
#line (1,14)-(1,25) "x:\dir\subdir\Test\TestComponent.cshtml"
85+
MyParameter
86+
87+
#line default
88+
#line hidden
89+
#nullable disable
90+
), (object)__arg0);
91+
__builder.AddAttribute(__seq1, nameof(global::Test.MyComponent<T>.
92+
#nullable restore
93+
#line (2,5)-(2,12) "x:\dir\subdir\Test\TestComponent.cshtml"
94+
MyEvent
95+
96+
#line default
97+
#line hidden
98+
#nullable disable
99+
), (object)__arg1);
100+
__builder.AddAttribute(__seq2, nameof(global::Test.MyComponent<T>.
101+
#nullable restore
102+
#line (3,5)-(3,18) "x:\dir\subdir\Test\TestComponent.cshtml"
103+
BoolParameter
104+
105+
#line default
106+
#line hidden
107+
#nullable disable
108+
), (object)__arg2);
109+
__builder.AddAttribute(__seq3, nameof(global::Test.MyComponent<T>.
110+
#nullable restore
111+
#line (4,5)-(4,20) "x:\dir\subdir\Test\TestComponent.cshtml"
112+
StringParameter
113+
114+
#line default
115+
#line hidden
116+
#nullable disable
117+
), (object)__arg3);
118+
__builder.AddAttribute(__seq4, nameof(global::Test.MyComponent<T>.
119+
#nullable restore
120+
#line (5,5)-(5,22) "x:\dir\subdir\Test\TestComponent.cshtml"
121+
DelegateParameter
122+
123+
#line default
124+
#line hidden
125+
#nullable disable
126+
), (object)__arg4);
127+
__builder.AddAttribute(__seq5, nameof(global::Test.MyComponent<T>.
128+
#nullable restore
129+
#line (6,5)-(6,20) "x:\dir\subdir\Test\TestComponent.cshtml"
130+
ObjectParameter
131+
132+
#line default
133+
#line hidden
134+
#nullable disable
135+
), (object)__arg5);
88136
__builder.CloseComponent();
89137
}
90138
}

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.mappings.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,33 @@ Generated Location: (1757:64,0 [42] )
3232
private MyClass<string> c = new();
3333
|
3434

35+
Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml)
36+
|MyParameter|
37+
Generated Location: (2634:84,0 [11] )
38+
|MyParameter|
39+
40+
Source Location: (34:1,4 [7] x:\dir\subdir\Test\TestComponent.cshtml)
41+
|MyEvent|
42+
Generated Location: (2883:93,0 [7] )
43+
|MyEvent|
44+
45+
Source Location: (59:2,4 [13] x:\dir\subdir\Test\TestComponent.cshtml)
46+
|BoolParameter|
47+
Generated Location: (3128:102,0 [13] )
48+
|BoolParameter|
49+
50+
Source Location: (85:3,4 [15] x:\dir\subdir\Test\TestComponent.cshtml)
51+
|StringParameter|
52+
Generated Location: (3379:111,0 [15] )
53+
|StringParameter|
54+
55+
Source Location: (112:4,4 [17] x:\dir\subdir\Test\TestComponent.cshtml)
56+
|DelegateParameter|
57+
Generated Location: (3632:120,0 [17] )
58+
|DelegateParameter|
59+
60+
Source Location: (147:5,4 [15] x:\dir\subdir\Test\TestComponent.cshtml)
61+
|ObjectParameter|
62+
Generated Location: (3887:129,0 [15] )
63+
|ObjectParameter|
64+

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.codegen.cs

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,51 @@ internal static class TypeInference
7171
public static void CreateMyComponent_0<T>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::Test.MyClass<T> __arg0, int __seq1, global::System.Boolean __arg1, int __seq2, global::System.String __arg2, int __seq3, global::System.Delegate __arg3, int __seq4, global::System.Object __arg4)
7272
{
7373
__builder.OpenComponent<global::Test.MyComponent<T>>(seq);
74-
__builder.AddAttribute(__seq0, nameof(global::Test.MyComponent<T>.MyParameter), (object)__arg0);
75-
__builder.AddAttribute(__seq1, nameof(global::Test.MyComponent<T>.BoolParameter), (object)__arg1);
76-
__builder.AddAttribute(__seq2, nameof(global::Test.MyComponent<T>.StringParameter), (object)__arg2);
77-
__builder.AddAttribute(__seq3, nameof(global::Test.MyComponent<T>.DelegateParameter), (object)__arg3);
78-
__builder.AddAttribute(__seq4, nameof(global::Test.MyComponent<T>.ObjectParameter), (object)__arg4);
74+
__builder.AddAttribute(__seq0, nameof(global::Test.MyComponent<T>.
75+
#nullable restore
76+
#line (1,14)-(1,25) "x:\dir\subdir\Test\TestComponent.cshtml"
77+
MyParameter
78+
79+
#line default
80+
#line hidden
81+
#nullable disable
82+
), (object)__arg0);
83+
__builder.AddAttribute(__seq1, nameof(global::Test.MyComponent<T>.
84+
#nullable restore
85+
#line (2,5)-(2,18) "x:\dir\subdir\Test\TestComponent.cshtml"
86+
BoolParameter
87+
88+
#line default
89+
#line hidden
90+
#nullable disable
91+
), (object)__arg1);
92+
__builder.AddAttribute(__seq2, nameof(global::Test.MyComponent<T>.
93+
#nullable restore
94+
#line (3,5)-(3,20) "x:\dir\subdir\Test\TestComponent.cshtml"
95+
StringParameter
96+
97+
#line default
98+
#line hidden
99+
#nullable disable
100+
), (object)__arg2);
101+
__builder.AddAttribute(__seq3, nameof(global::Test.MyComponent<T>.
102+
#nullable restore
103+
#line (4,5)-(4,22) "x:\dir\subdir\Test\TestComponent.cshtml"
104+
DelegateParameter
105+
106+
#line default
107+
#line hidden
108+
#nullable disable
109+
), (object)__arg3);
110+
__builder.AddAttribute(__seq4, nameof(global::Test.MyComponent<T>.
111+
#nullable restore
112+
#line (5,5)-(5,20) "x:\dir\subdir\Test\TestComponent.cshtml"
113+
ObjectParameter
114+
115+
#line default
116+
#line hidden
117+
#nullable disable
118+
), (object)__arg4);
79119
__builder.CloseComponent();
80120
}
81121
}

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.mappings.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,28 @@ Generated Location: (1518:56,0 [51] )
2727
private readonly MyClass<string> c = new();
2828
|
2929

30+
Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml)
31+
|MyParameter|
32+
Generated Location: (2330:76,0 [11] )
33+
|MyParameter|
34+
35+
Source Location: (34:1,4 [13] x:\dir\subdir\Test\TestComponent.cshtml)
36+
|BoolParameter|
37+
Generated Location: (2579:85,0 [13] )
38+
|BoolParameter|
39+
40+
Source Location: (60:2,4 [15] x:\dir\subdir\Test\TestComponent.cshtml)
41+
|StringParameter|
42+
Generated Location: (2830:94,0 [15] )
43+
|StringParameter|
44+
45+
Source Location: (87:3,4 [17] x:\dir\subdir\Test\TestComponent.cshtml)
46+
|DelegateParameter|
47+
Generated Location: (3083:103,0 [17] )
48+
|DelegateParameter|
49+
50+
Source Location: (122:4,4 [15] x:\dir\subdir\Test\TestComponent.cshtml)
51+
|ObjectParameter|
52+
Generated Location: (3338:112,0 [15] )
53+
|ObjectParameter|
54+

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,15 @@ public partial class TestComponent : global::Microsoft.AspNetCore.Components.Com
1818
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
1919
{
2020
__builder.OpenComponent<global::Test.MyComponent>(0);
21-
__builder.AddComponentParameter(1, nameof(global::Test.MyComponent.Value), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Int32>(
21+
__builder.AddComponentParameter(1, nameof(global::Test.MyComponent.
22+
#nullable restore
23+
#line (1,20)-(1,25) "x:\dir\subdir\Test\TestComponent.cshtml"
24+
Value
25+
26+
#line default
27+
#line hidden
28+
#nullable disable
29+
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Int32>(
2230
#nullable restore
2331
#line (1,27)-(1,38) "x:\dir\subdir\Test\TestComponent.cshtml"
2432
ParentValue

0 commit comments

Comments
 (0)