From 2afe2e16277995b4af37e8eb3ffb9eccda49bc67 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Thu, 11 May 2017 10:14:57 -0700 Subject: [PATCH] Rename RazorMethodDeclaration -> MethodDeclaration --- .../MvcViewDocumentClassifierPass.cs | 2 +- .../RazorPageDocumentClassifierPass.cs | 2 +- .../CodeGeneration/DefaultDocumentWriter.cs | 2 +- .../DefaultDocumentClassifierPass.cs | 2 +- .../DefaultDocumentClassifierPassFeature.cs | 4 ++-- .../DocumentClassifierPassBase.cs | 4 ++-- .../Intermediate/DocumentIRNodeExtensions.cs | 4 ++-- ...clarationIRNode.cs => MethodDeclarationIRNode.cs} | 2 +- .../Intermediate/RazorIRNodeVisitor.cs | 2 +- .../MvcViewDocumentClassifierPassTest.cs | 4 ++-- .../RazorPageDocumentClassifierPassTest.cs | 4 ++-- .../Basic_DesignTime.ir.txt | 2 +- .../Basic_Runtime.ir.txt | 2 +- .../IncompleteDirectives_DesignTime.ir.txt | 2 +- .../IncompleteDirectives_Runtime.ir.txt | 2 +- .../InheritsViewModel_DesignTime.ir.txt | 2 +- .../InheritsViewModel_Runtime.ir.txt | 2 +- .../InheritsWithViewImports_DesignTime.ir.txt | 2 +- .../InheritsWithViewImports_Runtime.ir.txt | 2 +- .../InjectWithModel_DesignTime.ir.txt | 2 +- .../InjectWithModel_Runtime.ir.txt | 2 +- .../InjectWithSemicolon_DesignTime.ir.txt | 2 +- .../InjectWithSemicolon_Runtime.ir.txt | 2 +- .../Inject_DesignTime.ir.txt | 2 +- .../Inject_Runtime.ir.txt | 2 +- .../MalformedPageDirective_DesignTime.ir.txt | 2 +- .../MalformedPageDirective_Runtime.ir.txt | 2 +- .../ModelExpressionTagHelper_DesignTime.ir.txt | 2 +- .../ModelExpressionTagHelper_Runtime.ir.txt | 2 +- .../Model_DesignTime.ir.txt | 2 +- .../Model_Runtime.ir.txt | 2 +- .../MultipleModels_DesignTime.ir.txt | 2 +- .../PageWithNamespace_DesignTime.ir.txt | 2 +- .../PageWithNamespace_Runtime.ir.txt | 2 +- .../RazorPagesWithoutModel_DesignTime.ir.txt | 2 +- .../RazorPagesWithoutModel_Runtime.ir.txt | 2 +- .../RazorPages_DesignTime.ir.txt | 2 +- .../RazorPages_Runtime.ir.txt | 2 +- .../ViewWithNamespace_DesignTime.ir.txt | 2 +- .../ViewWithNamespace_Runtime.ir.txt | 2 +- .../_ViewImports_DesignTime.ir.txt | 2 +- .../_ViewImports_Runtime.ir.txt | 2 +- .../CodeGeneration/DefaultDocumentWriterTest.cs | 2 +- .../DefaultDirectiveIRPassTest.cs | 8 ++++---- .../DefaultDocumentClassifierPassTest.cs | 2 +- .../DirectiveRemovalIROptimizationPassTest.cs | 4 ++-- .../DocumentClassifierPassBaseTest.cs | 12 ++++++------ .../Intermediate/DocumentIRNodeExtensionsTest.cs | 2 +- .../BasicIntegrationTest/CustomDirective.ir.txt | 2 +- .../BasicIntegrationTest/Empty.ir.txt | 2 +- .../BasicIntegrationTest/HelloWorld.ir.txt | 2 +- .../AddTagHelperDirective_DesignTime.ir.txt | 2 +- .../AttributeTargetingTagHelpers_DesignTime.ir.txt | 2 +- .../AttributeTargetingTagHelpers_Runtime.ir.txt | 2 +- .../Await_DesignTime.ir.txt | 2 +- .../Await_Runtime.ir.txt | 2 +- .../BasicImports_DesignTime.ir.txt | 2 +- .../BasicImports_Runtime.ir.txt | 2 +- .../BasicTagHelpers_DesignTime.ir.txt | 2 +- .../BasicTagHelpers_Prefixed_DesignTime.ir.txt | 2 +- .../BasicTagHelpers_Prefixed_Runtime.ir.txt | 2 +- .../BasicTagHelpers_RemoveTagHelper_Runtime.ir.txt | 2 +- .../BasicTagHelpers_Runtime.ir.txt | 2 +- .../Blocks_DesignTime.ir.txt | 2 +- .../Blocks_Runtime.ir.txt | 2 +- .../CSharp7_DesignTime.ir.txt | 2 +- .../CSharp7_Runtime.ir.txt | 2 +- .../CodeBlockAtEOF_DesignTime.ir.txt | 2 +- .../CodeBlockAtEOF_Runtime.ir.txt | 2 +- .../CodeBlockWithTextElement_DesignTime.ir.txt | 2 +- .../CodeBlockWithTextElement_Runtime.ir.txt | 2 +- .../CodeBlock_DesignTime.ir.txt | 2 +- .../CodeBlock_Runtime.ir.txt | 2 +- .../ComplexTagHelpers_DesignTime.ir.txt | 2 +- .../ComplexTagHelpers_Runtime.ir.txt | 2 +- .../ConditionalAttributes_DesignTime.ir.txt | 2 +- .../ConditionalAttributes_Runtime.ir.txt | 2 +- .../CssSelectorTagHelperAttributes_Runtime.ir.txt | 2 +- .../DesignTime_DesignTime.ir.txt | 2 +- .../DuplicateAttributeTagHelpers_DesignTime.ir.txt | 2 +- .../DuplicateAttributeTagHelpers_Runtime.ir.txt | 2 +- .../DynamicAttributeTagHelpers_DesignTime.ir.txt | 2 +- .../DynamicAttributeTagHelpers_Runtime.ir.txt | 2 +- .../EmptyAttributeTagHelpers_DesignTime.ir.txt | 2 +- .../EmptyAttributeTagHelpers_Runtime.ir.txt | 2 +- .../EmptyCodeBlock_DesignTime.ir.txt | 2 +- .../EmptyCodeBlock_Runtime.ir.txt | 2 +- .../EmptyExplicitExpression_DesignTime.ir.txt | 2 +- .../EmptyExplicitExpression_Runtime.ir.txt | 2 +- .../EmptyImplicitExpressionInCode_DesignTime.ir.txt | 2 +- .../EmptyImplicitExpressionInCode_Runtime.ir.txt | 2 +- .../EmptyImplicitExpression_DesignTime.ir.txt | 2 +- .../EmptyImplicitExpression_Runtime.ir.txt | 2 +- .../EnumTagHelpers_DesignTime.ir.txt | 2 +- .../EnumTagHelpers_Runtime.ir.txt | 2 +- .../EscapedTagHelpers_DesignTime.ir.txt | 2 +- .../EscapedTagHelpers_Runtime.ir.txt | 2 +- .../ExplicitExpressionAtEOF_DesignTime.ir.txt | 2 +- .../ExplicitExpressionAtEOF_Runtime.ir.txt | 2 +- .../ExplicitExpressionWithMarkup_DesignTime.ir.txt | 2 +- .../ExplicitExpressionWithMarkup_Runtime.ir.txt | 2 +- .../ExplicitExpression_DesignTime.ir.txt | 2 +- .../ExplicitExpression_Runtime.ir.txt | 2 +- .../ExpressionsInCode_DesignTime.ir.txt | 2 +- .../ExpressionsInCode_Runtime.ir.txt | 2 +- .../FunctionsBlockMinimal_DesignTime.ir.txt | 2 +- .../FunctionsBlockMinimal_Runtime.ir.txt | 2 +- .../FunctionsBlock_DesignTime.ir.txt | 2 +- .../FunctionsBlock_Runtime.ir.txt | 2 +- .../HiddenSpansInCode_DesignTime.ir.txt | 2 +- .../HiddenSpansInCode_Runtime.ir.txt | 2 +- .../HtmlCommentWithQuote_Double_DesignTime.ir.txt | 2 +- .../HtmlCommentWithQuote_Double_Runtime.ir.txt | 2 +- .../HtmlCommentWithQuote_Single_DesignTime.ir.txt | 2 +- .../HtmlCommentWithQuote_Single_Runtime.ir.txt | 2 +- .../ImplicitExpressionAtEOF_DesignTime.ir.txt | 2 +- .../ImplicitExpressionAtEOF_Runtime.ir.txt | 2 +- .../ImplicitExpression_DesignTime.ir.txt | 2 +- .../ImplicitExpression_Runtime.ir.txt | 2 +- .../IncompleteDirectives_DesignTime.ir.txt | 2 +- .../IncompleteDirectives_Runtime.ir.txt | 2 +- .../IncompleteTagHelper_DesignTime.ir.txt | 2 +- .../IncompleteTagHelper_Runtime.ir.txt | 2 +- .../Inherits_DesignTime.ir.txt | 2 +- .../Inherits_Runtime.ir.txt | 2 +- .../InlineBlocks_DesignTime.ir.txt | 2 +- .../InlineBlocks_Runtime.ir.txt | 2 +- .../Instrumented_DesignTime.ir.txt | 2 +- .../Instrumented_Runtime.ir.txt | 2 +- .../MarkupInCodeBlock_DesignTime.ir.txt | 2 +- .../MarkupInCodeBlock_Runtime.ir.txt | 2 +- .../MinimizedTagHelpers_DesignTime.ir.txt | 2 +- .../MinimizedTagHelpers_Runtime.ir.txt | 2 +- .../NestedCSharp_DesignTime.ir.txt | 2 +- .../NestedCSharp_Runtime.ir.txt | 2 +- .../NestedCodeBlocks_DesignTime.ir.txt | 2 +- .../NestedCodeBlocks_Runtime.ir.txt | 2 +- .../NestedScriptTagTagHelpers_DesignTime.ir.txt | 2 +- .../NestedScriptTagTagHelpers_Runtime.ir.txt | 2 +- .../NestedTagHelpers_DesignTime.ir.txt | 2 +- .../NestedTagHelpers_Runtime.ir.txt | 2 +- .../NoLinePragmas_DesignTime.ir.txt | 2 +- .../NoLinePragmas_Runtime.ir.txt | 2 +- .../NullConditionalExpressions_DesignTime.ir.txt | 2 +- .../NullConditionalExpressions_Runtime.ir.txt | 2 +- .../OpenedIf_DesignTime.ir.txt | 2 +- .../OpenedIf_Runtime.ir.txt | 2 +- .../ParserError_DesignTime.ir.txt | 2 +- .../ParserError_Runtime.ir.txt | 2 +- .../PrefixedAttributeTagHelpers_DesignTime.ir.txt | 2 +- .../PrefixedAttributeTagHelpers_Runtime.ir.txt | 2 +- .../RazorComments_DesignTime.ir.txt | 2 +- .../RazorComments_Runtime.ir.txt | 2 +- .../RemoveTagHelperDirective_DesignTime.ir.txt | 2 +- .../Sections_DesignTime.ir.txt | 2 +- .../Sections_Runtime.ir.txt | 2 +- .../SimpleTagHelpers_DesignTime.ir.txt | 2 +- .../SimpleTagHelpers_Runtime.ir.txt | 2 +- .../SimpleUnspacedIf_DesignTime.ir.txt | 2 +- .../SimpleUnspacedIf_Runtime.ir.txt | 2 +- ...lperWithNewlineBeforeAttributes_DesignTime.ir.txt | 2 +- ...gHelperWithNewlineBeforeAttributes_Runtime.ir.txt | 2 +- .../SingleTagHelper_DesignTime.ir.txt | 2 +- .../SingleTagHelper_Runtime.ir.txt | 2 +- .../StringLiterals_DesignTime.ir.txt | 2 +- .../StringLiterals_Runtime.ir.txt | 2 +- .../SymbolBoundAttributes_DesignTime.ir.txt | 2 +- .../SymbolBoundAttributes_Runtime.ir.txt | 2 +- .../TagHelpersInSection_Runtime.ir.txt | 2 +- .../TagHelpersWithBoundAttributes_DesignTime.ir.txt | 2 +- .../TagHelpersWithBoundAttributes_Runtime.ir.txt | 2 +- .../TagHelpersWithPrefix_DesignTime.ir.txt | 2 +- .../TagHelpersWithPrefix_Runtime.ir.txt | 2 +- .../TagHelpersWithTemplate_DesignTime.ir.txt | 2 +- .../TagHelpersWithTemplate_Runtime.ir.txt | 2 +- ...persWithWeirdlySpacedAttributes_DesignTime.ir.txt | 2 +- ...HelpersWithWeirdlySpacedAttributes_Runtime.ir.txt | 2 +- .../Templates_DesignTime.ir.txt | 2 +- .../Templates_Runtime.ir.txt | 2 +- ...ransitionsInTagHelperAttributes_DesignTime.ir.txt | 2 +- .../TransitionsInTagHelperAttributes_Runtime.ir.txt | 2 +- .../UnfinishedExpressionInCode_DesignTime.ir.txt | 2 +- .../UnfinishedExpressionInCode_Runtime.ir.txt | 2 +- .../Usings_DesignTime.ir.txt | 2 +- .../Usings_Runtime.ir.txt | 2 +- .../ExtensibleDirectiveTest/NamespaceToken.ir.txt | 2 +- .../HtmlWithConditionalAttribute.ir.txt | 2 +- .../HtmlWithDataDashAttribute.ir.txt | 2 +- .../BasicTest.ir.txt | 2 +- .../NestedTagHelpers.ir.txt | 2 +- .../SimpleTagHelpers.ir.txt | 2 +- .../TagHelpersWithBoundAttributes.ir.txt | 2 +- .../Langauge/IntegrationTests/IntegrationTestBase.cs | 2 +- .../Langauge/IntegrationTests/RazorIRNodeWriter.cs | 2 +- 194 files changed, 208 insertions(+), 208 deletions(-) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{RazorMethodDeclarationIRNode.cs => MethodDeclarationIRNode.cs} (95%) diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs index 4341c8eec2..b95bcb5fff 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs @@ -19,7 +19,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions RazorCodeDocument codeDocument, NamespaceDeclarationIRNode @namespace, ClassDeclarationIRNode @class, - RazorMethodDeclarationIRNode method) + MethodDeclarationIRNode method) { var filePath = codeDocument.GetRelativePath() ?? codeDocument.Source.FileName; diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs index 3187b68b51..cbc277788a 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs @@ -22,7 +22,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions RazorCodeDocument codeDocument, NamespaceDeclarationIRNode @namespace, ClassDeclarationIRNode @class, - RazorMethodDeclarationIRNode method) + MethodDeclarationIRNode method) { var filePath = codeDocument.GetRelativePath() ?? codeDocument.Source.FileName; diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs index 2699bfcbdf..9fb6bf645d 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs @@ -138,7 +138,7 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration } } - public override void VisitRazorMethodDeclaration(RazorMethodDeclarationIRNode node) + public override void VisitRazorMethodDeclaration(MethodDeclarationIRNode node) { Context.Writer.WriteLine("#pragma warning disable 1998"); diff --git a/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPass.cs b/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPass.cs index 8fbfe1ecac..7f9b796e53 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPass.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPass.cs @@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore.Razor.Language RazorCodeDocument codeDocument, NamespaceDeclarationIRNode @namespace, ClassDeclarationIRNode @class, - RazorMethodDeclarationIRNode method) + MethodDeclarationIRNode method) { var configuration = Engine.Features.OfType().FirstOrDefault(); if (configuration != null) diff --git a/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPassFeature.cs b/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPassFeature.cs index 2ca00c329f..b67ac38aac 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPassFeature.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPassFeature.cs @@ -17,7 +17,7 @@ namespace Microsoft.AspNetCore.Razor.Language public IList> ConfigureNamespace { get; } = new List>(); - public IList> ConfigureMethod { get; } = - new List>(); + public IList> ConfigureMethod { get; } = + new List>(); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/DocumentClassifierPassBase.cs b/src/Microsoft.AspNetCore.Razor.Language/DocumentClassifierPassBase.cs index f6daec24fa..f0d8441e44 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/DocumentClassifierPassBase.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DocumentClassifierPassBase.cs @@ -54,7 +54,7 @@ namespace Microsoft.AspNetCore.Razor.Language var @class = new ClassDeclarationIRNode(); @class.Annotations[CommonAnnotations.PrimaryClass] = CommonAnnotations.PrimaryClass; - var method = new RazorMethodDeclarationIRNode(); + var method = new MethodDeclarationIRNode(); method.Annotations[CommonAnnotations.PrimaryMethod] = CommonAnnotations.PrimaryMethod; var documentBuilder = RazorIRBuilder.Create(irDocument); @@ -104,7 +104,7 @@ namespace Microsoft.AspNetCore.Razor.Language RazorCodeDocument codeDocument, NamespaceDeclarationIRNode @namespace, ClassDeclarationIRNode @class, - RazorMethodDeclarationIRNode @method) + MethodDeclarationIRNode @method) { // Intentionally empty. } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIRNodeExtensions.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIRNodeExtensions.cs index 2092dcdb84..4bb770ec2e 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIRNodeExtensions.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIRNodeExtensions.cs @@ -17,14 +17,14 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate return FindWithAnnotation(node, CommonAnnotations.PrimaryClass); } - public static RazorMethodDeclarationIRNode FindPrimaryMethod(this DocumentIRNode node) + public static MethodDeclarationIRNode FindPrimaryMethod(this DocumentIRNode node) { if (node == null) { throw new ArgumentNullException(nameof(node)); } - return FindWithAnnotation(node, CommonAnnotations.PrimaryMethod); + return FindWithAnnotation(node, CommonAnnotations.PrimaryMethod); } public static NamespaceDeclarationIRNode FindPrimaryNamespace(this DocumentIRNode node) diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorMethodDeclarationIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIRNode.cs similarity index 95% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorMethodDeclarationIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIRNode.cs index 471a64f1e8..5615739a69 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorMethodDeclarationIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIRNode.cs @@ -6,7 +6,7 @@ using System.Collections.Generic; namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public class RazorMethodDeclarationIRNode : RazorIRNode + public class MethodDeclarationIRNode : RazorIRNode { private ItemCollection _annotations; diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeVisitor.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeVisitor.cs index d6cd6d6a7d..86b3d2a0fe 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeVisitor.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeVisitor.cs @@ -69,7 +69,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate VisitDefault(node); } - public virtual void VisitRazorMethodDeclaration(RazorMethodDeclarationIRNode node) + public virtual void VisitRazorMethodDeclaration(MethodDeclarationIRNode node) { VisitDefault(node); } diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs index c29a85d873..c2c427cbde 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs @@ -221,9 +221,9 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions public ClassDeclarationIRNode Class { get; private set; } - public RazorMethodDeclarationIRNode Method { get; private set; } + public MethodDeclarationIRNode Method { get; private set; } - public override void VisitRazorMethodDeclaration(RazorMethodDeclarationIRNode node) + public override void VisitRazorMethodDeclaration(MethodDeclarationIRNode node) { Method = node; } diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs index 84cd08bcbe..057602cb35 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs @@ -247,9 +247,9 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions public ClassDeclarationIRNode Class { get; private set; } - public RazorMethodDeclarationIRNode Method { get; private set; } + public MethodDeclarationIRNode Method { get; private set; } - public override void VisitRazorMethodDeclaration(RazorMethodDeclarationIRNode node) + public override void VisitRazorMethodDeclaration(MethodDeclarationIRNode node) { Method = node; } 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 b39fa1066d..79ffe75942 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 @@ -26,7 +26,7 @@ Document - DirectiveToken - (801:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + 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 -
- - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - RazorIRToken - - CSharp - BeginContext(0, 4, true); HtmlContent - (0:0,0 [4] Basic.cshtml) 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 7bbf98b402..5e70f92297 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 @@ -27,7 +27,7 @@ Document - DirectiveToken - (159:11,8 [8] IncompleteDirectives.cshtml) - TypeName CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (83:0,83 [4] IncompleteDirectives.cshtml) RazorIRToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n HtmlContent - (108:4,6 [5] IncompleteDirectives.cshtml) 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 7bbf98b402..5e70f92297 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 @@ -27,7 +27,7 @@ Document - DirectiveToken - (159:11,8 [8] IncompleteDirectives.cshtml) - TypeName CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (83:0,83 [4] IncompleteDirectives.cshtml) RazorIRToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n HtmlContent - (108:4,6 [5] IncompleteDirectives.cshtml) diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.ir.txt index 1a38c04b40..250190c36f 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.ir.txt @@ -28,7 +28,7 @@ Document - DirectiveToken - (45:1,7 [7] InheritsViewModel.cshtml) - MyModel CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - 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 1a38c04b40..250190c36f 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 @@ -28,7 +28,7 @@ Document - DirectiveToken - (45:1,7 [7] InheritsViewModel.cshtml) - MyModel CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.ir.txt index 6155f9b746..b63555452d 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.ir.txt @@ -28,7 +28,7 @@ Document - DirectiveToken - (14:1,7 [7] InheritsWithViewImports.cshtml) - MyModel CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - 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 6155f9b746..b63555452d 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 @@ -28,7 +28,7 @@ Document - DirectiveToken - (14:1,7 [7] InheritsWithViewImports.cshtml) - MyModel CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.ir.txt index 970446d0c2..18ead79e19 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.ir.txt @@ -31,7 +31,7 @@ Document - DirectiveToken - (72:2,26 [4] InjectWithModel.cshtml) - Html CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.ir.txt index 90867e4d49..1a5a3faa45 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_Runtime.ir.txt @@ -9,7 +9,7 @@ Document - UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithModel_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.ir.txt index 13d782fa29..b5872d5c20 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.ir.txt @@ -35,7 +35,7 @@ Document - DirectiveToken - (147:4,26 [5] InjectWithSemicolon.cshtml) - Html2 CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.ir.txt index ff19a9a6dc..9d4b6fda0c 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_Runtime.ir.txt @@ -9,7 +9,7 @@ Document - UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithSemicolon_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - 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 80c3b39acc..1ab4628103 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 @@ -29,7 +29,7 @@ Document - DirectiveToken - (34:1,14 [14] Inject.cshtml) - MyPropertyName CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + 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 - 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 eef45a3b66..66915fc4c8 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 @@ -10,7 +10,7 @@ Document - UsingStatement - (147:5,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 - - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.ir.txt index 56f9d162c4..74aa1ba8ed 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_DesignTime.ir.txt @@ -26,7 +26,7 @@ Document - DirectiveToken - (801:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (6:0,6 [49] MalformedPageDirective.cshtml) RazorIRToken - (6:0,6 [8] MalformedPageDirective.cshtml) - Html - "foo\n\n RazorIRToken - (14:2,0 [4] MalformedPageDirective.cshtml) - Html -

diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_Runtime.ir.txt index 5718255912..c1efcdf87b 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MalformedPageDirective_Runtime.ir.txt @@ -9,7 +9,7 @@ Document - UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MalformedPageDirective_cshtml - global::Microsoft.AspNetCore.Mvc.RazorPages.Page - - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - RazorIRToken - - CSharp - BeginContext(6, 49, true); HtmlContent - (6:0,6 [49] MalformedPageDirective.cshtml) 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 7e11b22245..c3925d7ee9 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 @@ -29,7 +29,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - Microsoft.AspNetCore.Mvc.Razor.Extensions.InputTestTagHelper - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + 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) 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 4fa593b1b4..ad26b54ad2 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 @@ -10,7 +10,7 @@ Document - UsingStatement - (147:5,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 - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - RazorIRToken - - CSharp - BeginContext(17, 2, true); HtmlContent - (17:1,0 [2] ModelExpressionTagHelper.cshtml) diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.ir.txt index 176a4793e6..4111be69d0 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.ir.txt @@ -27,7 +27,7 @@ Document - DirectiveToken - (7:0,7 [30] Model.cshtml) - System.Collections.IEnumerable CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_Runtime.ir.txt index 39120fb04d..0c75578cec 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_Runtime.ir.txt @@ -9,7 +9,7 @@ Document - UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Model_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.ir.txt index 9ac000ac50..a6796c17eb 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.ir.txt @@ -28,7 +28,7 @@ Document - DirectiveToken - (37:1,7 [30] MultipleModels.cshtml) - System.Collections.IEnumerable CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.ir.txt index cd853ae146..2875e0e4c3 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.ir.txt @@ -27,7 +27,7 @@ Document - DirectiveToken - (18:1,11 [14] PageWithNamespace.cshtml) - Test.Namespace CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (34:2,0 [20] PageWithNamespace.cshtml) RazorIRToken - (34:2,0 [4] PageWithNamespace.cshtml) - Html -

RazorIRToken - (38:2,4 [9] PageWithNamespace.cshtml) - Html - Hi There! diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_Runtime.ir.txt index 512d0daa1e..2a7b8b4c70 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_Runtime.ir.txt @@ -9,7 +9,7 @@ Document - UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - PageWithNamespace_Page - global::Microsoft.AspNetCore.Mvc.RazorPages.Page - - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - RazorIRToken - - CSharp - BeginContext(34, 20, true); HtmlContent - (34:2,0 [20] PageWithNamespace.cshtml) diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.ir.txt index b414518513..48eb44a556 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.ir.txt @@ -29,7 +29,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - DivTagHelper - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (7:1,0 [2] RazorPagesWithoutModel.cshtml) RazorIRToken - (7:1,0 [2] RazorPagesWithoutModel.cshtml) - Html - \n HtmlContent - (40:2,31 [2] RazorPagesWithoutModel.cshtml) diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.ir.txt index 49e931b53e..3b65d77915 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.ir.txt @@ -15,7 +15,7 @@ Document - DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - class - form-group - HtmlAttributeValueStyle.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - class - col-md-offset-2 col-md-10 - HtmlAttributeValueStyle.DoubleQuotes DeclareTagHelperFields - - DivTagHelper - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - RazorIRToken - - CSharp - BeginContext(7, 2, true); HtmlContent - (7:1,0 [2] RazorPagesWithoutModel.cshtml) diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.ir.txt index d9d20573c6..8ceac5592c 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.ir.txt @@ -30,7 +30,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - DivTagHelper - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (7:1,0 [2] RazorPages.cshtml) RazorIRToken - (7:1,0 [2] RazorPages.cshtml) - Html - \n HtmlContent - (57:3,31 [2] RazorPages.cshtml) diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.ir.txt index c2b67adb1e..efb085948e 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.ir.txt @@ -15,7 +15,7 @@ Document - DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - class - form-group - HtmlAttributeValueStyle.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - class - col-md-offset-2 col-md-10 - HtmlAttributeValueStyle.DoubleQuotes DeclareTagHelperFields - - DivTagHelper - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - RazorIRToken - - CSharp - BeginContext(7, 2, true); HtmlContent - (7:1,0 [2] RazorPages.cshtml) diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.ir.txt index 182196e08e..fb4978cbc7 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.ir.txt @@ -27,7 +27,7 @@ Document - DirectiveToken - (11:0,11 [14] ViewWithNamespace.cshtml) - Test.Namespace CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (27:1,0 [20] ViewWithNamespace.cshtml) RazorIRToken - (27:1,0 [4] ViewWithNamespace.cshtml) - Html -

RazorIRToken - (31:1,4 [9] ViewWithNamespace.cshtml) - Html - Hi There! diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_Runtime.ir.txt index 60e9a65d25..26aeb01b63 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_Runtime.ir.txt @@ -9,7 +9,7 @@ Document - UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - ViewWithNamespace_View - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - RazorIRToken - - CSharp - BeginContext(27, 20, true); HtmlContent - (27:1,0 [20] ViewWithNamespace.cshtml) diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.ir.txt index 93f033f252..5462f3467e 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.ir.txt @@ -28,7 +28,7 @@ Document - DirectiveToken - (28:0,28 [5] _ViewImports.cshtml) - Model CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_Runtime.ir.txt index 224e2acb3a..b0989fe331 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_Runtime.ir.txt @@ -9,7 +9,7 @@ Document - UsingStatement - (104:4,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (147:5,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest__ViewImports_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync InjectDirective - InjectDirective - InjectDirective - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DefaultDocumentWriterTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DefaultDocumentWriterTest.cs index 2e836af8ff..5844ad855f 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DefaultDocumentWriterTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DefaultDocumentWriterTest.cs @@ -104,7 +104,7 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration var writer = new DefaultDocumentWriter(target, context); var builder = RazorIRBuilder.Document(); - builder.Add(new RazorMethodDeclarationIRNode() + builder.Add(new MethodDeclarationIRNode() { AccessModifier = "internal", Modifiers = new List { "virtual", "async", }, diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultDirectiveIRPassTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultDirectiveIRPassTest.cs index faf55d56ea..1f12986ffd 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultDirectiveIRPassTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultDirectiveIRPassTest.cs @@ -67,9 +67,9 @@ namespace Microsoft.AspNetCore.Razor.Language node => Assert.IsType(node)); var @class = @namespace.Children[2]; Children(@class, - node => Assert.IsType(node), + node => Assert.IsType(node), node => CSharpStatement(" var value = true; ", node)); - var method = (RazorMethodDeclarationIRNode)@class.Children[0]; + var method = (MethodDeclarationIRNode)@class.Children[0]; Assert.Empty(method.Children); } @@ -100,7 +100,7 @@ namespace Microsoft.AspNetCore.Razor.Language node => Assert.IsType(node), node => Assert.IsType(node)); var @class = @namespace.Children[2]; - var method = SingleChild(@class); + var method = SingleChild(@class); Children(method, node => CSharpStatement("DefineSection(\"Header\", async () => {", node), node => Html("

Hello World

", node), @@ -135,7 +135,7 @@ namespace Microsoft.AspNetCore.Razor.Language node => Assert.IsType(node), node => Assert.IsType(node)); var @class = @namespace.Children[2]; - var method = SingleChild(@class); + var method = SingleChild(@class); Children(method, node => CSharpStatement("DefineSection(\"Header\", async (__razor_section_writer) => {", node), node => Html("

Hello World

", node), diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultDocumentClassifierPassTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultDocumentClassifierPassTest.cs index 99a39e4bd4..55acd3b8ab 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultDocumentClassifierPassTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultDocumentClassifierPassTest.cs @@ -53,7 +53,7 @@ namespace Microsoft.AspNetCore.Razor.Language var @namespace = SingleChild(irDocument); var @class = SingleChild(@namespace); - var method = SingleChild(@class); + var method = SingleChild(@class); NoChildren(method); } } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DirectiveRemovalIROptimizationPassTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DirectiveRemovalIROptimizationPassTest.cs index 2aeb98d8d5..293b5e3a89 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DirectiveRemovalIROptimizationPassTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DirectiveRemovalIROptimizationPassTest.cs @@ -41,7 +41,7 @@ namespace Microsoft.AspNetCore.Razor.Language node => Assert.IsType(node), node => Assert.IsType(node)); var @class = @namespace.Children[2]; - var method = SingleChild(@class); + var method = SingleChild(@class); Assert.Empty(method.Children); } @@ -76,7 +76,7 @@ namespace Microsoft.AspNetCore.Razor.Language node => Assert.IsType(node), node => Assert.IsType(node)); var @class = @namespace.Children[2]; - var method = SingleChild(@class); + var method = SingleChild(@class); Assert.Empty(method.Children); } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DocumentClassifierPassBaseTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DocumentClassifierPassBaseTest.cs index f29241a36f..92305bad3d 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DocumentClassifierPassBaseTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DocumentClassifierPassBaseTest.cs @@ -113,7 +113,7 @@ namespace Microsoft.AspNetCore.Razor.Language var @namespace = SingleChild(irDocument); var @class = SingleChild(@namespace); - var method = SingleChild(@class); + var method = SingleChild(@class); NoChildren(method); } @@ -192,7 +192,7 @@ namespace Microsoft.AspNetCore.Razor.Language Children( @class, n => Assert.IsType(n), - n => Assert.IsType(n)); + n => Assert.IsType(n)); } [Fact] @@ -217,7 +217,7 @@ namespace Microsoft.AspNetCore.Razor.Language // Assert var @namespace = SingleChild(irDocument); var @class = SingleChild(@namespace); - var method = SingleChild(@class); + var method = SingleChild(@class); Children( method, n => Assert.IsType(n), @@ -255,7 +255,7 @@ namespace Microsoft.AspNetCore.Razor.Language var @class = SingleChild(@namespace); Assert.Equal("TestClass", @class.Name); - var method = SingleChild(@class); + var method = SingleChild(@class); Assert.Equal("TestMethod", method.Name); } @@ -290,7 +290,7 @@ namespace Microsoft.AspNetCore.Razor.Language var @class = SingleChild(@namespace); AnnotationEquals(@class, CommonAnnotations.PrimaryClass); - var method = SingleChild(@class); + var method = SingleChild(@class); AnnotationEquals(method, CommonAnnotations.PrimaryMethod); } @@ -319,7 +319,7 @@ namespace Microsoft.AspNetCore.Razor.Language RazorCodeDocument codeDocument, NamespaceDeclarationIRNode @namespace, ClassDeclarationIRNode @class, - RazorMethodDeclarationIRNode method) + MethodDeclarationIRNode method) { @namespace.Content = Namespace; @class.Name = Class; diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DocumentIRNodeExtensionsTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DocumentIRNodeExtensionsTest.cs index 0ab143306a..04ae620a49 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DocumentIRNodeExtensionsTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DocumentIRNodeExtensionsTest.cs @@ -30,7 +30,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { // Arrange var document = new DocumentIRNode(); - var method = new RazorMethodDeclarationIRNode(); + var method = new MethodDeclarationIRNode(); method.Annotations[CommonAnnotations.PrimaryMethod] = CommonAnnotations.PrimaryMethod; var builder = RazorIRBuilder.Create(document); diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/BasicIntegrationTest/CustomDirective.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/BasicIntegrationTest/CustomDirective.ir.txt index 68a01819d7..af2cd9a1e7 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/BasicIntegrationTest/CustomDirective.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/BasicIntegrationTest/CustomDirective.ir.txt @@ -4,4 +4,4 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - Template - - - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/BasicIntegrationTest/Empty.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/BasicIntegrationTest/Empty.ir.txt index 68a01819d7..af2cd9a1e7 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/BasicIntegrationTest/Empty.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/BasicIntegrationTest/Empty.ir.txt @@ -4,4 +4,4 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - Template - - - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/BasicIntegrationTest/HelloWorld.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/BasicIntegrationTest/HelloWorld.ir.txt index 37a57916b4..4608ab4fef 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/BasicIntegrationTest/HelloWorld.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/BasicIntegrationTest/HelloWorld.ir.txt @@ -4,6 +4,6 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - Template - - - RazorMethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [13] HelloWorld.cshtml) RazorIRToken - (0:0,0 [13] HelloWorld.cshtml) - Html - Hello, World! diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.ir.txt index e20e03a673..d54a5b1067 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.ir.txt @@ -8,6 +8,6 @@ Document - DirectiveToken - (14:0,14 [17] AddTagHelperDirective.cshtml) - "*, TestAssembly" CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [2] AddTagHelperDirective.cshtml) RazorIRToken - (31:0,31 [2] AddTagHelperDirective.cshtml) - Html - \n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.ir.txt index 12c2767f05..f4a24096f4 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.ir.txt @@ -9,7 +9,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [4] AttributeTargetingTagHelpers.cshtml) RazorIRToken - (29:0,29 [4] AttributeTargetingTagHelpers.cshtml) - Html - \n\n TagHelper - (33:2,0 [228] AttributeTargetingTagHelpers.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.ir.txt index bc4b0bdc9b..96108af7d8 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.ir.txt @@ -8,7 +8,7 @@ Document - DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_1 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - class - btn - HtmlAttributeValueStyle.DoubleQuotes DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [2] AttributeTargetingTagHelpers.cshtml) RazorIRToken - (31:1,0 [2] AttributeTargetingTagHelpers.cshtml) - Html - \n TagHelper - (33:2,0 [228] AttributeTargetingTagHelpers.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.ir.txt index a84e6022a9..258ee27399 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (89:5,1 [102] Await.cshtml) RazorIRToken - (89:5,1 [4] Await.cshtml) - Html - \n\n RazorIRToken - (93:7,0 [9] Await.cshtml) - Html -
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.ir.txt index 120ed89101..d33ac1d1ac 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (91:6,0 [100] Await.cshtml) RazorIRToken - (91:6,0 [2] Await.cshtml) - Html - \n RazorIRToken - (93:7,0 [9] Await.cshtml) - Html -
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_DesignTime.ir.txt index 8b27cc6c03..b194187964 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_DesignTime.ir.txt @@ -11,7 +11,7 @@ Document - DirectiveToken - (119:4,10 [5] BasicImports_Imports0.cshtml) - Hello CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] BasicImports.cshtml) RazorIRToken - (0:0,0 [3] BasicImports.cshtml) - Html -

RazorIRToken - (3:0,3 [9] BasicImports.cshtml) - Html - Hi there! diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_Runtime.ir.txt index 473b34ab72..d46cd60d24 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicImports_Runtime.ir.txt @@ -7,7 +7,7 @@ Document - UsingStatement - (80:3,1 [29] BasicImports_Imports0.cshtml) - System.ComponentModel UsingStatement - (23:1,1 [20] BasicImports_Imports1.cshtml) - System.Text ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicImports_Runtime - Hello - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] BasicImports.cshtml) RazorIRToken - (0:0,0 [3] BasicImports.cshtml) - Html -

RazorIRToken - (3:0,3 [9] BasicImports.cshtml) - Html - Hi there! diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.ir.txt index d195ebe04c..978f749307 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.ir.txt @@ -9,7 +9,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [73] BasicTagHelpers.cshtml) RazorIRToken - (31:0,31 [4] BasicTagHelpers.cshtml) - Html - \n\n RazorIRToken - (35:2,0 [4] BasicTagHelpers.cshtml) - Html -

RazorIRToken - (6:0,6 [6] CSharp7.cshtml) - Html - \n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.ir.txt index 09eadf1444..46005157b5 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [8] CSharp7.cshtml) RazorIRToken - (0:0,0 [6] CSharp7.cshtml) - Html - RazorIRToken - (6:0,6 [2] CSharp7.cshtml) - Html - \n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.ir.txt index 659640ae01..70a272c408 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.ir.txt @@ -7,6 +7,6 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [0] CodeBlockAtEOF.cshtml) RazorIRToken - (2:0,2 [0] CodeBlockAtEOF.cshtml) - CSharp - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.ir.txt index bf8967fe5c..d425f13b77 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.ir.txt @@ -4,6 +4,6 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [0] CodeBlockAtEOF.cshtml) RazorIRToken - (2:0,2 [0] CodeBlockAtEOF.cshtml) - CSharp - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.ir.txt index 7dd8a1f75d..b6a2c2b61d 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [17] CodeBlockWithTextElement.cshtml) RazorIRToken - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - CSharp - \n var a = 1; HtmlContent - (25:1,21 [3] CodeBlockWithTextElement.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.ir.txt index 8aa4281b8e..07ed576fc1 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [16] CodeBlockWithTextElement.cshtml) RazorIRToken - (2:0,2 [16] CodeBlockWithTextElement.cshtml) - CSharp - \n var a = 1; HtmlContent - (25:1,21 [3] CodeBlockWithTextElement.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt index 19c147de8e..7453a95b96 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt @@ -7,6 +7,6 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [115] CodeBlock.cshtml) RazorIRToken - (2:0,2 [115] CodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n Output.Write("

Hello from C#, #" + i.ToString() + "

");\n }\n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.ir.txt index a54665e8a7..71d1a6a971 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.ir.txt @@ -4,6 +4,6 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [115] CodeBlock.cshtml) RazorIRToken - (2:0,2 [115] CodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n Output.Write("

Hello from C#, #" + i.ToString() + "

");\n }\n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.ir.txt index 05016a806c..51881bc7ae 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.ir.txt @@ -9,7 +9,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] ComplexTagHelpers.cshtml) RazorIRToken - (31:0,31 [4] ComplexTagHelpers.cshtml) - Html - \n\n CSharpStatement - (36:2,1 [52] ComplexTagHelpers.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.ir.txt index 6fbe40fc45..0685fa4fab 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.ir.txt @@ -13,7 +13,7 @@ Document - DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_6 - unbound - world - HtmlAttributeValueStyle.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_7 - class - hello - HtmlAttributeValueStyle.DoubleQuotes DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] ComplexTagHelpers.cshtml) RazorIRToken - (33:1,0 [2] ComplexTagHelpers.cshtml) - Html - \n CSharpStatement - (36:2,1 [48] ComplexTagHelpers.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.ir.txt index 98b6d1ab82..65b963595d 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [48] ConditionalAttributes.cshtml) RazorIRToken - (2:0,2 [48] ConditionalAttributes.cshtml) - CSharp - \n var ch = true;\n var cls = "bar";\n HtmlContent - (50:3,4 [16] ConditionalAttributes.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.ir.txt index c657d58288..ab41589aac 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [44] ConditionalAttributes.cshtml) RazorIRToken - (2:0,2 [44] ConditionalAttributes.cshtml) - CSharp - \n var ch = true;\n var cls = "bar";\n HtmlContent - (46:3,0 [28] ConditionalAttributes.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.ir.txt index 61e6514732..829873d544 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.ir.txt @@ -14,7 +14,7 @@ Document - DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_7 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_8 - value - 2 TagHelper - HtmlAttributeValueStyle.DoubleQuotes DeclareTagHelperFields - - TestNamespace.ATagHelper - TestNamespace.CatchAllTagHelper - TestNamespace.ATagHelperMultipleSelectors - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.CatchAllTagHelper2 - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] CssSelectorTagHelperAttributes.cshtml) RazorIRToken - (33:1,0 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n TagHelper - (35:2,0 [30] CssSelectorTagHelperAttributes.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.ir.txt index 9c1452635d..07a7ee22de 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DesignTime_DesignTime.ir.txt @@ -8,7 +8,7 @@ Document - DirectiveToken - (173:11,9 [6] DesignTime.cshtml) - Footer CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [19] DesignTime.cshtml) RazorIRToken - (0:0,0 [5] DesignTime.cshtml) - Html -
RazorIRToken - (5:0,5 [14] DesignTime.cshtml) - Html - \n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.ir.txt index 428498c0c8..ba634c62e7 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.ir.txt @@ -9,7 +9,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] DuplicateAttributeTagHelpers.cshtml) RazorIRToken - (31:0,31 [4] DuplicateAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (35:2,0 [259] DuplicateAttributeTagHelpers.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.ir.txt index 506e341c79..f14944fcdd 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.ir.txt @@ -14,7 +14,7 @@ Document - DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_7 - AGE - 40 - HtmlAttributeValueStyle.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_8 - Age - 500 - HtmlAttributeValueStyle.DoubleQuotes DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] DuplicateAttributeTagHelpers.cshtml) RazorIRToken - (33:1,0 [2] DuplicateAttributeTagHelpers.cshtml) - Html - \n TagHelper - (35:2,0 [259] DuplicateAttributeTagHelpers.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.ir.txt index ff84378e67..4a2361c5db 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.ir.txt @@ -9,7 +9,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (31:0,31 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (35:2,0 [40] DynamicAttributeTagHelpers.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.ir.txt index 048fe837ac..d710226f83 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.ir.txt @@ -5,7 +5,7 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DynamicAttributeTagHelpers_Runtime - - DeclareTagHelperFields - - TestNamespace.InputTagHelper - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (33:1,0 [2] DynamicAttributeTagHelpers.cshtml) - Html - \n TagHelper - (35:2,0 [40] DynamicAttributeTagHelpers.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.ir.txt index db35c95c64..c259468005 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.ir.txt @@ -9,7 +9,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.PTagHelper - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [15] EmptyAttributeTagHelpers.cshtml) RazorIRToken - (29:0,29 [4] EmptyAttributeTagHelpers.cshtml) - Html - \n\n RazorIRToken - (33:2,0 [5] EmptyAttributeTagHelpers.cshtml) - Html -
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.ir.txt index 71d98dbb83..3876f963e7 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.ir.txt @@ -7,7 +7,7 @@ Document - DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_0 - type - - HtmlAttributeValueStyle.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - class - - HtmlAttributeValueStyle.DoubleQuotes DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.PTagHelper - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [13] EmptyAttributeTagHelpers.cshtml) RazorIRToken - (31:1,0 [2] EmptyAttributeTagHelpers.cshtml) - Html - \n RazorIRToken - (33:2,0 [5] EmptyAttributeTagHelpers.cshtml) - Html -
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.ir.txt index 960ed1e704..4e18e80137 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyCodeBlock.cshtml) RazorIRToken - (0:0,0 [18] EmptyCodeBlock.cshtml) - Html - This is markup\n\n CSharpStatement - (20:2,2 [0] EmptyCodeBlock.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_Runtime.ir.txt index d60c6d4ad7..e9860741f0 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyCodeBlock_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyCodeBlock.cshtml) RazorIRToken - (0:0,0 [18] EmptyCodeBlock.cshtml) - Html - This is markup\n\n CSharpStatement - (20:2,2 [0] EmptyCodeBlock.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.ir.txt index 5a4258e609..f61cbf452e 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyExplicitExpression.cshtml) RazorIRToken - (0:0,0 [18] EmptyExplicitExpression.cshtml) - Html - This is markup\n\n CSharpExpression - (20:2,2 [0] EmptyExplicitExpression.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.ir.txt index 3e7726a9e5..644c989e72 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExplicitExpression_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyExplicitExpression.cshtml) RazorIRToken - (0:0,0 [18] EmptyExplicitExpression.cshtml) - Html - This is markup\n\n CSharpExpression - (20:2,2 [0] EmptyExplicitExpression.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.ir.txt index bbdddfaaa8..11261f90cc 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) RazorIRToken - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n CSharpExpression - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.ir.txt index 2dc67f7af4..f7aaafb798 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpressionInCode_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) RazorIRToken - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n CSharpExpression - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.ir.txt index fe90bc7056..580c7698b4 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyImplicitExpression.cshtml) RazorIRToken - (0:0,0 [18] EmptyImplicitExpression.cshtml) - Html - This is markup\n\n CSharpExpression - (19:2,1 [0] EmptyImplicitExpression.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.ir.txt index ec38a489bd..194a820cab 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpression_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyImplicitExpression.cshtml) RazorIRToken - (0:0,0 [18] EmptyImplicitExpression.cshtml) - Html - This is markup\n\n CSharpExpression - (19:2,1 [0] EmptyImplicitExpression.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.ir.txt index 99449ccb29..ab8550c88b 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.ir.txt @@ -9,7 +9,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.CatchAllTagHelper - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] EnumTagHelpers.cshtml) RazorIRToken - (31:0,31 [4] EnumTagHelpers.cshtml) - Html - \n\n CSharpStatement - (37:2,2 [39] EnumTagHelpers.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.ir.txt index c44acf2ad8..8b1f2103fb 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.ir.txt @@ -5,7 +5,7 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EnumTagHelpers_Runtime - - DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.CatchAllTagHelper - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] EnumTagHelpers.cshtml) RazorIRToken - (33:1,0 [2] EnumTagHelpers.cshtml) - Html - \n CSharpStatement - (37:2,2 [39] EnumTagHelpers.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.ir.txt index f3f0fa2b68..a03023a97e 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.ir.txt @@ -9,7 +9,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [5] EscapedTagHelpers.cshtml) RazorIRToken - (29:0,29 [4] EscapedTagHelpers.cshtml) - Html - \n\n RazorIRToken - (33:2,0 [1] EscapedTagHelpers.cshtml) - Html - < diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.ir.txt index 5641bb552d..94915cefad 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.ir.txt @@ -5,7 +5,7 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EscapedTagHelpers_Runtime - - DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [3] EscapedTagHelpers.cshtml) RazorIRToken - (31:1,0 [2] EscapedTagHelpers.cshtml) - Html - \n RazorIRToken - (33:2,0 [1] EscapedTagHelpers.cshtml) - Html - < diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.ir.txt index 0d20e4b4a9..6110d16365 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) RazorIRToken - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n CSharpExpression - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.ir.txt index 5699efa584..28fd2d8313 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionAtEOF_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) RazorIRToken - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n CSharpExpression - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.ir.txt index 0f610f00b0..86588430de 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) RazorIRToken - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - Html -
CSharpExpression - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.ir.txt index 9a3079bfcd..faa5452af4 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionWithMarkup_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) RazorIRToken - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - Html -
CSharpExpression - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.ir.txt index c47b6df3e2..ec8c88e736 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [8] ExplicitExpression.cshtml) RazorIRToken - (0:0,0 [8] ExplicitExpression.cshtml) - Html - 1 + 1 = CSharpExpression - (10:0,10 [3] ExplicitExpression.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.ir.txt index 6ade72e304..74376af5c2 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpression_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [8] ExplicitExpression.cshtml) RazorIRToken - (0:0,0 [8] ExplicitExpression.cshtml) - Html - 1 + 1 = CSharpExpression - (10:0,10 [3] ExplicitExpression.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.ir.txt index 34104cb16c..85225f75c5 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [51] ExpressionsInCode.cshtml) RazorIRToken - (2:0,2 [51] ExpressionsInCode.cshtml) - CSharp - \n object foo = null;\n string bar = "Foo";\n HtmlContent - (56:4,0 [2] ExpressionsInCode.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.ir.txt index 7aa5d22518..8b1a12fe3e 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExpressionsInCode_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [51] ExpressionsInCode.cshtml) RazorIRToken - (2:0,2 [51] ExpressionsInCode.cshtml) - CSharp - \n object foo = null;\n string bar = "Foo";\n HtmlContent - (56:4,0 [2] ExpressionsInCode.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.ir.txt index c007572c76..af7ef65caa 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [5] FunctionsBlockMinimal.cshtml) RazorIRToken - (0:0,0 [5] FunctionsBlockMinimal.cshtml) - Html - \n\n CSharpStatement - (16:2,12 [55] FunctionsBlockMinimal.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.ir.txt index cd75a23520..926f4f9d75 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [4] FunctionsBlockMinimal.cshtml) RazorIRToken - (0:0,0 [4] FunctionsBlockMinimal.cshtml) - Html - \n\n CSharpStatement - (4:2,0 [1] FunctionsBlockMinimal.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.ir.txt index 8762191634..9cb7b63009 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (17:2,1 [4] FunctionsBlock.cshtml) RazorIRToken - (17:2,1 [4] FunctionsBlock.cshtml) - Html - \n\n HtmlContent - (138:9,1 [28] FunctionsBlock.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.ir.txt index f16262ca73..d18d29cbe4 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlock_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (19:3,0 [2] FunctionsBlock.cshtml) RazorIRToken - (19:3,0 [2] FunctionsBlock.cshtml) - Html - \n HtmlContent - (140:10,0 [26] FunctionsBlock.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.ir.txt index ef808f8a8d..e0d0d72420 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [6] HiddenSpansInCode.cshtml) RazorIRToken - (2:0,2 [6] HiddenSpansInCode.cshtml) - CSharp - \n CSharpStatement - (9:1,5 [5] HiddenSpansInCode.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.ir.txt index 6e367b3f11..adc99cdadd 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [6] HiddenSpansInCode.cshtml) RazorIRToken - (2:0,2 [6] HiddenSpansInCode.cshtml) - CSharp - \n CSharpStatement - (9:1,5 [5] HiddenSpansInCode.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.ir.txt index 11fa6227ae..0ccd030341 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Double.cshtml) RazorIRToken - (0:0,0 [12] HtmlCommentWithQuote_Double.cshtml) - Html - \n RazorIRToken - (12:1,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - \n RazorIRToken - (12:1,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - \n RazorIRToken - (12:1,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - \n RazorIRToken - (12:1,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - >.boz CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpExpression - (1:0,1 [5] Inherits.cshtml) RazorIRToken - (1:0,1 [5] Inherits.cshtml) - CSharp - foo() HtmlContent - (6:0,6 [4] Inherits.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_Runtime.ir.txt index 3312fbdc51..0e78e88f68 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inherits_Runtime - foo.bar>.boz - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpExpression - (1:0,1 [5] Inherits.cshtml) RazorIRToken - (1:0,1 [5] Inherits.cshtml) - CSharp - foo() HtmlContent - (6:0,6 [4] Inherits.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.ir.txt index 5c70e6e09c..9bd4261477 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.ir.txt @@ -8,7 +8,7 @@ Document - DirectiveToken - (9:0,9 [4] InlineBlocks.cshtml) - Link CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - RazorIRToken - - CSharp - DefineSection("Link", async (__razor_section_writer) => { CSharpStatement - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_Runtime.ir.txt index 7038c41463..b0cdabde12 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InlineBlocks_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - RazorIRToken - - CSharp - DefineSection("Link", async () => { CSharpStatement - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.ir.txt index f315c1552d..c9f014fd0a 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [32] Instrumented.cshtml) RazorIRToken - (2:0,2 [32] Instrumented.cshtml) - CSharp - \n int i = 1;\n var foo = Template - (35:2,15 [10] Instrumented.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.ir.txt index b372562029..103d413411 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrumented_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [32] Instrumented.cshtml) RazorIRToken - (2:0,2 [32] Instrumented.cshtml) - CSharp - \n int i = 1;\n var foo = Template - (35:2,15 [10] Instrumented.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.ir.txt index d600a7554d..c3ff612ef8 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [46] MarkupInCodeBlock.cshtml) RazorIRToken - (2:0,2 [46] MarkupInCodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n HtmlContent - (48:2,8 [19] MarkupInCodeBlock.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.ir.txt index 64bd7d1f90..8aa4300e5b 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [38] MarkupInCodeBlock.cshtml) RazorIRToken - (2:0,2 [38] MarkupInCodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n HtmlContent - (40:2,0 [27] MarkupInCodeBlock.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.ir.txt index 10bebb8c3a..3f40eb647d 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.ir.txt @@ -9,7 +9,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] MinimizedTagHelpers.cshtml) RazorIRToken - (31:0,31 [4] MinimizedTagHelpers.cshtml) - Html - \n\n TagHelper - (35:2,0 [647] MinimizedTagHelpers.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_Runtime.ir.txt index 91eb1170b3..41948293aa 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_Runtime.ir.txt @@ -12,7 +12,7 @@ Document - DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 - input-unbound-required - hello2 - HtmlAttributeValueStyle.DoubleQuotes DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_6 - input-bound-required-string - world - HtmlAttributeValueStyle.DoubleQuotes DeclareTagHelperFields - - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] MinimizedTagHelpers.cshtml) RazorIRToken - (33:1,0 [2] MinimizedTagHelpers.cshtml) - Html - \n TagHelper - (35:2,0 [647] MinimizedTagHelpers.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.ir.txt index ae8bce01a7..8547356464 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [6] NestedCSharp.cshtml) RazorIRToken - (2:0,2 [6] NestedCSharp.cshtml) - CSharp - \n CSharpStatement - (9:1,5 [53] NestedCSharp.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.ir.txt index 03af5b1f42..f795efda99 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSharp_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (2:0,2 [6] NestedCSharp.cshtml) RazorIRToken - (2:0,2 [6] NestedCSharp.cshtml) - CSharp - \n CSharpStatement - (9:1,5 [45] NestedCSharp.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.ir.txt index e6c3f586de..475d20fb28 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.ir.txt @@ -7,7 +7,7 @@ Document - DesignTimeDirective - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (1:0,1 [15] NestedCodeBlocks.cshtml) RazorIRToken - (1:0,1 [15] NestedCodeBlocks.cshtml) - CSharp - if(foo) {\n CSharpStatement - (17:1,5 [16] NestedCodeBlocks.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.ir.txt index 2a238741c5..62d187fdb3 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.ir.txt @@ -4,7 +4,7 @@ Document - UsingStatement - - System UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCodeBlocks_Runtime - - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpStatement - (1:0,1 [15] NestedCodeBlocks.cshtml) RazorIRToken - (1:0,1 [15] NestedCodeBlocks.cshtml) - CSharp - if(foo) {\n CSharpStatement - (17:1,5 [16] NestedCodeBlocks.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.ir.txt index c36a40e7e8..21634074da 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.ir.txt @@ -9,7 +9,7 @@ Document - CSharpStatement - RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [108] NestedScriptTagTagHelpers.cshtml) RazorIRToken - (31:0,31 [4] NestedScriptTagTagHelpers.cshtml) - Html - \n\n RazorIRToken - (35:2,0 [7] NestedScriptTagTagHelpers.cshtml) - Html -