();
+
+ Assert.NotEmpty(references);
+
+ return references;
}
}
}
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj
index 3767a8c652..41190c40d9 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj
@@ -28,6 +28,30 @@
+
+
+
+
+
+ false
+ Content
+ PreserveNewest
+ Build
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelExpressionPassTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelExpressionPassTest.cs
index 5f3c483f9b..1aaa9066d4 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelExpressionPassTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelExpressionPassTest.cs
@@ -4,7 +4,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
-using Microsoft.AspNetCore.Mvc.ViewFeatures;
using Microsoft.AspNetCore.Razor.Language;
using Microsoft.AspNetCore.Razor.Language.Intermediate;
using Microsoft.AspNetCore.Razor.Language.Legacy;
@@ -69,7 +68,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions
.BindAttribute(attribute =>
attribute
.Name("Foo")
- .TypeName(typeof(ModelExpression).FullName))
+ .TypeName("Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression"))
.TagMatchingRule(rule =>
rule.RequireTagName("p"))
.Build()
@@ -114,7 +113,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions
.BindAttribute(attribute =>
attribute
.Name("Foo")
- .TypeName(typeof(ModelExpression).FullName))
+ .TypeName("Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression"))
.TagMatchingRule(rule =>
rule.RequireTagName("p"))
.Build()
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml
index 90b91c5da6..6e13d2e6f0 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml
@@ -1,4 +1,4 @@
-
+
Hello world
- @Html.Input("SomeKey")
-
\ No newline at end of file
+ @string.Format("{0}", "Hello")
+
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.codegen.cs
index dc4f8622fb..712569bdf7 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.codegen.cs
@@ -20,12 +20,12 @@ namespace AspNetCore
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
- __o = logo;
+ __o = this.ToString();
#line default
#line hidden
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
-__o = Html.Input("SomeKey");
+__o = string.Format("{0}", "Hello");
#line default
#line hidden
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.ir.txt
index 8807cbe2f9..ab1bfc4031 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.ir.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.ir.txt
@@ -29,18 +29,19 @@ Document -
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [4] Basic.cshtml)
RazorIRToken - (0:0,0 [4] Basic.cshtml) - Html -
- RazorIRToken - (19:0,19 [23] Basic.cshtml) - Html - \n Hello world\n
- CSharpExpression - (43:2,5 [21] Basic.cshtml)
- RazorIRToken - (43:2,5 [21] Basic.cshtml) - CSharp - Html.Input("SomeKey")
- HtmlContent - (64:2,26 [8] Basic.cshtml)
- RazorIRToken - (64:2,26 [2] Basic.cshtml) - Html - \n
- RazorIRToken - (66:3,0 [6] Basic.cshtml) - Html -
+ HtmlAttribute - (4:0,4 [25] Basic.cshtml) - class=" - "
+ CSharpAttributeValue - (12:0,12 [16] Basic.cshtml) -
+ CSharpExpression - (13:0,13 [15] Basic.cshtml)
+ RazorIRToken - (13:0,13 [15] Basic.cshtml) - CSharp - this.ToString()
+ HtmlContent - (29:0,29 [24] Basic.cshtml)
+ RazorIRToken - (29:0,29 [1] Basic.cshtml) - Html - >
+ RazorIRToken - (30:0,30 [23] Basic.cshtml) - Html - \n Hello world\n
+ CSharpExpression - (54:2,5 [29] Basic.cshtml)
+ RazorIRToken - (54:2,5 [29] Basic.cshtml) - CSharp - string.Format("{0}", "Hello")
+ HtmlContent - (83:2,34 [10] Basic.cshtml)
+ RazorIRToken - (83:2,34 [2] Basic.cshtml) - Html - \n
+ RazorIRToken - (85:3,0 [6] Basic.cshtml) - Html -
+ RazorIRToken - (91:3,6 [2] Basic.cshtml) - Html - \n
InjectDirective -
InjectDirective -
InjectDirective -
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.mappings.txt
index a1413c119e..31a1c5d011 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.mappings.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.mappings.txt
@@ -1,10 +1,10 @@
-Source Location: (13:0,13 [4] /TestFiles/Input/Basic.cshtml)
-|logo|
-Generated Location: (829:22,13 [4] )
-|logo|
+Source Location: (13:0,13 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml)
+|this.ToString()|
+Generated Location: (909:22,13 [15] )
+|this.ToString()|
-Source Location: (43:2,5 [21] /TestFiles/Input/Basic.cshtml)
-|Html.Input("SomeKey")|
-Generated Location: (914:27,6 [21] )
-|Html.Input("SomeKey")|
+Source Location: (54:2,5 [29] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml)
+|string.Format("{0}", "Hello")|
+Generated Location: (1045:27,6 [29] )
+|string.Format("{0}", "Hello")|
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.codegen.cs
index 60f0d45217..87f0ae5339 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.codegen.cs
@@ -1,4 +1,4 @@
-#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "54a70ff4c6d27ac6cdc6725cb6bab12012015729"
+#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "fd421120502bfd80d21169d04fd6ba54b5cc7f12"
namespace AspNetCore
{
#line hidden
@@ -17,25 +17,25 @@ namespace AspNetCore
BeginContext(0, 4, true);
WriteLiteral("\r\n Hello world\r\n ");
EndContext();
- BeginContext(43, 21, false);
+ BeginContext(54, 29, false);
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
-Write(Html.Input("SomeKey"));
+Write(string.Format("{0}", "Hello"));
#line default
#line hidden
EndContext();
- BeginContext(64, 8, true);
- WriteLiteral("\r\n
");
+ BeginContext(83, 10, true);
+ WriteLiteral("\r\n\r\n");
EndContext();
}
#pragma warning restore 1998
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.ir.txt
index 3ae383b8ac..a4d28c8fa4 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.ir.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.ir.txt
@@ -16,29 +16,30 @@ Document -
RazorIRToken - (0:0,0 [4] Basic.cshtml) - Html -
- RazorIRToken - (19:0,19 [19] Basic.cshtml) - Html - \n Hello world\n
- RazorIRToken - (38:2,0 [4] Basic.cshtml) - Html -
+ RazorIRToken - - CSharp - BeginContext(29, 24, true);
+ HtmlContent - (29:0,29 [24] Basic.cshtml)
+ RazorIRToken - (29:0,29 [1] Basic.cshtml) - Html - >
+ RazorIRToken - (30:0,30 [19] Basic.cshtml) - Html - \n Hello world\n
+ RazorIRToken - (49:2,0 [4] Basic.cshtml) - Html -
CSharpStatement -
RazorIRToken - - CSharp - EndContext();
CSharpStatement -
- RazorIRToken - - CSharp - BeginContext(43, 21, false);
- CSharpExpression - (43:2,5 [21] Basic.cshtml)
- RazorIRToken - (43:2,5 [21] Basic.cshtml) - CSharp - Html.Input("SomeKey")
+ RazorIRToken - - CSharp - BeginContext(54, 29, false);
+ CSharpExpression - (54:2,5 [29] Basic.cshtml)
+ RazorIRToken - (54:2,5 [29] Basic.cshtml) - CSharp - string.Format("{0}", "Hello")
CSharpStatement -
RazorIRToken - - CSharp - EndContext();
CSharpStatement -
- RazorIRToken - - CSharp - BeginContext(64, 8, true);
- HtmlContent - (64:2,26 [8] Basic.cshtml)
- RazorIRToken - (64:2,26 [2] Basic.cshtml) - Html - \n
- RazorIRToken - (66:3,0 [6] Basic.cshtml) - Html -
+ RazorIRToken - - CSharp - BeginContext(83, 10, true);
+ HtmlContent - (83:2,34 [10] Basic.cshtml)
+ RazorIRToken - (83:2,34 [2] Basic.cshtml) - Html - \n
+ RazorIRToken - (85:3,0 [6] Basic.cshtml) - Html -
+ RazorIRToken - (91:3,6 [2] Basic.cshtml) - Html - \n
CSharpStatement -
RazorIRToken - - CSharp - EndContext();
InjectDirective -
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml
index eea10e68c3..224242197b 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml
@@ -9,7 +9,7 @@
@inject
@inject
-@inject TypeName
+@inject MyService
@namespace
-@namespace
\ No newline at end of file
+@namespace
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs
index 82092343e5..c5ce5a2371 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs
@@ -14,7 +14,7 @@ namespace
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
-TypeName __typeHelper = null;
+MyService __typeHelper = default(MyService);
}
))();
}
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt
index 557fc88b08..9f2dbf41d1 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt
@@ -24,7 +24,7 @@ Document -
DirectiveToken - (617:12,14 [96] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper, Microsoft.AspNetCore.Mvc.Razor
DirectiveToken - (729:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper, Microsoft.AspNetCore.Mvc.Razor
DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor
- DirectiveToken - (159:11,8 [8] IncompleteDirectives.cshtml) - TypeName
+ DirectiveToken - (159:11,8 [17] IncompleteDirectives.cshtml) - MyService
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
@@ -40,10 +40,12 @@ Document -
RazorIRToken - (139:9,7 [2] IncompleteDirectives.cshtml) - Html - \n
HtmlContent - (149:10,8 [2] IncompleteDirectives.cshtml)
RazorIRToken - (149:10,8 [2] IncompleteDirectives.cshtml) - Html - \n
- HtmlContent - (167:11,16 [4] IncompleteDirectives.cshtml)
- RazorIRToken - (167:11,16 [4] IncompleteDirectives.cshtml) - Html - \n\n
- HtmlContent - (181:13,10 [2] IncompleteDirectives.cshtml)
- RazorIRToken - (181:13,10 [2] IncompleteDirectives.cshtml) - Html - \n
+ HtmlContent - (176:11,25 [4] IncompleteDirectives.cshtml)
+ RazorIRToken - (176:11,25 [4] IncompleteDirectives.cshtml) - Html - \n\n
+ HtmlContent - (190:13,10 [2] IncompleteDirectives.cshtml)
+ RazorIRToken - (190:13,10 [2] IncompleteDirectives.cshtml) - Html - \n
+ HtmlContent - (203:14,11 [2] IncompleteDirectives.cshtml)
+ RazorIRToken - (203:14,11 [2] IncompleteDirectives.cshtml) - Html - \n
InjectDirective -
InjectDirective -
InjectDirective -
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt
new file mode 100644
index 0000000000..da2d5f1fc3
--- /dev/null
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt
@@ -0,0 +1,5 @@
+Source Location: (159:11,8 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
+|MyService|
+Generated Location: (616:16,0 [17] )
+|MyService|
+
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.codegen.cs
index 82092343e5..99292e76b0 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.codegen.cs
@@ -1,7 +1,7 @@
+#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "fec5cf763044f842fa2114e997bb07e0bf280cd6"
namespace
{
#line hidden
- using TModel = global::System.Object;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -11,18 +11,36 @@ namespace
using Microsoft.AspNetCore.Mvc.ViewFeatures;
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_cshtml : global::Microsoft.AspNetCore.Mvc.RazorPages.Page
{
- #pragma warning disable 219
- private void __RazorDirectiveTokenHelpers__() {
- ((System.Action)(() => {
-TypeName __typeHelper = null;
- }
- ))();
- }
- #pragma warning restore 219
- private static System.Object __o = null;
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
+ BeginContext(83, 4, true);
+ WriteLiteral("\r\n\r\n");
+ EndContext();
+ BeginContext(108, 5, true);
+ WriteLiteral("\"\r\n\r\n");
+ EndContext();
+ BeginContext(119, 2, true);
+ WriteLiteral("\r\n");
+ EndContext();
+ BeginContext(128, 4, true);
+ WriteLiteral("\r\n\r\n");
+ EndContext();
+ BeginContext(139, 2, true);
+ WriteLiteral("\r\n");
+ EndContext();
+ BeginContext(149, 2, true);
+ WriteLiteral("\r\n");
+ EndContext();
+ BeginContext(176, 4, true);
+ WriteLiteral("\r\n\r\n");
+ EndContext();
+ BeginContext(190, 2, true);
+ WriteLiteral("\r\n");
+ EndContext();
+ BeginContext(203, 2, true);
+ WriteLiteral("\r\n");
+ EndContext();
}
#pragma warning restore 1998
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt
index 557fc88b08..52012b5e42 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt
@@ -1,49 +1,69 @@
Document -
Checksum -
NamespaceDeclaration - -
- UsingStatement - - TModel = global::System.Object
- UsingStatement - (1:0,1 [12] ) - System
- UsingStatement - (16:1,1 [32] ) - System.Collections.Generic
- UsingStatement - (51:2,1 [17] ) - System.Linq
- UsingStatement - (71:3,1 [28] ) - System.Threading.Tasks
- UsingStatement - (102:4,1 [30] ) - Microsoft.AspNetCore.Mvc
- UsingStatement - (135:5,1 [40] ) - Microsoft.AspNetCore.Mvc.Rendering
- UsingStatement - (178:6,1 [43] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
+ UsingStatement - (1:0,1 [14] ) - System
+ UsingStatement - (16:1,1 [34] ) - System.Collections.Generic
+ UsingStatement - (51:2,1 [19] ) - System.Linq
+ UsingStatement - (71:3,1 [30] ) - System.Threading.Tasks
+ UsingStatement - (102:4,1 [32] ) - Microsoft.AspNetCore.Mvc
+ UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
+ UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_cshtml - global::Microsoft.AspNetCore.Mvc.RazorPages.Page -
- DesignTimeDirective -
- DirectiveToken - (231:7,8 [62] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
- DirectiveToken - (294:7,71 [4] ) - Html
- DirectiveToken - (308:8,8 [54] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper
- DirectiveToken - (363:8,63 [4] ) - Json
- DirectiveToken - (377:9,8 [53] ) - global::Microsoft.AspNetCore.Mvc.IViewComponentHelper
- DirectiveToken - (431:9,62 [9] ) - Component
- DirectiveToken - (450:10,8 [43] ) - global::Microsoft.AspNetCore.Mvc.IUrlHelper
- DirectiveToken - (494:10,52 [3] ) - Url
- DirectiveToken - (507:11,8 [70] ) - global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider
- DirectiveToken - (578:11,79 [23] ) - ModelExpressionProvider
- DirectiveToken - (617:12,14 [96] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper, Microsoft.AspNetCore.Mvc.Razor
- DirectiveToken - (729:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper, Microsoft.AspNetCore.Mvc.Razor
- DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor
- DirectiveToken - (159:11,8 [8] IncompleteDirectives.cshtml) - TypeName
- CSharpStatement -
- RazorIRToken - - CSharp - private static System.Object __o = null;
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
+ CSharpStatement -
+ RazorIRToken - - CSharp - BeginContext(83, 4, true);
HtmlContent - (83:0,83 [4] IncompleteDirectives.cshtml)
RazorIRToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n
+ CSharpStatement -
+ RazorIRToken - - CSharp - EndContext();
+ CSharpStatement -
+ RazorIRToken - - CSharp - BeginContext(108, 5, true);
HtmlContent - (108:4,6 [5] IncompleteDirectives.cshtml)
RazorIRToken - (108:4,6 [5] IncompleteDirectives.cshtml) - Html - "\n\n
+ CSharpStatement -
+ RazorIRToken - - CSharp - EndContext();
+ CSharpStatement -
+ RazorIRToken - - CSharp - BeginContext(119, 2, true);
HtmlContent - (119:6,6 [2] IncompleteDirectives.cshtml)
RazorIRToken - (119:6,6 [2] IncompleteDirectives.cshtml) - Html - \n
+ CSharpStatement -
+ RazorIRToken - - CSharp - EndContext();
+ CSharpStatement -
+ RazorIRToken - - CSharp - BeginContext(128, 4, true);
HtmlContent - (128:7,7 [4] IncompleteDirectives.cshtml)
RazorIRToken - (128:7,7 [4] IncompleteDirectives.cshtml) - Html - \n\n
+ CSharpStatement -
+ RazorIRToken - - CSharp - EndContext();
+ CSharpStatement -
+ RazorIRToken - - CSharp - BeginContext(139, 2, true);
HtmlContent - (139:9,7 [2] IncompleteDirectives.cshtml)
RazorIRToken - (139:9,7 [2] IncompleteDirectives.cshtml) - Html - \n
+ CSharpStatement -
+ RazorIRToken - - CSharp - EndContext();
+ CSharpStatement -
+ RazorIRToken - - CSharp - BeginContext(149, 2, true);
HtmlContent - (149:10,8 [2] IncompleteDirectives.cshtml)
RazorIRToken - (149:10,8 [2] IncompleteDirectives.cshtml) - Html - \n
- HtmlContent - (167:11,16 [4] IncompleteDirectives.cshtml)
- RazorIRToken - (167:11,16 [4] IncompleteDirectives.cshtml) - Html - \n\n
- HtmlContent - (181:13,10 [2] IncompleteDirectives.cshtml)
- RazorIRToken - (181:13,10 [2] IncompleteDirectives.cshtml) - Html - \n
+ CSharpStatement -
+ RazorIRToken - - CSharp - EndContext();
+ CSharpStatement -
+ RazorIRToken - - CSharp - BeginContext(176, 4, true);
+ HtmlContent - (176:11,25 [4] IncompleteDirectives.cshtml)
+ RazorIRToken - (176:11,25 [4] IncompleteDirectives.cshtml) - Html - \n\n
+ CSharpStatement -
+ RazorIRToken - - CSharp - EndContext();
+ CSharpStatement -
+ RazorIRToken - - CSharp - BeginContext(190, 2, true);
+ HtmlContent - (190:13,10 [2] IncompleteDirectives.cshtml)
+ RazorIRToken - (190:13,10 [2] IncompleteDirectives.cshtml) - Html - \n
+ CSharpStatement -
+ RazorIRToken - - CSharp - EndContext();
+ CSharpStatement -
+ RazorIRToken - - CSharp - BeginContext(203, 2, true);
+ HtmlContent - (203:14,11 [2] IncompleteDirectives.cshtml)
+ RazorIRToken - (203:14,11 [2] IncompleteDirectives.cshtml) - Html - \n
+ CSharpStatement -
+ RazorIRToken - - CSharp - EndContext();
InjectDirective -
InjectDirective -
InjectDirective -
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.codegen.cs
index cbfc6ffd44..404dcb5bd7 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.codegen.cs
@@ -14,11 +14,11 @@ namespace AspNetCore
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
-MyBasePageForViews __typeHelper = null;
+MyBasePageForViews __typeHelper = default(MyBasePageForViews);
}
))();
((System.Action)(() => {
-MyModel __typeHelper = null;
+MyModel __typeHelper = default(MyModel);
}
))();
}
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.mappings.txt
new file mode 100644
index 0000000000..0d0ccf8ba9
--- /dev/null
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.mappings.txt
@@ -0,0 +1,10 @@
+Source Location: (10:0,10 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel.cshtml)
+|MyBasePageForViews|
+Generated Location: (602:16,0 [26] )
+|MyBasePageForViews|
+
+Source Location: (45:1,7 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel.cshtml)
+|MyModel|
+Generated Location: (742:20,0 [7] )
+|MyModel|
+
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.codegen.cs
index cbfc6ffd44..bbbcf64828 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.codegen.cs
@@ -1,7 +1,7 @@
+#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "91cf923452a86b2906083cb0236d6d5b3bc528ef"
namespace AspNetCore
{
#line hidden
- using TModel = global::System.Object;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -11,19 +11,6 @@ namespace AspNetCore
using Microsoft.AspNetCore.Mvc.ViewFeatures;
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsViewModel_cshtml : MyBasePageForViews
{
- #pragma warning disable 219
- private void __RazorDirectiveTokenHelpers__() {
- ((System.Action)(() => {
-MyBasePageForViews __typeHelper = null;
- }
- ))();
- ((System.Action)(() => {
-MyModel __typeHelper = null;
- }
- ))();
- }
- #pragma warning restore 219
- private static System.Object __o = null;
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.ir.txt
index cb60cadda6..2b1d71c827 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.ir.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.ir.txt
@@ -1,33 +1,14 @@
Document -
Checksum -
NamespaceDeclaration - - AspNetCore
- UsingStatement - - TModel = global::System.Object
- UsingStatement - (1:0,1 [12] ) - System
- UsingStatement - (16:1,1 [32] ) - System.Collections.Generic
- UsingStatement - (51:2,1 [17] ) - System.Linq
- UsingStatement - (71:3,1 [28] ) - System.Threading.Tasks
- UsingStatement - (102:4,1 [30] ) - Microsoft.AspNetCore.Mvc
- UsingStatement - (135:5,1 [40] ) - Microsoft.AspNetCore.Mvc.Rendering
- UsingStatement - (178:6,1 [43] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
+ UsingStatement - (1:0,1 [14] ) - System
+ UsingStatement - (16:1,1 [34] ) - System.Collections.Generic
+ UsingStatement - (51:2,1 [19] ) - System.Linq
+ UsingStatement - (71:3,1 [30] ) - System.Threading.Tasks
+ UsingStatement - (102:4,1 [32] ) - Microsoft.AspNetCore.Mvc
+ UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
+ UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsViewModel_cshtml - MyBasePageForViews -
- DesignTimeDirective -
- DirectiveToken - (231:7,8 [62] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
- DirectiveToken - (294:7,71 [4] ) - Html
- DirectiveToken - (308:8,8 [54] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper
- DirectiveToken - (363:8,63 [4] ) - Json
- DirectiveToken - (377:9,8 [53] ) - global::Microsoft.AspNetCore.Mvc.IViewComponentHelper
- DirectiveToken - (431:9,62 [9] ) - Component
- DirectiveToken - (450:10,8 [43] ) - global::Microsoft.AspNetCore.Mvc.IUrlHelper
- DirectiveToken - (494:10,52 [3] ) - Url
- DirectiveToken - (507:11,8 [70] ) - global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider
- DirectiveToken - (578:11,79 [23] ) - ModelExpressionProvider
- DirectiveToken - (617:12,14 [96] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper, Microsoft.AspNetCore.Mvc.Razor
- DirectiveToken - (729:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper, Microsoft.AspNetCore.Mvc.Razor
- DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor
- DirectiveToken - (10:0,10 [26] InheritsViewModel.cshtml) - MyBasePageForViews
- DirectiveToken - (45:1,7 [7] InheritsViewModel.cshtml) - MyModel
- CSharpStatement -
- RazorIRToken - - CSharp - private static System.Object __o = null;
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.codegen.cs
index 107028a72e..fe92464e57 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.codegen.cs
@@ -14,7 +14,7 @@ namespace AspNetCore
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
-MyModel __typeHelper = null;
+MyModel __typeHelper = default(MyModel);
}
))();
}
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.mappings.txt
new file mode 100644
index 0000000000..a38c391ca8
--- /dev/null
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.mappings.txt
@@ -0,0 +1,5 @@
+Source Location: (14:1,7 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports.cshtml)
+|MyModel|
+Generated Location: (601:16,0 [7] )
+|MyModel|
+
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.codegen.cs
index 107028a72e..681c1bb1b6 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.codegen.cs
@@ -1,7 +1,7 @@
+#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "052fe5ad02d36ebdf943dddd543cb26aaff62411"
namespace AspNetCore
{
#line hidden
- using TModel = global::System.Object;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -11,15 +11,6 @@ namespace AspNetCore
using Microsoft.AspNetCore.Mvc.ViewFeatures;
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsWithViewImports_cshtml : MyPageModel
{
- #pragma warning disable 219
- private void __RazorDirectiveTokenHelpers__() {
- ((System.Action)(() => {
-MyModel __typeHelper = null;
- }
- ))();
- }
- #pragma warning restore 219
- private static System.Object __o = null;
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.ir.txt
index 00855d8175..fc8f957f9a 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.ir.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.ir.txt
@@ -1,33 +1,14 @@
Document -
Checksum -
NamespaceDeclaration - - AspNetCore
- UsingStatement - - TModel = global::System.Object
- UsingStatement - (1:0,1 [12] ) - System
- UsingStatement - (16:1,1 [32] ) - System.Collections.Generic
- UsingStatement - (51:2,1 [17] ) - System.Linq
- UsingStatement - (71:3,1 [28] ) - System.Threading.Tasks
- UsingStatement - (102:4,1 [30] ) - Microsoft.AspNetCore.Mvc
- UsingStatement - (135:5,1 [40] ) - Microsoft.AspNetCore.Mvc.Rendering
- UsingStatement - (178:6,1 [43] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
+ UsingStatement - (1:0,1 [14] ) - System
+ UsingStatement - (16:1,1 [34] ) - System.Collections.Generic
+ UsingStatement - (51:2,1 [19] ) - System.Linq
+ UsingStatement - (71:3,1 [30] ) - System.Threading.Tasks
+ UsingStatement - (102:4,1 [32] ) - Microsoft.AspNetCore.Mvc
+ UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
+ UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsWithViewImports_cshtml - MyPageModel -
- DesignTimeDirective -
- DirectiveToken - (10:0,10 [19] InheritsWithViewImports_Imports0.cshtml) - MyPageModel
- DirectiveToken - (231:7,8 [62] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
- DirectiveToken - (294:7,71 [4] ) - Html
- DirectiveToken - (308:8,8 [54] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper
- DirectiveToken - (363:8,63 [4] ) - Json
- DirectiveToken - (377:9,8 [53] ) - global::Microsoft.AspNetCore.Mvc.IViewComponentHelper
- DirectiveToken - (431:9,62 [9] ) - Component
- DirectiveToken - (450:10,8 [43] ) - global::Microsoft.AspNetCore.Mvc.IUrlHelper
- DirectiveToken - (494:10,52 [3] ) - Url
- DirectiveToken - (507:11,8 [70] ) - global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider
- DirectiveToken - (578:11,79 [23] ) - ModelExpressionProvider
- DirectiveToken - (617:12,14 [96] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper, Microsoft.AspNetCore.Mvc.Razor
- DirectiveToken - (729:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper, Microsoft.AspNetCore.Mvc.Razor
- DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor
- DirectiveToken - (14:1,7 [7] InheritsWithViewImports.cshtml) - MyModel
- CSharpStatement -
- RazorIRToken - - CSharp - private static System.Object __o = null;
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
InjectDirective -
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml
index 4e90b36808..0aa749dd3f 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml
@@ -1,2 +1 @@
-@using MyNamespace
-@inject MyApp MyPropertyName
\ No newline at end of file
+@inject MyApp MyPropertyName
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml
index b4d4a5589a..d699f1e754 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml
@@ -1,3 +1,3 @@
@model MyModel
@inject MyApp MyPropertyName
-@inject MyService Html
\ No newline at end of file
+@inject MyService Html
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.codegen.cs
index db8aaea1b0..a737e0d11d 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.codegen.cs
@@ -14,11 +14,11 @@ namespace AspNetCore
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
-MyModel __typeHelper = null;
+MyModel __typeHelper = default(MyModel);
}
))();
((System.Action)(() => {
-MyApp __typeHelper = null;
+MyApp __typeHelper = default(MyApp);
}
))();
((System.Action)(() => {
@@ -26,7 +26,7 @@ global::System.Object MyPropertyName = null;
}
))();
((System.Action)(() => {
-MyService __typeHelper = null;
+MyService __typeHelper = default(MyService);
}
))();
((System.Action)(() => {
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.mappings.txt
index 128c2f7b5b..a6e455d815 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.mappings.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.mappings.txt
@@ -1,25 +1,25 @@
-Source Location: (7:0,7 [7] /TestFiles/Input/InjectWithModel.cshtml)
+Source Location: (7:0,7 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml)
|MyModel|
-Generated Location: (576:16,0 [7] )
+Generated Location: (630:16,0 [7] )
|MyModel|
-Source Location: (24:1,8 [5] /TestFiles/Input/InjectWithModel.cshtml)
+Source Location: (24:1,8 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml)
|MyApp|
-Generated Location: (666:20,0 [5] )
+Generated Location: (732:20,0 [5] )
|MyApp|
-Source Location: (30:1,14 [14] /TestFiles/Input/InjectWithModel.cshtml)
+Source Location: (30:1,14 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml)
|MyPropertyName|
-Generated Location: (776:24,22 [14] )
+Generated Location: (852:24,22 [14] )
|MyPropertyName|
-Source Location: (54:2,8 [17] /TestFiles/Input/InjectWithModel.cshtml)
+Source Location: (54:2,8 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml)
|MyService|
-Generated Location: (860:28,0 [17] )
+Generated Location: (936:28,0 [17] )
|MyService|
-Source Location: (72:2,26 [4] /TestFiles/Input/InjectWithModel.cshtml)
+Source Location: (72:2,26 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml)
|Html|
-Generated Location: (982:32,22 [4] )
+Generated Location: (1080:32,22 [4] )
|Html|
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.codegen.cs
index fdbe289ee1..b9e65d6423 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.codegen.cs
@@ -1,4 +1,4 @@
-#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "1f010500f93116162444110956e512df61642f4e"
+#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "a039b7091118c718dc3023b6ac58d9645cb58e59"
namespace AspNetCore
{
#line hidden
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml
index d840486787..8cd61913e4 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml
@@ -2,4 +2,4 @@
@inject MyApp MyPropertyName;
@inject MyService Html;
@inject MyApp MyPropertyName2 ;
-@inject MyService Html2 ;
\ No newline at end of file
+@inject MyService Html2 ;
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.codegen.cs
index fc69262ae0..d86a855e7e 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.codegen.cs
@@ -14,11 +14,11 @@ namespace AspNetCore
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
-MyModel __typeHelper = null;
+MyModel __typeHelper = default(MyModel);
}
))();
((System.Action)(() => {
-MyApp __typeHelper = null;
+MyApp __typeHelper = default(MyApp);
}
))();
((System.Action)(() => {
@@ -26,7 +26,7 @@ global::System.Object MyPropertyName = null;
}
))();
((System.Action)(() => {
-MyService __typeHelper = null;
+MyService __typeHelper = default(MyService);
}
))();
((System.Action)(() => {
@@ -34,7 +34,7 @@ global::System.Object Html = null;
}
))();
((System.Action)(() => {
-MyApp __typeHelper = null;
+MyApp __typeHelper = default(MyApp);
}
))();
((System.Action)(() => {
@@ -42,7 +42,7 @@ global::System.Object MyPropertyName2 = null;
}
))();
((System.Action)(() => {
-MyService __typeHelper = null;
+MyService __typeHelper = default(MyService);
}
))();
((System.Action)(() => {
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.mappings.txt
index 8ea995c126..65cdba489e 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.mappings.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.mappings.txt
@@ -1,45 +1,45 @@
-Source Location: (7:0,7 [7] /TestFiles/Input/InjectWithSemicolon.cshtml)
+Source Location: (7:0,7 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyModel|
-Generated Location: (580:16,0 [7] )
+Generated Location: (634:16,0 [7] )
|MyModel|
-Source Location: (24:1,8 [5] /TestFiles/Input/InjectWithSemicolon.cshtml)
+Source Location: (24:1,8 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyApp|
-Generated Location: (670:20,0 [5] )
+Generated Location: (736:20,0 [5] )
|MyApp|
-Source Location: (30:1,14 [14] /TestFiles/Input/InjectWithSemicolon.cshtml)
+Source Location: (30:1,14 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyPropertyName|
-Generated Location: (780:24,22 [14] )
+Generated Location: (856:24,22 [14] )
|MyPropertyName|
-Source Location: (58:2,8 [17] /TestFiles/Input/InjectWithSemicolon.cshtml)
+Source Location: (58:2,8 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyService|
-Generated Location: (864:28,0 [17] )
+Generated Location: (940:28,0 [17] )
|MyService|
-Source Location: (76:2,26 [4] /TestFiles/Input/InjectWithSemicolon.cshtml)
+Source Location: (76:2,26 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|Html|
-Generated Location: (986:32,22 [4] )
+Generated Location: (1084:32,22 [4] )
|Html|
-Source Location: (93:3,8 [5] /TestFiles/Input/InjectWithSemicolon.cshtml)
+Source Location: (93:3,8 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyApp|
-Generated Location: (1060:36,0 [5] )
+Generated Location: (1158:36,0 [5] )
|MyApp|
-Source Location: (99:3,14 [15] /TestFiles/Input/InjectWithSemicolon.cshtml)
+Source Location: (99:3,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyPropertyName2|
-Generated Location: (1170:40,22 [15] )
+Generated Location: (1278:40,22 [15] )
|MyPropertyName2|
-Source Location: (129:4,8 [17] /TestFiles/Input/InjectWithSemicolon.cshtml)
+Source Location: (129:4,8 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyService|
-Generated Location: (1255:44,0 [17] )
+Generated Location: (1363:44,0 [17] )
|MyService|
-Source Location: (147:4,26 [5] /TestFiles/Input/InjectWithSemicolon.cshtml)
+Source Location: (147:4,26 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|Html2|
-Generated Location: (1377:48,22 [5] )
+Generated Location: (1507:48,22 [5] )
|Html2|
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.codegen.cs
index 25a09c707a..d5789a41ee 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.codegen.cs
@@ -1,4 +1,4 @@
-#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "fc807ec0dc76610bdca62f482fefd7f584348df9"
+#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "5010aab35d235175dab517f8018e41aee9a2ac7f"
namespace AspNetCore
{
#line hidden
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.codegen.cs
index 528203b95c..a1cfde9afe 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.codegen.cs
@@ -9,17 +9,12 @@ namespace AspNetCore
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
-#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml"
-using MyNamespace;
-
-#line default
-#line hidden
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inject_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage
{
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
-MyApp __typeHelper = null;
+MyApp __typeHelper = default(MyApp);
}
))();
((System.Action)(() => {
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.ir.txt
index 3b47426709..ab66695baf 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.ir.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.ir.txt
@@ -9,7 +9,6 @@ Document -
UsingStatement - (102:4,1 [30] ) - Microsoft.AspNetCore.Mvc
UsingStatement - (135:5,1 [40] ) - Microsoft.AspNetCore.Mvc.Rendering
UsingStatement - (178:6,1 [43] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
- UsingStatement - (1:0,1 [17] Inject.cshtml) - MyNamespace
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inject_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage -
DesignTimeDirective -
DirectiveToken - (231:7,8 [62] ) - global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
@@ -25,13 +24,11 @@ Document -
DirectiveToken - (617:12,14 [96] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper, Microsoft.AspNetCore.Mvc.Razor
DirectiveToken - (729:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper, Microsoft.AspNetCore.Mvc.Razor
DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor
- DirectiveToken - (28:1,8 [5] Inject.cshtml) - MyApp
- DirectiveToken - (34:1,14 [14] Inject.cshtml) - MyPropertyName
+ DirectiveToken - (8:0,8 [5] Inject.cshtml) - MyApp
+ DirectiveToken - (14:0,14 [14] Inject.cshtml) - MyPropertyName
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
- HtmlContent - (18:0,18 [2] Inject.cshtml)
- RazorIRToken - (18:0,18 [2] Inject.cshtml) - Html - \n
InjectDirective -
InjectDirective -
InjectDirective -
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.mappings.txt
index 8abe5d63f5..1c7b82c9f5 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.mappings.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.mappings.txt
@@ -1,15 +1,10 @@
-Source Location: (1:0,1 [17] /TestFiles/Input/Inject.cshtml)
-|using MyNamespace|
-Generated Location: (379:12,0 [17] )
-|using MyNamespace|
-
-Source Location: (28:1,8 [5] /TestFiles/Input/Inject.cshtml)
+Source Location: (8:0,8 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml)
|MyApp|
-Generated Location: (674:21,0 [5] )
+Generated Location: (621:16,0 [5] )
|MyApp|
-Source Location: (34:1,14 [14] /TestFiles/Input/Inject.cshtml)
+Source Location: (14:0,14 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml)
|MyPropertyName|
-Generated Location: (784:25,22 [14] )
+Generated Location: (741:20,22 [14] )
|MyPropertyName|
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.codegen.cs
index 88a76e2d93..9246779fcd 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.codegen.cs
@@ -1,4 +1,4 @@
-#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "225760ec3beca02a80469066fab66433e90ddc2e"
+#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "c711078454f5b0e8d2cb77d9cb7fa88cca32b884"
namespace AspNetCore
{
#line hidden
@@ -9,11 +9,6 @@ namespace AspNetCore
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
-#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml"
-using MyNamespace;
-
-#line default
-#line hidden
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inject_cshtml : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage
{
#pragma warning disable 1998
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.ir.txt
index 57fd3d3324..e055a8bc86 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.ir.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_Runtime.ir.txt
@@ -8,7 +8,6 @@ Document -
UsingStatement - (102:4,1 [32] ) - Microsoft.AspNetCore.Mvc
UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
- UsingStatement - (1:0,1 [19] Inject.cshtml) - MyNamespace
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inject_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage -
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
InjectDirective -
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.mappings.txt
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml
index 920e83919d..c488b1e443 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml
@@ -1,6 +1,6 @@
@model DateTime
-@addTagHelper Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper, Microsoft.AspNetCore.Mvc.Razor.Extensions.Test
+@addTagHelper "InputTestTagHelper, AppCode"
-
+
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.codegen.cs
index 1537694e82..05f63f2a40 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.codegen.cs
@@ -14,29 +14,29 @@ namespace AspNetCore
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
-DateTime __typeHelper = null;
+DateTime __typeHelper = default(DateTime);
}
))();
((System.Action)(() => {
-global::System.Object __typeHelper = "Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper, Microsoft.AspNetCore.Mvc.Razor.Extensions.Test";
+global::System.Object __typeHelper = "InputTestTagHelper, AppCode";
}
))();
}
#pragma warning restore 219
private static System.Object __o = null;
- private global::Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper = null;
+ private global::InputTestTagHelper __InputTestTagHelper = null;
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
- __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper = CreateTagHelper();
+ __InputTestTagHelper = CreateTagHelper();
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml"
-__Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Now);
+__InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Date);
#line default
#line hidden
- __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper = CreateTagHelper();
+ __InputTestTagHelper = CreateTagHelper();
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml"
-__Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => Model);
+__InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => Model);
#line default
#line hidden
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.ir.txt
index 9332f1746b..80cec8c792 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.ir.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.ir.txt
@@ -25,38 +25,38 @@ Document -
DirectiveToken - (729:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper, Microsoft.AspNetCore.Mvc.Razor
DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor
DirectiveToken - (7:0,7 [8] ModelExpressionTagHelper.cshtml) - DateTime
- DirectiveToken - (33:2,14 [108] ModelExpressionTagHelper.cshtml) - Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper, Microsoft.AspNetCore.Mvc.Razor.Extensions.Test
+ DirectiveToken - (33:2,14 [29] ModelExpressionTagHelper.cshtml) - "InputTestTagHelper, AppCode"
CSharpStatement -
RazorIRToken - - CSharp - private static System.Object __o = null;
- DeclareTagHelperFields - - Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper
+ DeclareTagHelperFields - - InputTestTagHelper
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (17:1,0 [2] ModelExpressionTagHelper.cshtml)
RazorIRToken - (17:1,0 [2] ModelExpressionTagHelper.cshtml) - Html - \n
- HtmlContent - (141:2,122 [4] ModelExpressionTagHelper.cshtml)
- RazorIRToken - (141:2,122 [4] ModelExpressionTagHelper.cshtml) - Html - \n\n
- TagHelper - (145:4,0 [24] ModelExpressionTagHelper.cshtml)
+ HtmlContent - (62:2,43 [4] ModelExpressionTagHelper.cshtml)
+ RazorIRToken - (62:2,43 [4] ModelExpressionTagHelper.cshtml) - Html - \n\n
+ TagHelper - (66:4,0 [25] ModelExpressionTagHelper.cshtml)
InitializeTagHelperStructure - - input-test - TagMode.SelfClosing
- CreateTagHelper - - Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper
- SetTagHelperProperty - (162:4,17 [3] ModelExpressionTagHelper.cshtml) - for - For - HtmlAttributeValueStyle.DoubleQuotes
+ CreateTagHelper - - InputTestTagHelper
+ SetTagHelperProperty - (83:4,17 [4] ModelExpressionTagHelper.cshtml) - for - For - HtmlAttributeValueStyle.DoubleQuotes
CSharpExpression -
RazorIRToken - - CSharp - ModelExpressionProvider.CreateModelExpression(ViewData, __model =>
RazorIRToken - - CSharp - __model.
- RazorIRToken - (162:4,17 [3] ModelExpressionTagHelper.cshtml) - CSharp - Now
+ RazorIRToken - (83:4,17 [4] ModelExpressionTagHelper.cshtml) - CSharp - Date
RazorIRToken - - CSharp - )
ExecuteTagHelpers -
- HtmlContent - (169:4,24 [2] ModelExpressionTagHelper.cshtml)
- RazorIRToken - (169:4,24 [2] ModelExpressionTagHelper.cshtml) - Html - \n
- TagHelper - (171:5,0 [27] ModelExpressionTagHelper.cshtml)
+ HtmlContent - (91:4,25 [2] ModelExpressionTagHelper.cshtml)
+ RazorIRToken - (91:4,25 [2] ModelExpressionTagHelper.cshtml) - Html - \n
+ TagHelper - (93:5,0 [27] ModelExpressionTagHelper.cshtml)
InitializeTagHelperStructure - - input-test - TagMode.SelfClosing
- CreateTagHelper - - Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper
- SetTagHelperProperty - (188:5,17 [6] ModelExpressionTagHelper.cshtml) - for - For - HtmlAttributeValueStyle.DoubleQuotes
+ CreateTagHelper - - InputTestTagHelper
+ SetTagHelperProperty - (110:5,17 [6] ModelExpressionTagHelper.cshtml) - for - For - HtmlAttributeValueStyle.DoubleQuotes
CSharpExpression -
RazorIRToken - - CSharp - ModelExpressionProvider.CreateModelExpression(ViewData, __model =>
- RazorIRToken - (189:5,18 [5] ModelExpressionTagHelper.cshtml) - CSharp - Model
+ RazorIRToken - (111:5,18 [5] ModelExpressionTagHelper.cshtml) - CSharp - Model
RazorIRToken - - CSharp - )
ExecuteTagHelpers -
- HtmlContent - (198:5,27 [2] ModelExpressionTagHelper.cshtml)
- RazorIRToken - (198:5,27 [2] ModelExpressionTagHelper.cshtml) - Html - \n
+ HtmlContent - (120:5,27 [2] ModelExpressionTagHelper.cshtml)
+ RazorIRToken - (120:5,27 [2] ModelExpressionTagHelper.cshtml) - Html - \n
InjectDirective -
InjectDirective -
InjectDirective -
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.codegen.cs
index 1149ebfcfd..853f469d4b 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.codegen.cs
@@ -1,4 +1,4 @@
-#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "55aa7d9113d1666f0c8e05c6ad9b86fc8464b277"
+#pragma checksum "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0906a816db301fe624bbe5a96c4b3013071ea492"
namespace AspNetCore
{
#line hidden
@@ -29,28 +29,28 @@ namespace AspNetCore
return __backed__tagHelperScopeManager;
}
}
- private global::Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper = null;
+ private global::InputTestTagHelper __InputTestTagHelper = null;
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
BeginContext(17, 2, true);
WriteLiteral("\r\n");
EndContext();
- BeginContext(143, 2, true);
+ BeginContext(64, 2, true);
WriteLiteral("\r\n");
EndContext();
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input-test", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
}
);
- __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper = CreateTagHelper();
- __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper);
+ __InputTestTagHelper = CreateTagHelper();
+ __tagHelperExecutionContext.Add(__InputTestTagHelper);
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml"
-__Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Now);
+__InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Date);
#line default
#line hidden
- __tagHelperExecutionContext.AddTagHelperAttribute("for", __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
- BeginContext(145, 24, false);
+ __tagHelperExecutionContext.AddTagHelperAttribute("for", __InputTestTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
+ BeginContext(66, 25, false);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
@@ -59,21 +59,21 @@ __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For = ModelExpres
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
EndContext();
- BeginContext(169, 2, true);
+ BeginContext(91, 2, true);
WriteLiteral("\r\n");
EndContext();
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input-test", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
}
);
- __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper = CreateTagHelper();
- __tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper);
+ __InputTestTagHelper = CreateTagHelper();
+ __tagHelperExecutionContext.Add(__InputTestTagHelper);
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml"
-__Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => Model);
+__InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => Model);
#line default
#line hidden
- __tagHelperExecutionContext.AddTagHelperAttribute("for", __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
- BeginContext(171, 27, false);
+ __tagHelperExecutionContext.AddTagHelperAttribute("for", __InputTestTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
+ BeginContext(93, 27, false);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
@@ -82,7 +82,7 @@ __Microsoft_AspNetCore_Mvc_Razor_Extensions_InputTestTagHelper.For = ModelExpres
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
EndContext();
- BeginContext(198, 2, true);
+ BeginContext(120, 2, true);
WriteLiteral("\r\n");
EndContext();
}
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.ir.txt
index d97e464ce2..880c2ed49d 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.ir.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.ir.txt
@@ -9,7 +9,7 @@ Document -
UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering
UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ModelExpressionTagHelper_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage -
- DeclareTagHelperFields - - Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper
+ DeclareTagHelperFields - - InputTestTagHelper
MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync
CSharpStatement -
RazorIRToken - - CSharp - BeginContext(17, 2, true);
@@ -18,48 +18,48 @@ Document -
CSharpStatement -
RazorIRToken - - CSharp - EndContext();
CSharpStatement -
- RazorIRToken - - CSharp - BeginContext(143, 2, true);
- HtmlContent - (143:3,0 [2] ModelExpressionTagHelper.cshtml)
- RazorIRToken - (143:3,0 [2] ModelExpressionTagHelper.cshtml) - Html - \n
+ RazorIRToken - - CSharp - BeginContext(64, 2, true);
+ HtmlContent - (64:3,0 [2] ModelExpressionTagHelper.cshtml)
+ RazorIRToken - (64:3,0 [2] ModelExpressionTagHelper.cshtml) - Html - \n
CSharpStatement -
RazorIRToken - - CSharp - EndContext();
- TagHelper - (145:4,0 [24] ModelExpressionTagHelper.cshtml)
+ TagHelper - (66:4,0 [25] ModelExpressionTagHelper.cshtml)
InitializeTagHelperStructure - - input-test - TagMode.SelfClosing
- CreateTagHelper - - Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper
- SetTagHelperProperty - (162:4,17 [3] ModelExpressionTagHelper.cshtml) - for - For - HtmlAttributeValueStyle.DoubleQuotes
+ CreateTagHelper - - InputTestTagHelper
+ SetTagHelperProperty - (83:4,17 [4] ModelExpressionTagHelper.cshtml) - for - For - HtmlAttributeValueStyle.DoubleQuotes
CSharpExpression -
RazorIRToken - - CSharp - ModelExpressionProvider.CreateModelExpression(ViewData, __model =>
RazorIRToken - - CSharp - __model.
- RazorIRToken - (162:4,17 [3] ModelExpressionTagHelper.cshtml) - CSharp - Now
+ RazorIRToken - (83:4,17 [4] ModelExpressionTagHelper.cshtml) - CSharp - Date
RazorIRToken - - CSharp - )
CSharpStatement -
- RazorIRToken - - CSharp - BeginContext(145, 24, false);
+ RazorIRToken - - CSharp - BeginContext(66, 25, false);
ExecuteTagHelpers -
CSharpStatement -
RazorIRToken - - CSharp - EndContext();
CSharpStatement -
- RazorIRToken - - CSharp - BeginContext(169, 2, true);
- HtmlContent - (169:4,24 [2] ModelExpressionTagHelper.cshtml)
- RazorIRToken - (169:4,24 [2] ModelExpressionTagHelper.cshtml) - Html - \n
+ RazorIRToken - - CSharp - BeginContext(91, 2, true);
+ HtmlContent - (91:4,25 [2] ModelExpressionTagHelper.cshtml)
+ RazorIRToken - (91:4,25 [2] ModelExpressionTagHelper.cshtml) - Html - \n
CSharpStatement -
RazorIRToken - - CSharp - EndContext();
- TagHelper - (171:5,0 [27] ModelExpressionTagHelper.cshtml)
+ TagHelper - (93:5,0 [27] ModelExpressionTagHelper.cshtml)
InitializeTagHelperStructure - - input-test - TagMode.SelfClosing
- CreateTagHelper - - Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper
- SetTagHelperProperty - (188:5,17 [6] ModelExpressionTagHelper.cshtml) - for - For - HtmlAttributeValueStyle.DoubleQuotes
+ CreateTagHelper - - InputTestTagHelper
+ SetTagHelperProperty - (110:5,17 [6] ModelExpressionTagHelper.cshtml) - for - For - HtmlAttributeValueStyle.DoubleQuotes
CSharpExpression -
RazorIRToken - - CSharp - ModelExpressionProvider.CreateModelExpression(ViewData, __model =>
- RazorIRToken - (189:5,18 [5] ModelExpressionTagHelper.cshtml) - CSharp - Model
+ RazorIRToken - (111:5,18 [5] ModelExpressionTagHelper.cshtml) - CSharp - Model
RazorIRToken - - CSharp - )
CSharpStatement -
- RazorIRToken - - CSharp - BeginContext(171, 27, false);
+ RazorIRToken - - CSharp - BeginContext(93, 27, false);
ExecuteTagHelpers -
CSharpStatement -
RazorIRToken - - CSharp - EndContext();
CSharpStatement -
- RazorIRToken - - CSharp - BeginContext(198, 2, true);
- HtmlContent - (198:5,27 [2] ModelExpressionTagHelper.cshtml)
- RazorIRToken - (198:5,27 [2] ModelExpressionTagHelper.cshtml) - Html - \n
+ RazorIRToken - - CSharp - BeginContext(120, 2, true);
+ HtmlContent - (120:5,27 [2] ModelExpressionTagHelper.cshtml)
+ RazorIRToken - (120:5,27 [2] ModelExpressionTagHelper.cshtml) - Html - \n
CSharpStatement -
RazorIRToken - - CSharp - EndContext();
InjectDirective -
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.codegen.cs
index ea02db168b..a657a1b30d 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.codegen.cs
@@ -14,7 +14,7 @@ namespace AspNetCore
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
-System.Collections.IEnumerable __typeHelper = null;
+System.Collections.IEnumerable __typeHelper = default(System.Collections.IEnumerable);
}
))();
}
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.mappings.txt
index 539c22b2dc..9eb234d5ce 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.mappings.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
-Source Location: (7:0,7 [30] /TestFiles/Input/Model.cshtml)
+Source Location: (7:0,7 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model.cshtml)
|System.Collections.IEnumerable|
-Generated Location: (612:16,0 [30] )
+Generated Location: (643:16,0 [30] )
|System.Collections.IEnumerable|
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.codegen.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.codegen.cs
index 364e2e5325..9292279e95 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.codegen.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.codegen.cs
@@ -14,11 +14,11 @@ namespace AspNetCore
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
-ThisShouldBeGenerated __typeHelper = null;
+ThisShouldBeGenerated __typeHelper = default(ThisShouldBeGenerated);
}
))();
((System.Action)(() => {
-System.Collections.IEnumerable __typeHelper = null;
+System.Collections.IEnumerable __typeHelper = default(System.Collections.IEnumerable);
}
))();
}
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.mappings.txt
index a061abc29d..28762ad4cf 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.mappings.txt
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.mappings.txt
@@ -1,10 +1,10 @@
-Source Location: (7:0,7 [21] /TestFiles/Input/MultipleModels.cshtml)
+Source Location: (7:0,7 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels.cshtml)
|ThisShouldBeGenerated|
-Generated Location: (621:16,0 [21] )
+Generated Location: (652:16,0 [21] )
|ThisShouldBeGenerated|
-Source Location: (37:1,7 [30] /TestFiles/Input/MultipleModels.cshtml)
+Source Location: (37:1,7 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels.cshtml)
|System.Collections.IEnumerable|
-Generated Location: (725:20,0 [30] )
+Generated Location: (782:20,0 [30] )
|System.Collections.IEnumerable|
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.mappings.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.mappings.txt
new file mode 100644
index 0000000000..e7db979640
--- /dev/null
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.mappings.txt
@@ -0,0 +1,5 @@
+Source Location: (18:1,11 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace.cshtml)
+|Test.Namespace|
+Generated Location: (612:16,44 [14] )
+|Test.Namespace|
+
diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml
index e23f388aad..2bc617c509 100644
--- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml
+++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml
@@ -1,7 +1,7 @@
@page
@model NewModel
-@addTagHelper "*, TestAssembly"
+@addTagHelper "*, AppCode"
@using Microsoft.AspNetCore.Mvc.RazorPages
@functions {
@@ -26,7 +26,7 @@