Skip to content

Commit 246cfba

Browse files
committed
Update baselines
1 parent e9a24ff commit 246cfba

File tree

480 files changed

+11381
-1626
lines changed

Some content is hidden

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

480 files changed

+11381
-1626
lines changed

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.cs

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
// <auto-generated/>
22
#pragma warning disable 1591
3-
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
3+
namespace AspNetCore
44
{
5+
#line default
6+
using TModel = global::System.Object;
7+
using global::System;
8+
using global::System.Collections.Generic;
9+
using global::System.Linq;
10+
using global::System.Threading.Tasks;
11+
using global::Microsoft.AspNetCore.Mvc;
12+
using global::Microsoft.AspNetCore.Mvc.Rendering;
13+
using global::Microsoft.AspNetCore.Mvc.ViewFeatures;
14+
#line default
515
#line hidden
6-
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective_DesignTime
16+
[global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemMetadataAttribute("Identifier", "/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml")]
17+
[global::System.Runtime.CompilerServices.CreateNewOnMetadataUpdateAttribute]
18+
#nullable restore
19+
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
20+
#nullable disable
721
{
822
#pragma warning disable 219
923
private void __RazorDirectiveTokenHelpers__() {
@@ -23,10 +37,30 @@ private void __RazorDirectiveTokenHelpers__() {
2337
private static object __o = null;
2438
#pragma warning restore 0414
2539
#pragma warning disable 1998
26-
public async System.Threading.Tasks.Task ExecuteAsync()
40+
public async override global::System.Threading.Tasks.Task ExecuteAsync()
2741
{
2842
}
2943
#pragma warning restore 1998
44+
#nullable restore
45+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
46+
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
47+
#nullable disable
48+
#nullable restore
49+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
50+
public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } = default!;
51+
#nullable disable
52+
#nullable restore
53+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
54+
public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } = default!;
55+
#nullable disable
56+
#nullable restore
57+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
58+
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } = default!;
59+
#nullable disable
60+
#nullable restore
61+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
62+
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; } = default!;
63+
#nullable disable
3064
}
3165
}
3266
#pragma warning restore 1591
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,42 @@
11
Document -
2-
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
3-
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective_DesignTime - -
2+
NamespaceDeclaration - - AspNetCore
3+
UsingDirective - - TModel = global::System.Object
4+
UsingDirective - (1:0,1 [20] ) - global::System
5+
UsingDirective - (24:1,1 [40] ) - global::System.Collections.Generic
6+
UsingDirective - (67:2,1 [25] ) - global::System.Linq
7+
UsingDirective - (95:3,1 [36] ) - global::System.Threading.Tasks
8+
UsingDirective - (134:4,1 [38] ) - global::Microsoft.AspNetCore.Mvc
9+
UsingDirective - (175:5,1 [48] ) - global::Microsoft.AspNetCore.Mvc.Rendering
10+
UsingDirective - (226:6,1 [51] ) - global::Microsoft.AspNetCore.Mvc.ViewFeatures
11+
RazorCompiledItemMetadataAttribute -
12+
CreateNewOnMetadataUpdateAttribute -
13+
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
414
DesignTimeDirective -
15+
DirectiveToken - (287:7,8 [62] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>
16+
DirectiveToken - (350:7,71 [4] ) - Html
17+
DirectiveToken - (364:8,8 [54] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper
18+
DirectiveToken - (419:8,63 [4] ) - Json
19+
DirectiveToken - (433:9,8 [53] ) - global::Microsoft.AspNetCore.Mvc.IViewComponentHelper
20+
DirectiveToken - (487:9,62 [9] ) - Component
21+
DirectiveToken - (506:10,8 [43] ) - global::Microsoft.AspNetCore.Mvc.IUrlHelper
22+
DirectiveToken - (550:10,52 [3] ) - Url
23+
DirectiveToken - (563:11,8 [70] ) - global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider
24+
DirectiveToken - (634:11,79 [23] ) - ModelExpressionProvider
25+
DirectiveToken - (673:12,14 [104] ) - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper, Microsoft.AspNetCore.Mvc.Razor
26+
DirectiveToken - (793:13,14 [95] ) - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper, Microsoft.AspNetCore.Mvc.Razor
27+
DirectiveToken - (904:14,14 [95] ) - global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor
528
DirectiveToken - (14:0,14 [17] AddTagHelperDirective.cshtml) - "*, TestAssembly"
629
CSharpCode -
730
IntermediateToken - - CSharp - #pragma warning disable 0414
831
CSharpCode -
932
IntermediateToken - - CSharp - private static object __o = null;
1033
CSharpCode -
1134
IntermediateToken - - CSharp - #pragma warning restore 0414
12-
MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync
35+
MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync
1336
HtmlContent - (31:0,31 [2] AddTagHelperDirective.cshtml)
1437
LazyIntermediateToken - (31:0,31 [2] AddTagHelperDirective.cshtml) - Html - \n
38+
Inject -
39+
Inject -
40+
Inject -
41+
Inject -
42+
Inject -
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml)
22
|"*, TestAssembly"|
3-
Generated Location: (551:12,37 [17] )
3+
Generated Location: (1253:26,37 [17] )
44
|"*, TestAssembly"|
55

Original file line numberDiff line numberDiff line change
@@ -1,18 +1,51 @@
11
#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "acb2e9438f3250e99764ff47299ab6f5503f0ade0c3b94cd2fc81bc2e2506a59"
22
// <auto-generated/>
33
#pragma warning disable 1591
4-
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective_Runtime), @"default", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml")]
5-
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
4+
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective), @"mvc.1.0.view", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml")]
5+
namespace AspNetCore
66
{
7+
#line default
8+
using global::System;
9+
using global::System.Collections.Generic;
10+
using global::System.Linq;
11+
using global::System.Threading.Tasks;
12+
using global::Microsoft.AspNetCore.Mvc;
13+
using global::Microsoft.AspNetCore.Mvc.Rendering;
14+
using global::Microsoft.AspNetCore.Mvc.ViewFeatures;
15+
#line default
716
#line hidden
817
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"Sha256", @"acb2e9438f3250e99764ff47299ab6f5503f0ade0c3b94cd2fc81bc2e2506a59", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml")]
9-
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective_Runtime
18+
[global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemMetadataAttribute("Identifier", "/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml")]
19+
[global::System.Runtime.CompilerServices.CreateNewOnMetadataUpdateAttribute]
20+
#nullable restore
21+
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
22+
#nullable disable
1023
{
1124
#pragma warning disable 1998
12-
public async System.Threading.Tasks.Task ExecuteAsync()
25+
public async override global::System.Threading.Tasks.Task ExecuteAsync()
1326
{
1427
}
1528
#pragma warning restore 1998
29+
#nullable restore
30+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
31+
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
32+
#nullable disable
33+
#nullable restore
34+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
35+
public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } = default!;
36+
#nullable disable
37+
#nullable restore
38+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
39+
public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } = default!;
40+
#nullable disable
41+
#nullable restore
42+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
43+
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } = default!;
44+
#nullable disable
45+
#nullable restore
46+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
47+
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; } = default!;
48+
#nullable disable
1649
}
1750
}
1851
#pragma warning restore 1591
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
Document -
22
RazorCompiledItemAttribute -
3-
NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
3+
NamespaceDeclaration - - AspNetCore
4+
UsingDirective - (1:0,1 [22] ) - global::System
5+
UsingDirective - (24:1,1 [42] ) - global::System.Collections.Generic
6+
UsingDirective - (67:2,1 [27] ) - global::System.Linq
7+
UsingDirective - (95:3,1 [38] ) - global::System.Threading.Tasks
8+
UsingDirective - (134:4,1 [40] ) - global::Microsoft.AspNetCore.Mvc
9+
UsingDirective - (175:5,1 [50] ) - global::Microsoft.AspNetCore.Mvc.Rendering
10+
UsingDirective - (226:6,1 [53] ) - global::Microsoft.AspNetCore.Mvc.ViewFeatures
411
RazorSourceChecksumAttribute -
5-
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective_Runtime - -
6-
MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync
12+
RazorCompiledItemMetadataAttribute -
13+
CreateNewOnMetadataUpdateAttribute -
14+
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelperDirective - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic> -
15+
MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync
16+
Inject -
17+
Inject -
18+
Inject -
19+
Inject -
20+
Inject -

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective_DesignTime.codegen.cs

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
// <auto-generated/>
22
#pragma warning disable 1591
3-
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
3+
namespace AspNetCore
44
{
5+
#line default
6+
using TModel = global::System.Object;
7+
using global::System;
8+
using global::System.Collections.Generic;
9+
using global::System.Linq;
10+
using global::System.Threading.Tasks;
11+
using global::Microsoft.AspNetCore.Mvc;
12+
using global::Microsoft.AspNetCore.Mvc.Rendering;
13+
using global::Microsoft.AspNetCore.Mvc.ViewFeatures;
14+
#line default
515
#line hidden
616
#nullable restore
717
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml"
@@ -31,7 +41,11 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
3141
#line default
3242
#line hidden
3343
#nullable disable
34-
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeDirective_DesignTime
44+
[global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemMetadataAttribute("Identifier", "/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml")]
45+
[global::System.Runtime.CompilerServices.CreateNewOnMetadataUpdateAttribute]
46+
#nullable restore
47+
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeDirective : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<dynamic>
48+
#nullable disable
3549
{
3650
#pragma warning disable 219
3751
private void __RazorDirectiveTokenHelpers__() {
@@ -41,10 +55,30 @@ private void __RazorDirectiveTokenHelpers__() {
4155
private static object __o = null;
4256
#pragma warning restore 0414
4357
#pragma warning disable 1998
44-
public async System.Threading.Tasks.Task ExecuteAsync()
58+
public async override global::System.Threading.Tasks.Task ExecuteAsync()
4559
{
4660
}
4761
#pragma warning restore 1998
62+
#nullable restore
63+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
64+
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; } = default!;
65+
#nullable disable
66+
#nullable restore
67+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
68+
public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; } = default!;
69+
#nullable disable
70+
#nullable restore
71+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
72+
public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; } = default!;
73+
#nullable disable
74+
#nullable restore
75+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
76+
public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; } = default!;
77+
#nullable disable
78+
#nullable restore
79+
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
80+
public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<dynamic> Html { get; private set; } = default!;
81+
#nullable disable
4882
}
4983
}
5084
#pragma warning restore 1591
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml(1,13): error CS0592: Attribute 'System.Runtime.InteropServices.DllImport' is not valid on this declaration type. It is only valid on 'method' declarations.
2+
// [System.Runtime.InteropServices.DllImport("user32.dll")]
3+
Diagnostic(ErrorCode.ERR_AttributeOnBadSymbolType, "System.Runtime.InteropServices.DllImport").WithArguments("System.Runtime.InteropServices.DllImport", "method").WithLocation(1, 13),
4+
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml(2,13): warning CS0657: 'assembly' is not a valid attribute location for this declaration. Valid attribute locations for this declaration are 'type'. All attributes in this block will be ignored.
5+
// [assembly: AssemblyTitleAttribute("Some assembly")]
6+
Diagnostic(ErrorCode.WRN_AttributeLocationOnBadDeclaration, "assembly").WithArguments("assembly", "type").WithLocation(2, 13),
7+
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml(3,13): error CS0246: The type or namespace name 'DllImportAttribute' could not be found (are you missing a using directive or an assembly reference?)
8+
// [DllImport("user32.dll", SetLastError=false, ExactSpelling=false)]
9+
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "DllImport").WithArguments("DllImportAttribute").WithLocation(3, 13),
10+
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml(3,13): error CS0246: The type or namespace name 'DllImport' could not be found (are you missing a using directive or an assembly reference?)
11+
// [DllImport("user32.dll", SetLastError=false, ExactSpelling=false)]
12+
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "DllImport").WithArguments("DllImport").WithLocation(3, 13),
13+
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml(4,13): error CS0246: The type or namespace name 'ConditionalAttribute' could not be found (are you missing a using directive or an assembly reference?)
14+
// [Conditional("DEBUG"), Conditional("TEST1")]
15+
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Conditional").WithArguments("ConditionalAttribute").WithLocation(4, 13),
16+
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml(4,13): error CS0246: The type or namespace name 'Conditional' could not be found (are you missing a using directive or an assembly reference?)
17+
// [Conditional("DEBUG"), Conditional("TEST1")]
18+
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Conditional").WithArguments("Conditional").WithLocation(4, 13),
19+
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml(4,35): error CS0246: The type or namespace name 'ConditionalAttribute' could not be found (are you missing a using directive or an assembly reference?)
20+
// [Conditional("DEBUG"), Conditional("TEST1")]
21+
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Conditional").WithArguments("ConditionalAttribute").WithLocation(4, 35),
22+
// TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeDirective.cshtml(4,35): error CS0246: The type or namespace name 'Conditional' could not be found (are you missing a using directive or an assembly reference?)
23+
// [Conditional("DEBUG"), Conditional("TEST1")]
24+
Diagnostic(ErrorCode.ERR_SingleTypeNameNotFound, "Conditional").WithArguments("Conditional").WithLocation(4, 35)

0 commit comments

Comments
 (0)