From a580c8fdf1e0d6681229d8c717feffe323973c00 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Wed, 21 Jun 2017 14:59:11 -0700 Subject: [PATCH] Get rid of AccessModifiers --- .../MvcViewDocumentClassifierPass.cs | 14 ++-- .../RazorPageDocumentClassifierPass.cs | 15 ++-- .../ViewComponentTagHelperPass.cs | 10 ++- .../CodeGeneration/CSharpCodeWriter.cs | 71 +++---------------- .../CodeGeneration/DefaultDocumentWriter.cs | 24 ++----- .../ClassDeclarationIntermediateNode.cs | 2 +- .../FieldDeclarationIntermediateNode.cs | 4 +- .../MethodDeclarationIntermediateNode.cs | 4 +- .../PropertyDeclarationIntermediateNode.cs | 6 +- .../RazorEngine.cs | 14 ++-- src/RazorPageGenerator/Program.cs | 3 +- .../MvcViewDocumentClassifierPassTest.cs | 5 +- .../RazorPageDocumentClassifierPassTest.cs | 5 +- .../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 +- .../InvalidNamespaceAtEOF_DesignTime.ir.txt | 2 +- .../InvalidNamespaceAtEOF_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 +- .../ViewComponentTagHelper_DesignTime.ir.txt | 2 +- .../ViewComponentTagHelper_Runtime.ir.txt | 2 +- .../ViewWithNamespace_DesignTime.ir.txt | 2 +- .../ViewWithNamespace_Runtime.ir.txt | 2 +- .../_ViewImports_DesignTime.ir.txt | 2 +- .../_ViewImports_Runtime.ir.txt | 2 +- .../BasicTest.ir.txt | 2 +- .../CodeGeneration/CSharpCodeWriterTest.cs | 8 +-- .../DefaultDocumentWriterTest.cs | 27 +++++-- .../RazorTemplateEngineIntegrationTest.cs | 5 +- .../CustomDirective.ir.txt | 2 +- .../BasicIntegrationTest/Empty.ir.txt | 2 +- .../BasicIntegrationTest/HelloWorld.ir.txt | 2 +- .../AddTagHelperDirective_DesignTime.ir.txt | 2 +- ...ibuteTargetingTagHelpers_DesignTime.ir.txt | 2 +- ...ttributeTargetingTagHelpers_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 +- ...cTagHelpers_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 +- ...SelectorTagHelperAttributes_Runtime.ir.txt | 2 +- .../DesignTime_DesignTime.ir.txt | 2 +- ...icateAttributeTagHelpers_DesignTime.ir.txt | 2 +- ...uplicateAttributeTagHelpers_Runtime.ir.txt | 2 +- ...DuplicateTargetTagHelper_DesignTime.ir.txt | 2 +- .../DuplicateTargetTagHelper_Runtime.ir.txt | 2 +- ...namicAttributeTagHelpers_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 +- ...ImplicitExpressionInCode_DesignTime.ir.txt | 2 +- ...ptyImplicitExpressionInCode_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 +- ...icitExpressionWithMarkup_DesignTime.ir.txt | 2 +- ...xplicitExpressionWithMarkup_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 +- ...lCommentWithQuote_Double_DesignTime.ir.txt | 2 +- ...HtmlCommentWithQuote_Double_Runtime.ir.txt | 2 +- ...lCommentWithQuote_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 +- ...estedScriptTagTagHelpers_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 +- ...llConditionalExpressions_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 +- ...fixedAttributeTagHelpers_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 +- ...hNewlineBeforeAttributes_DesignTime.ir.txt | 2 +- ...WithNewlineBeforeAttributes_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 +- ...lpersWithBoundAttributes_DesignTime.ir.txt | 2 +- ...gHelpersWithBoundAttributes_Runtime.ir.txt | 2 +- .../TagHelpersWithPrefix_DesignTime.ir.txt | 2 +- .../TagHelpersWithPrefix_Runtime.ir.txt | 2 +- .../TagHelpersWithTemplate_DesignTime.ir.txt | 2 +- .../TagHelpersWithTemplate_Runtime.ir.txt | 2 +- ...hWeirdlySpacedAttributes_DesignTime.ir.txt | 2 +- ...WithWeirdlySpacedAttributes_Runtime.ir.txt | 2 +- .../Templates_DesignTime.ir.txt | 2 +- .../Templates_Runtime.ir.txt | 2 +- ...onsInTagHelperAttributes_DesignTime.ir.txt | 2 +- ...itionsInTagHelperAttributes_Runtime.ir.txt | 2 +- ...finishedExpressionInCode_DesignTime.ir.txt | 2 +- .../UnfinishedExpressionInCode_Runtime.ir.txt | 2 +- .../Usings_DesignTime.ir.txt | 2 +- .../Usings_Runtime.ir.txt | 2 +- .../NamespaceToken.ir.txt | 2 +- .../HtmlWithConditionalAttribute.ir.txt | 2 +- .../HtmlWithDataDashAttribute.ir.txt | 2 +- .../NestedTagHelpers.ir.txt | 2 +- .../SimpleTagHelpers.ir.txt | 2 +- .../TagHelpersWithBoundAttributes.ir.txt | 2 +- .../IntegrationTests/IntegrationTestBase.cs | 11 +-- .../IntermediateNodeWriter.cs | 5 +- 199 files changed, 283 insertions(+), 312 deletions(-) diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs index 3c675dac3e..cec740f156 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs @@ -23,13 +23,19 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions var filePath = codeDocument.GetRelativePath() ?? codeDocument.Source.FilePath; base.OnDocumentStructureCreated(codeDocument, @namespace, @class, method); + + @namespace.Content = "AspNetCore"; + @class.Name = CSharpIdentifier.GetClassNameFromPath(filePath); @class.BaseType = "global::Microsoft.AspNetCore.Mvc.Razor.RazorPage"; - @class.AccessModifier = "public"; - @namespace.Content = "AspNetCore"; + @class.Modifiers.Clear(); + @class.Modifiers.Add("public"); + method.Name = "ExecuteAsync"; - method.Modifiers = new[] { "async", "override" }; - method.AccessModifier = "public"; + method.Modifiers.Clear(); + method.Modifiers.Add("public"); + method.Modifiers.Add("async"); + method.Modifiers.Add("override"); method.ReturnType = $"global::{typeof(System.Threading.Tasks.Task).FullName}"; } } diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs index cd9feb004c..de8c165e5b 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs @@ -26,13 +26,20 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions var filePath = codeDocument.GetRelativePath() ?? codeDocument.Source.FilePath; base.OnDocumentStructureCreated(codeDocument, @namespace, @class, method); + + @namespace.Content = "AspNetCore"; + @class.BaseType = "global::Microsoft.AspNetCore.Mvc.RazorPages.Page"; @class.Name = CSharpIdentifier.GetClassNameFromPath(filePath); - @class.AccessModifier = "public"; - @namespace.Content = "AspNetCore"; + + @class.Modifiers.Clear(); + @class.Modifiers.Add("public"); + method.Name = "ExecuteAsync"; - method.Modifiers = new[] { "async", "override" }; - method.AccessModifier = "public"; + method.Modifiers.Clear(); + method.Modifiers.Add("public"); + method.Modifiers.Add("async"); + method.Modifiers.Add("override"); method.ReturnType = $"global::{typeof(System.Threading.Tasks.Task).FullName}"; } } diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperPass.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperPass.cs index 3a1c536e1c..a84eba528d 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperPass.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperPass.cs @@ -13,6 +13,8 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { public class ViewComponentTagHelperPass : IntermediateNodePassBase, IRazorOptimizationPass { + private static readonly string[] PublicModifiers = new[] { "public" }; + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { var visitor = new Visitor(); @@ -101,7 +103,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions var tagHelperTypeName = "Microsoft.AspNetCore.Razor.TagHelpers.TagHelper"; var className = GetVCTHClassName(descriptor); - using (writer.BuildClassDeclaration("public", className, tagHelperTypeName, interfaces: null)) + using (writer.BuildClassDeclaration(PublicModifiers, className, tagHelperTypeName, interfaces: null)) { // Add view component helper. writer.WriteVariableDeclaration( @@ -144,14 +146,16 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions .WriteLine("]"); writer.WriteAutoPropertyDeclaration( - "public", + PublicModifiers, $"global::Microsoft.AspNetCore.Mvc.Rendering.ViewContext", "ViewContext"); foreach (var attribute in descriptor.BoundAttributes) { writer.WriteAutoPropertyDeclaration( - "public", attribute.TypeName, attribute.GetPropertyName()); + PublicModifiers, + attribute.TypeName, + attribute.GetPropertyName()); if (attribute.IndexerTypeName != null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CSharpCodeWriter.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CSharpCodeWriter.cs index 9467dcdba2..00df8e1ba1 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CSharpCodeWriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CSharpCodeWriter.cs @@ -409,33 +409,8 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration string.Format(CultureInfo.InvariantCulture, InstanceMethodFormat, instanceName, methodName)); } - public CSharpCodeWriter WriteField(string accessibility, string typeName, string fieldName) + public CSharpCodeWriter WriteField(IList modifiers, string typeName, string fieldName) { - if (accessibility == null) - { - throw new ArgumentNullException(nameof(accessibility)); - } - - if (typeName == null) - { - throw new ArgumentNullException(nameof(typeName)); - } - - if (fieldName == null) - { - throw new ArgumentNullException(nameof(fieldName)); - } - - return WriteField(accessibility, Array.Empty(), typeName, fieldName); - } - - public CSharpCodeWriter WriteField(string accessibility, IList modifiers, string typeName, string fieldName) - { - if (accessibility == null) - { - throw new ArgumentNullException(nameof(accessibility)); - } - if (modifiers == null) { throw new ArgumentNullException(nameof(modifiers)); @@ -451,9 +426,6 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration throw new ArgumentNullException(nameof(fieldName)); } - Write(accessibility); - Write(" "); - for (var i = 0; i < modifiers.Count; i++) { Write(modifiers[i]); @@ -481,33 +453,8 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration .WriteEndMethodInvocation(endLine); } - public CSharpCodeWriter WriteAutoPropertyDeclaration(string accessibility, string typeName, string propertyName) + public CSharpCodeWriter WriteAutoPropertyDeclaration(IList modifiers, string typeName, string propertyName) { - if (accessibility == null) - { - throw new ArgumentNullException(nameof(accessibility)); - } - - if (typeName == null) - { - throw new ArgumentNullException(nameof(typeName)); - } - - if (propertyName == null) - { - throw new ArgumentNullException(nameof(propertyName)); - } - - return WriteAutoPropertyDeclaration(accessibility, Array.Empty(), typeName, propertyName); - } - - public CSharpCodeWriter WriteAutoPropertyDeclaration(string accessibility, IList modifiers, string typeName, string propertyName) - { - if (accessibility == null) - { - throw new ArgumentNullException(nameof(accessibility)); - } - if (modifiers == null) { throw new ArgumentNullException(nameof(modifiers)); @@ -523,9 +470,6 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration throw new ArgumentNullException(nameof(propertyName)); } - Write(accessibility); - Write(" "); - for (var i = 0; i < modifiers.Count; i++) { Write(modifiers[i]); @@ -578,12 +522,19 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration } public CSharpCodeWritingScope BuildClassDeclaration( - string accessibility, + IList modifiers, string name, string baseType, IEnumerable interfaces) { - Write(accessibility).Write(" class ").Write(name); + for (var i = 0; i < modifiers.Count; i++) + { + Write(modifiers[i]); + Write(" "); + } + + Write("class "); + Write(name); var hasBaseType = !string.IsNullOrEmpty(baseType); var hasInterfaces = interfaces != null && interfaces.Count() > 0; diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs index 067bd26fb1..205c0d51e3 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs @@ -118,7 +118,7 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { - using (Context.Writer.BuildClassDeclaration(node.AccessModifier, node.Name, node.BaseType, node.Interfaces)) + using (Context.Writer.BuildClassDeclaration(node.Modifiers, node.Name, node.BaseType, node.Interfaces)) { RenderChildren(node); } @@ -128,25 +128,13 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration { Context.Writer.WriteLine("#pragma warning disable 1998"); - Context.Writer - .Write(node.AccessModifier) - .Write(" "); - - if (node.Modifiers != null) + for (var i = 0; i < node.Modifiers.Count; i++) { - for (var i = 0; i < node.Modifiers.Count; i++) - { - Context.Writer.Write(node.Modifiers[i]); - - if (i + 1 < node.Modifiers.Count) - { - Context.Writer.Write(" "); - } - } + Context.Writer.Write(node.Modifiers[i]); + Context.Writer.Write(" "); } Context.Writer - .Write(" ") .Write(node.ReturnType) .Write(" ") .Write(node.Name) @@ -162,12 +150,12 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration public override void VisitFieldDeclaration(FieldDeclarationIntermediateNode node) { - Context.Writer.WriteField(node.AccessModifier, node.Modifiers, node.Type, node.Name); + Context.Writer.WriteField(node.Modifiers, node.Type, node.Name); } public override void VisitPropertyDeclaration(PropertyDeclarationIntermediateNode node) { - Context.Writer.WriteAutoPropertyDeclaration(node.AccessModifier, node.Modifiers, node.Type, node.Name); + Context.Writer.WriteAutoPropertyDeclaration(node.Modifiers, node.Type, node.Name); } public override void VisitExtension(ExtensionIntermediateNode node) diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ClassDeclarationIntermediateNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ClassDeclarationIntermediateNode.cs index e2863a4daf..4bf3626ed7 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ClassDeclarationIntermediateNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ClassDeclarationIntermediateNode.cs @@ -43,7 +43,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate public override bool HasDiagnostics => _diagnostics != null && _diagnostics.Count > 0; - public string AccessModifier { get; set; } + public IList Modifiers { get; } = new List(); public string Name { get; set; } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/FieldDeclarationIntermediateNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/FieldDeclarationIntermediateNode.cs index 0a931496b6..28c40c47ff 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/FieldDeclarationIntermediateNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/FieldDeclarationIntermediateNode.cs @@ -39,13 +39,11 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; - public IList Modifiers { get; set; } = new List(); - public override SourceSpan? Source { get; set; } public override bool HasDiagnostics => _diagnostics != null && _diagnostics.Count > 0; - public string AccessModifier { get; set; } + public IList Modifiers { get; } = new List(); public string Name { get; set; } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIntermediateNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIntermediateNode.cs index c427085e75..6d1250d27b 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIntermediateNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIntermediateNode.cs @@ -43,9 +43,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate public override bool HasDiagnostics => _diagnostics != null && _diagnostics.Count > 0; - public string AccessModifier { get; set; } - - public IList Modifiers { get; set; } = new List(); + public IList Modifiers { get; } = new List(); public string Name { get; set; } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/PropertyDeclarationIntermediateNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/PropertyDeclarationIntermediateNode.cs index 8437fbc309..56ba2d48f4 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/PropertyDeclarationIntermediateNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/PropertyDeclarationIntermediateNode.cs @@ -38,14 +38,12 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate } public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; - - public IList Modifiers { get; set; } = new List(); - + public override SourceSpan? Source { get; set; } public override bool HasDiagnostics => _diagnostics != null && _diagnostics.Count > 0; - public string AccessModifier { get; set; } + public IList Modifiers { get; } = new List(); public string Name { get; set; } diff --git a/src/Microsoft.AspNetCore.Razor.Language/RazorEngine.cs b/src/Microsoft.AspNetCore.Razor.Language/RazorEngine.cs index 62eeefdb30..e9fa398537 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/RazorEngine.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/RazorEngine.cs @@ -80,7 +80,7 @@ namespace Microsoft.AspNetCore.Razor.Language configurationFeature.ConfigureClass.Add((document, @class) => { @class.Name = "Template"; - @class.AccessModifier = "public"; + @class.Modifiers.Add("public"); }); configurationFeature.ConfigureNamespace.Add((document, @namespace) => @@ -88,12 +88,14 @@ namespace Microsoft.AspNetCore.Razor.Language @namespace.Content = "Razor"; }); - configurationFeature.ConfigureMethod.Add((document, @method) => + configurationFeature.ConfigureMethod.Add((document, method) => { - @method.Name = "ExecuteAsync"; - @method.ReturnType = $"global::{typeof(Task).FullName}"; - @method.AccessModifier = "public"; - method.Modifiers = new[] { "async", "override" }; + method.Name = "ExecuteAsync"; + method.ReturnType = $"global::{typeof(Task).FullName}"; + + method.Modifiers.Add("public"); + method.Modifiers.Add("async"); + method.Modifiers.Add("override"); }); builder.Features.Add(configurationFeature); diff --git a/src/RazorPageGenerator/Program.cs b/src/RazorPageGenerator/Program.cs index e55b31f927..3229901b76 100644 --- a/src/RazorPageGenerator/Program.cs +++ b/src/RazorPageGenerator/Program.cs @@ -47,7 +47,8 @@ namespace RazorPageGenerator .ConfigureClass((document, @class) => { @class.Name = Path.GetFileNameWithoutExtension(document.Source.FilePath); - @class.AccessModifier = "internal"; + @class.Modifiers.Clear(); + @class.Modifiers.Add("internal"); }); builder.Features.Add(new SuppressChecksumOptionsFeature()); diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs index 4183e772c0..2d276a14a9 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs @@ -90,7 +90,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions // Assert Assert.Equal("global::Microsoft.AspNetCore.Mvc.Razor.RazorPage", visitor.Class.BaseType); - Assert.Equal("public", visitor.Class.AccessModifier); + Assert.Equal(new[] { "public" }, visitor.Class.Modifiers); Assert.Equal("Test_cshtml", visitor.Class.Name); } @@ -183,9 +183,8 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions // Assert Assert.Equal("ExecuteAsync", visitor.Method.Name); - Assert.Equal("public", visitor.Method.AccessModifier); Assert.Equal("global::System.Threading.Tasks.Task", visitor.Method.ReturnType); - Assert.Equal(new[] { "async", "override" }, visitor.Method.Modifiers); + Assert.Equal(new[] { "public", "async", "override" }, visitor.Method.Modifiers); } private static RazorCodeDocument CreateDocument(string content, string filePath = null) diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs index 5c48e0681b..f805e9571e 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs @@ -110,7 +110,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions // Assert Assert.Equal("global::Microsoft.AspNetCore.Mvc.RazorPages.Page", visitor.Class.BaseType); - Assert.Equal("public", visitor.Class.AccessModifier); + Assert.Equal(new[] { "public" }, visitor.Class.Modifiers); Assert.Equal("Test_cshtml", visitor.Class.Name); } @@ -203,9 +203,8 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions // Assert Assert.Equal("ExecuteAsync", visitor.Method.Name); - Assert.Equal("public", visitor.Method.AccessModifier); Assert.Equal("global::System.Threading.Tasks.Task", visitor.Method.ReturnType); - Assert.Equal(new[] { "async", "override" }, visitor.Method.Modifiers); + Assert.Equal(new[] { "public", "async", "override" }, visitor.Method.Modifiers); } private static RazorCodeDocument CreateDocument(string content, string filePath = null) 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 724cae09b4..e67c51d243 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 @@ -27,7 +27,7 @@ Document - DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - 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) IntermediateToken - (0:0,0 [4] Basic.cshtml) - Html -
- - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - IntermediateToken - - 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 81dd8118cc..ed371aeb7c 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 @@ -28,7 +28,7 @@ Document - DirectiveToken - (159:11,8 [17] IncompleteDirectives.cshtml) - MyService CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - 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) IntermediateToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (102:4,0 [6] 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 63f002a0a7..98612802cc 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 @@ -10,7 +10,7 @@ Document - UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_cshtml - global::Microsoft.AspNetCore.Mvc.RazorPages.Page - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - IntermediateToken - - CSharp - BeginContext(83, 4, true); HtmlContent - (83:0,83 [4] 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 7eb94be270..435e3fc492 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 @@ -29,7 +29,7 @@ Document - DirectiveToken - (45:1,7 [7] InheritsViewModel.cshtml) - MyModel CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 c538247737..39346a8e15 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 @@ -10,7 +10,7 @@ Document - UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsViewModel_cshtml - MyBasePageForViews - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 60e3ee580d..de03eab8d8 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 @@ -29,7 +29,7 @@ Document - DirectiveToken - (14:1,7 [7] InheritsWithViewImports.cshtml) - MyModel CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 33cb55c241..dd848c8971 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 @@ -10,7 +10,7 @@ Document - UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsWithViewImports_cshtml - MyPageModel - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 85bbf88737..ecc529e42d 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 @@ -32,7 +32,7 @@ Document - DirectiveToken - (72:2,26 [4] InjectWithModel.cshtml) - Html CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 0e5fbcaa9b..c0f671923f 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 @@ -10,7 +10,7 @@ Document - UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithModel_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 803a8146f2..40cb63f22e 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 @@ -36,7 +36,7 @@ Document - DirectiveToken - (147:4,26 [5] InjectWithSemicolon.cshtml) - Html2 CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 a759395673..ede3dcad1c 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 @@ -10,7 +10,7 @@ Document - UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithSemicolon_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 c12ec9cabc..9412f83f1e 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 - (14:0,14 [14] Inject.cshtml) - MyPropertyName CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 640df6d2b3..eb30019195 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 - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inject_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.ir.txt index d9d9a4ff5c..a61b75f209 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_DesignTime.ir.txt @@ -27,7 +27,7 @@ Document - DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync MalformedDirective - (0:0,0 [11] InvalidNamespaceAtEOF.cshtml) HtmlContent - (11:0,11 [5] InvalidNamespaceAtEOF.cshtml) IntermediateToken - (11:0,11 [5] InvalidNamespaceAtEOF.cshtml) - Html - Test. diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.ir.txt index e4b265273a..83c0c72311 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InvalidNamespaceAtEOF_Runtime.ir.txt @@ -10,7 +10,7 @@ Document - UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InvalidNamespaceAtEOF_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync MalformedDirective - (0:0,0 [11] InvalidNamespaceAtEOF.cshtml) CSharpCode - IntermediateToken - - CSharp - BeginContext(11, 5, true); 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 ffbd256ac7..c9d08346c9 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 @@ -27,7 +27,7 @@ Document - DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync MalformedDirective - (0:0,0 [6] MalformedPageDirective.cshtml) HtmlContent - (6:0,6 [49] MalformedPageDirective.cshtml) IntermediateToken - (6:0,6 [8] MalformedPageDirective.cshtml) - Html - "foo\n\n 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 83e749ae8d..b64b196ed3 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 @@ -10,7 +10,7 @@ Document - UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MalformedPageDirective_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync MalformedDirective - (0:0,0 [6] MalformedPageDirective.cshtml) CSharpCode - IntermediateToken - - CSharp - BeginContext(6, 49, true); 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 238c7f6f1a..cd0ca20533 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 @@ -30,7 +30,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - InputTestTagHelper - MethodDeclaration - - 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) IntermediateToken - (17:1,0 [2] ModelExpressionTagHelper.cshtml) - Html - \n HtmlContent - (62:2,43 [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 784f105c21..74db0d2498 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 @@ -11,7 +11,7 @@ Document - UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ModelExpressionTagHelper_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - DeclareTagHelperFields - - InputTestTagHelper - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - IntermediateToken - - 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 5b8d284258..0e978084d5 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 @@ -28,7 +28,7 @@ Document - DirectiveToken - (7:0,7 [30] Model.cshtml) - System.Collections.IEnumerable CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 a31365b0ed..772ca26522 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 @@ -10,7 +10,7 @@ Document - UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Model_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 eeb337d0b1..1385d85b11 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 @@ -29,7 +29,7 @@ Document - DirectiveToken - (37:1,7 [30] MultipleModels.cshtml) - System.Collections.IEnumerable CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 49f769c135..948c2d9838 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 @@ -28,7 +28,7 @@ Document - DirectiveToken - (18:1,11 [14] PageWithNamespace.cshtml) - Test.Namespace CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - 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) IntermediateToken - (34:2,0 [4] PageWithNamespace.cshtml) - Html -

IntermediateToken - (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 03b181755e..d17b42d38a 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 @@ -10,7 +10,7 @@ Document - UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - PageWithNamespace_Page - global::Microsoft.AspNetCore.Mvc.RazorPages.Page - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - IntermediateToken - - 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 244af2848a..7bfa88ba66 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 @@ -30,7 +30,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - DivTagHelper - MethodDeclaration - - 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) IntermediateToken - (7:1,0 [2] RazorPagesWithoutModel.cshtml) - Html - \n HtmlContent - (35:2,26 [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 774bf45c72..2a2d2c2847 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 @@ -16,7 +16,7 @@ Document - DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - class - form-group - AttributeStructure.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - class - col-md-offset-2 col-md-10 - AttributeStructure.DoubleQuotes DeclareTagHelperFields - - DivTagHelper - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - IntermediateToken - - 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 ebae8659a5..cb8161091a 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 @@ -31,7 +31,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - DivTagHelper - MethodDeclaration - - 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) IntermediateToken - (7:1,0 [2] RazorPages.cshtml) - Html - \n HtmlContent - (52:3,26 [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 e60d171b16..927cce1d41 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 @@ -16,7 +16,7 @@ Document - DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - class - form-group - AttributeStructure.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 - class - col-md-offset-2 col-md-10 - AttributeStructure.DoubleQuotes DeclareTagHelperFields - - DivTagHelper - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - IntermediateToken - - 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/ViewComponentTagHelper_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.ir.txt index 450ddb3314..5bd4b90601 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.ir.txt @@ -29,7 +29,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewComponentTagHelper_cshtml.__Generated__TestViewComponentTagHelper - AllTagHelper - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (26:0,26 [2] ViewComponentTagHelper.cshtml) IntermediateToken - (26:0,26 [2] ViewComponentTagHelper.cshtml) - Html - \n CSharpCode - (30:1,2 [26] ViewComponentTagHelper.cshtml) diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.ir.txt index 3494e6df60..745df89b09 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.ir.txt @@ -12,7 +12,7 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewComponentTagHelper_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_0 - bar - World - HtmlAttributeValueStyle.DoubleQuotes DeclareTagHelperFields - - AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewComponentTagHelper_cshtml.__Generated__TestViewComponentTagHelper - AllTagHelper - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (30:1,2 [26] ViewComponentTagHelper.cshtml) IntermediateToken - (30:1,2 [26] ViewComponentTagHelper.cshtml) - CSharp - \n var foo = "Hello";\n CSharpCode - 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 031cc1bf91..33f728cf91 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 @@ -28,7 +28,7 @@ Document - DirectiveToken - (11:0,11 [14] ViewWithNamespace.cshtml) - Test.Namespace CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - 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) IntermediateToken - (27:1,0 [4] ViewWithNamespace.cshtml) - Html -

IntermediateToken - (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 fb708cea33..2f1d0687a3 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 @@ -10,7 +10,7 @@ Document - UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - ViewWithNamespace_View - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - IntermediateToken - - 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 1ed1c54f72..88d5a893db 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 @@ -29,7 +29,7 @@ Document - DirectiveToken - (28:0,28 [5] _ViewImports.cshtml) - Model CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - 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 86c43b01c9..7717cfbdab 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 @@ -10,7 +10,7 @@ Document - UsingStatement - (135:5,1 [42] ) - Microsoft.AspNetCore.Mvc.Rendering UsingStatement - (178:6,1 [45] ) - Microsoft.AspNetCore.Mvc.ViewFeatures ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest__ViewImports_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync Inject - Inject - Inject - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.ir.txt index 8dba13bfc8..c9e1bcd1b7 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.ir.txt @@ -5,7 +5,7 @@ Document - DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - type - text - AttributeStructure.SingleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - unbound - foo - AttributeStructure.DoubleQuotes DeclareTagHelperFields - - FormTagHelper - InputTagHelper - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - IntermediateToken - - CSharp - BeginContext(31, 28, true); HtmlContent - (31:1,0 [28] BasicTest.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/CSharpCodeWriterTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/CSharpCodeWriterTest.cs index f0465d4b8d..d42c681534 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/CSharpCodeWriterTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/CSharpCodeWriterTest.cs @@ -308,7 +308,7 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration var writer = new CSharpCodeWriter(); // Act - writer.WriteField("private", "global::System.String", "_myString"); + writer.WriteField(new[] { "private" }, "global::System.String", "_myString"); // Assert var output = writer.GenerateCode(); @@ -322,7 +322,7 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration var writer = new CSharpCodeWriter(); // Act - writer.WriteField("private", new[] { "readonly", "static" }, "global::System.String", "_myString"); + writer.WriteField(new[] { "private", "readonly", "static" }, "global::System.String", "_myString"); // Assert var output = writer.GenerateCode(); @@ -336,7 +336,7 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration var writer = new CSharpCodeWriter(); // Act - writer.WriteAutoPropertyDeclaration("public", "global::System.String", "MyString"); + writer.WriteAutoPropertyDeclaration(new[] { "public" }, "global::System.String", "MyString"); // Assert var output = writer.GenerateCode(); @@ -350,7 +350,7 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration var writer = new CSharpCodeWriter(); // Act - writer.WriteAutoPropertyDeclaration("public", new[] { "static" }, "global::System.String", "MyString"); + writer.WriteAutoPropertyDeclaration(new[] { "public", "static" }, "global::System.String", "MyString"); // Assert var output = writer.GenerateCode(); diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DefaultDocumentWriterTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DefaultDocumentWriterTest.cs index 507223059e..9dbf59901d 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DefaultDocumentWriterTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DefaultDocumentWriterTest.cs @@ -133,7 +133,10 @@ namespace TestNamespace var builder = IntermediateNodeBuilder.Create(document); builder.Add(new ClassDeclarationIntermediateNode() { - AccessModifier = "internal", + Modifiers = + { + "internal" + }, BaseType = "TestBase", Interfaces = new List { "IFoo", "IBar", }, Name = "TestClass", @@ -174,8 +177,12 @@ internal class TestClass : TestBase, IFoo, IBar var builder = IntermediateNodeBuilder.Create(document); builder.Add(new MethodDeclarationIntermediateNode() { - AccessModifier = "internal", - Modifiers = new List { "virtual", "async", }, + Modifiers = + { + "internal", + "virtual", + "async", + }, Name = "TestMethod", ReturnType = "string", }); @@ -217,8 +224,11 @@ internal virtual async string TestMethod() var builder = IntermediateNodeBuilder.Create(document); builder.Add(new FieldDeclarationIntermediateNode() { - AccessModifier = "internal", - Modifiers = new List { "readonly", }, + Modifiers = + { + "internal", + "readonly", + }, Name = "_foo", Type = "string", }); @@ -256,8 +266,11 @@ internal readonly string _foo; var builder = IntermediateNodeBuilder.Create(document); builder.Add(new PropertyDeclarationIntermediateNode() { - AccessModifier = "internal", - Modifiers = new List { "virtual", }, + Modifiers = + { + "internal", + "virtual", + }, Name = "Foo", Type = "string", }); diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/RazorTemplateEngineIntegrationTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/RazorTemplateEngineIntegrationTest.cs index 7885f8edab..d7ad0e1f21 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/RazorTemplateEngineIntegrationTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/RazorTemplateEngineIntegrationTest.cs @@ -66,7 +66,10 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests engine.ConfigureClass((document, @class) => { @class.Name = "MyClass"; - @class.AccessModifier = "protected internal"; + + @class.Modifiers.Clear(); + @class.Modifiers.Add("protected"); + @class.Modifiers.Add("internal"); }); engine.ConfigureClass((document, @class) => 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 ea627cf4c5..2e159a5cba 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 @@ -1,4 +1,4 @@ Document - NamespaceDeclaration - - Razor ClassDeclaration - - public - Template - - - MethodDeclaration - - 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 ea627cf4c5..2e159a5cba 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 @@ -1,4 +1,4 @@ Document - NamespaceDeclaration - - Razor ClassDeclaration - - public - Template - - - MethodDeclaration - - 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 674f902952..98b909d3f4 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 @@ -1,6 +1,6 @@ Document - NamespaceDeclaration - - Razor ClassDeclaration - - public - Template - - - MethodDeclaration - - 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) IntermediateToken - (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 54fc955842..283dc57992 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 @@ -5,6 +5,6 @@ Document - DirectiveToken - (14:0,14 [17] AddTagHelperDirective.cshtml) - "*, TestAssembly" CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [2] AddTagHelperDirective.cshtml) IntermediateToken - (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 3437a8f033..721c22aafe 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 @@ -6,7 +6,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [4] AttributeTargetingTagHelpers.cshtml) IntermediateToken - (29:0,29 [4] AttributeTargetingTagHelpers.cshtml) - Html - \n\n TagHelper - (33:2,0 [228] AttributeTargetingTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag 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 344133984a..4442c685b8 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 @@ -5,7 +5,7 @@ Document - DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_1 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 - class - btn - AttributeStructure.DoubleQuotes DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [2] AttributeTargetingTagHelpers.cshtml) IntermediateToken - (31:1,0 [2] AttributeTargetingTagHelpers.cshtml) - Html - \n TagHelper - (33:2,0 [228] AttributeTargetingTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag 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 5ed03ea903..acf07e052b 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (89:5,1 [102] Await.cshtml) IntermediateToken - (89:5,1 [4] Await.cshtml) - Html - \n\n IntermediateToken - (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 a004a2072d..1f2ab0b7c2 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (91:6,0 [100] Await.cshtml) IntermediateToken - (91:6,0 [2] Await.cshtml) - Html - \n IntermediateToken - (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 699191e5e1..cdd2e5be07 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 @@ -8,7 +8,7 @@ Document - DirectiveToken - (119:4,10 [5] BasicImports_Imports0.cshtml) - Hello CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] BasicImports.cshtml) IntermediateToken - (0:0,0 [3] BasicImports.cshtml) - Html -

IntermediateToken - (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 32bec3fc4b..8980c30796 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 @@ -4,7 +4,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 - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] BasicImports.cshtml) IntermediateToken - (0:0,0 [3] BasicImports.cshtml) - Html -

IntermediateToken - (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 77229ed172..8f1384d1a3 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 @@ -6,7 +6,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [73] BasicTagHelpers.cshtml) IntermediateToken - (31:0,31 [4] BasicTagHelpers.cshtml) - Html - \n\n IntermediateToken - (35:2,0 [4] BasicTagHelpers.cshtml) - Html -

IntermediateToken - (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 122cfe0492..e7d0eb4998 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [8] CSharp7.cshtml) IntermediateToken - (0:0,0 [6] CSharp7.cshtml) - Html - IntermediateToken - (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 bd124aa55f..fe919c2294 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 @@ -4,6 +4,6 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [0] CodeBlockAtEOF.cshtml) IntermediateToken - (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 fead6eb6be..c905d540e8 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 @@ -1,6 +1,6 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [0] CodeBlockAtEOF.cshtml) IntermediateToken - (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 3a17f2fd79..d893e47744 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [17] CodeBlockWithTextElement.cshtml) IntermediateToken - (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 b7a478b052..1dccf74278 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [17] CodeBlockWithTextElement.cshtml) IntermediateToken - (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/CodeBlock_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt index e6375039bd..0c27a6c13f 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 @@ -4,6 +4,6 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [115] CodeBlock.cshtml) IntermediateToken - (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 b02e8f4e58..962866d7d7 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 @@ -1,6 +1,6 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [115] CodeBlock.cshtml) IntermediateToken - (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 fc6346030b..629171de7a 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 @@ -6,7 +6,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] ComplexTagHelpers.cshtml) IntermediateToken - (31:0,31 [4] ComplexTagHelpers.cshtml) - Html - \n\n CSharpCode - (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 af802af505..293045ac13 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 @@ -10,7 +10,7 @@ Document - DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_6 - unbound - world - AttributeStructure.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_7 - class - hello - AttributeStructure.DoubleQuotes DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] ComplexTagHelpers.cshtml) IntermediateToken - (33:1,0 [2] ComplexTagHelpers.cshtml) - Html - \n CSharpCode - (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 29666f133b..8cc760089a 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [48] ConditionalAttributes.cshtml) IntermediateToken - (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 3e193123b1..120563b3f3 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [44] ConditionalAttributes.cshtml) IntermediateToken - (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 3253a53346..c39cf47cd6 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 @@ -11,7 +11,7 @@ Document - DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_7 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_8 - value - 2 TagHelper - AttributeStructure.DoubleQuotes DeclareTagHelperFields - - TestNamespace.ATagHelper - TestNamespace.CatchAllTagHelper - TestNamespace.ATagHelperMultipleSelectors - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.CatchAllTagHelper2 - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] CssSelectorTagHelperAttributes.cshtml) IntermediateToken - (33:1,0 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n TagHelper - (35:2,0 [30] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag 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 e53c2e7839..ead9fe0ad7 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 @@ -5,7 +5,7 @@ Document - DirectiveToken - (173:11,9 [6] DesignTime.cshtml) - Footer CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [19] DesignTime.cshtml) IntermediateToken - (0:0,0 [5] DesignTime.cshtml) - Html -
IntermediateToken - (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 4bee25f77d..c52495c85a 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 @@ -6,7 +6,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] DuplicateAttributeTagHelpers.cshtml) IntermediateToken - (31:0,31 [4] DuplicateAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (35:2,0 [259] DuplicateAttributeTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag 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 cb51538f66..bc906350cf 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 @@ -11,7 +11,7 @@ Document - DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_7 - AGE - 40 - AttributeStructure.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_8 - Age - 500 - AttributeStructure.DoubleQuotes DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] DuplicateAttributeTagHelpers.cshtml) IntermediateToken - (33:1,0 [2] DuplicateAttributeTagHelpers.cshtml) - Html - \n TagHelper - (35:2,0 [259] DuplicateAttributeTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.ir.txt index b2120735c4..1445b4bf50 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.ir.txt @@ -6,7 +6,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.CatchAllTagHelper - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] DuplicateTargetTagHelper.cshtml) IntermediateToken - (31:0,31 [4] DuplicateTargetTagHelper.cshtml) - Html - \n\n TagHelper - (35:2,0 [40] DuplicateTargetTagHelper.cshtml) - input - TagMode.SelfClosing diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.ir.txt index 9e4cfb7bdb..0a18005d6b 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.ir.txt @@ -3,7 +3,7 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateTargetTagHelper_Runtime - - DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_0 - type - checkbox - HtmlAttributeValueStyle.DoubleQuotes DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.CatchAllTagHelper - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] DuplicateTargetTagHelper.cshtml) IntermediateToken - (33:1,0 [2] DuplicateTargetTagHelper.cshtml) - Html - \n TagHelper - (35:2,0 [40] DuplicateTargetTagHelper.cshtml) - input - TagMode.SelfClosing 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 346303293e..240d500d78 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 @@ -6,7 +6,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] DynamicAttributeTagHelpers.cshtml) IntermediateToken - (31:0,31 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (35:2,0 [40] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing 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 43355ffc30..06cbe022b3 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 @@ -2,7 +2,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DynamicAttributeTagHelpers_Runtime - - DeclareTagHelperFields - - TestNamespace.InputTagHelper - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] DynamicAttributeTagHelpers.cshtml) IntermediateToken - (33:1,0 [2] DynamicAttributeTagHelpers.cshtml) - Html - \n TagHelper - (35:2,0 [40] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing 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 9c6df94eef..1f3d568410 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 @@ -6,7 +6,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.PTagHelper - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [15] EmptyAttributeTagHelpers.cshtml) IntermediateToken - (29:0,29 [4] EmptyAttributeTagHelpers.cshtml) - Html - \n\n IntermediateToken - (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 8ac44d8bbc..b7247e4668 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 @@ -4,7 +4,7 @@ Document - DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_0 - type - - HtmlAttributeValueStyle.DoubleQuotes DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 - class - - AttributeStructure.DoubleQuotes DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.PTagHelper - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [13] EmptyAttributeTagHelpers.cshtml) IntermediateToken - (31:1,0 [2] EmptyAttributeTagHelpers.cshtml) - Html - \n IntermediateToken - (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 c70511e2a3..577b008b7b 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyCodeBlock.cshtml) IntermediateToken - (0:0,0 [18] EmptyCodeBlock.cshtml) - Html - This is markup\n\n CSharpCode - (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 ba69ccce0f..8c313f73c7 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyCodeBlock_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyCodeBlock.cshtml) IntermediateToken - (0:0,0 [18] EmptyCodeBlock.cshtml) - Html - This is markup\n\n CSharpCode - (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 05cd56dd30..c2d457b07c 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyExplicitExpression.cshtml) IntermediateToken - (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 5feb71bd7f..23c889ee0f 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExplicitExpression_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyExplicitExpression.cshtml) IntermediateToken - (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 35dfbae23b..3d6df2c7e3 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) IntermediateToken - (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 4710b31a95..952bf2bcb0 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpressionInCode_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) IntermediateToken - (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 5f2d153e4d..05b2a6a523 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyImplicitExpression.cshtml) IntermediateToken - (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 3c189406a6..e404569687 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpression_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyImplicitExpression.cshtml) IntermediateToken - (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 cea8c64b83..8b2aaf0b7b 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 @@ -6,7 +6,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.CatchAllTagHelper - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] EnumTagHelpers.cshtml) IntermediateToken - (31:0,31 [4] EnumTagHelpers.cshtml) - Html - \n\n CSharpCode - (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 853f2a6118..62442eb348 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 @@ -2,7 +2,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EnumTagHelpers_Runtime - - DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.CatchAllTagHelper - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] EnumTagHelpers.cshtml) IntermediateToken - (33:1,0 [2] EnumTagHelpers.cshtml) - Html - \n CSharpCode - (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 4bd322cf26..bebc49b9b5 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 @@ -6,7 +6,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [5] EscapedTagHelpers.cshtml) IntermediateToken - (29:0,29 [4] EscapedTagHelpers.cshtml) - Html - \n\n IntermediateToken - (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 1195744299..5dd61f9ba7 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 @@ -2,7 +2,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EscapedTagHelpers_Runtime - - DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [3] EscapedTagHelpers.cshtml) IntermediateToken - (31:1,0 [2] EscapedTagHelpers.cshtml) - Html - \n IntermediateToken - (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 732d718954..a07ef86d82 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) IntermediateToken - (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 d122c632d6..a435fb6858 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionAtEOF_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) IntermediateToken - (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 a505b68cfa..ebfcb2861a 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) IntermediateToken - (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 ac419737c6..b112ccd9bd 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionWithMarkup_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) IntermediateToken - (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 c43d6407cb..2d3e682f8e 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [8] ExplicitExpression.cshtml) IntermediateToken - (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 6d0a55857e..1d4d7afbba 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpression_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [8] ExplicitExpression.cshtml) IntermediateToken - (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 cd0139ceca..8f0effde21 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [51] ExpressionsInCode.cshtml) IntermediateToken - (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 ef6f12bfc3..aa1cb230d8 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExpressionsInCode_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [51] ExpressionsInCode.cshtml) IntermediateToken - (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 8263f541fd..84a5a92210 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [5] FunctionsBlockMinimal.cshtml) IntermediateToken - (0:0,0 [5] FunctionsBlockMinimal.cshtml) - Html - \n\n CSharpCode - (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 ca46673414..be99b1fcf0 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [4] FunctionsBlockMinimal.cshtml) IntermediateToken - (0:0,0 [4] FunctionsBlockMinimal.cshtml) - Html - \n\n CSharpCode - (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 8d8d3c5733..805b06787f 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (17:2,1 [4] FunctionsBlock.cshtml) IntermediateToken - (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 8c9af6e120..5e1a08efbf 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlock_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (19:3,0 [2] FunctionsBlock.cshtml) IntermediateToken - (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 57d2e768fc..1c060b5603 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] HiddenSpansInCode.cshtml) IntermediateToken - (2:0,2 [6] HiddenSpansInCode.cshtml) - CSharp - \n CSharpCode - (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 3d4b3572b1..7b24771c9f 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] HiddenSpansInCode.cshtml) IntermediateToken - (2:0,2 [6] HiddenSpansInCode.cshtml) - CSharp - \n CSharpCode - (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 913dde1503..9096fd240d 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Double.cshtml) IntermediateToken - (0:0,0 [12] HtmlCommentWithQuote_Double.cshtml) - Html - \n IntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - \n IntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - \n IntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - \n IntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - >.boz CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpExpression - (1:0,1 [5] Inherits.cshtml) IntermediateToken - (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 93f5cd30aa..f0ffd94e9e 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inherits_Runtime - foo.bar>.boz - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpExpression - (1:0,1 [5] Inherits.cshtml) IntermediateToken - (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 5a2652a0a9..a0662f5b04 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 @@ -5,7 +5,7 @@ Document - DirectiveToken - (9:0,9 [4] InlineBlocks.cshtml) - Link CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync MalformedDirective - (0:0,0 [13] InlineBlocks.cshtml) DirectiveToken - (9:0,9 [4] InlineBlocks.cshtml) - Link HtmlContent - (13:0,13 [23] InlineBlocks.cshtml) 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 ca1afa2e34..eecc283b98 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InlineBlocks_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync MalformedDirective - (0:0,0 [13] InlineBlocks.cshtml) DirectiveToken - (9:0,9 [4] InlineBlocks.cshtml) - Link HtmlContent - (13:0,13 [23] InlineBlocks.cshtml) 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 615512b7c6..58bb003d47 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [32] Instrumented.cshtml) IntermediateToken - (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 5e98fd1e17..5259662cfa 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrumented_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [32] Instrumented.cshtml) IntermediateToken - (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 f55c16a3e1..c10b8d81c5 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [46] MarkupInCodeBlock.cshtml) IntermediateToken - (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 83cc4832a4..9f46cfe6c7 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [38] MarkupInCodeBlock.cshtml) IntermediateToken - (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 0701965a3d..e7b61176eb 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 @@ -6,7 +6,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] MinimizedTagHelpers.cshtml) IntermediateToken - (31:0,31 [4] MinimizedTagHelpers.cshtml) - Html - \n\n TagHelper - (35:2,0 [647] MinimizedTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag 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 4d753b7607..ae71be6dff 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 @@ -9,7 +9,7 @@ Document - DeclarePreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 - input-unbound-required - hello2 - AttributeStructure.DoubleQuotes DeclarePreallocatedTagHelperAttribute - - __tagHelperAttribute_6 - input-bound-required-string - world - HtmlAttributeValueStyle.DoubleQuotes DeclareTagHelperFields - - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] MinimizedTagHelpers.cshtml) IntermediateToken - (33:1,0 [2] MinimizedTagHelpers.cshtml) - Html - \n TagHelper - (35:2,0 [647] MinimizedTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag 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 2dcbe468d0..98f331bb2a 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] NestedCSharp.cshtml) IntermediateToken - (2:0,2 [6] NestedCSharp.cshtml) - CSharp - \n CSharpCode - (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 88311e244f..b814b88e6f 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSharp_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] NestedCSharp.cshtml) IntermediateToken - (2:0,2 [6] NestedCSharp.cshtml) - CSharp - \n CSharpCode - (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 a91e77c12d..ff18237303 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (1:0,1 [15] NestedCodeBlocks.cshtml) IntermediateToken - (1:0,1 [15] NestedCodeBlocks.cshtml) - CSharp - if(foo) {\n CSharpCode - (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 b38c7cacdb..354dcf1292 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 @@ -1,7 +1,7 @@ Document - NamespaceDeclaration - - Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCodeBlocks_Runtime - - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (1:0,1 [15] NestedCodeBlocks.cshtml) IntermediateToken - (1:0,1 [15] NestedCodeBlocks.cshtml) - CSharp - if(foo) {\n CSharpCode - (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 43c5d82c4c..730d7aaaba 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 @@ -6,7 +6,7 @@ Document - CSharpCode - IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync + MethodDeclaration - - public async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [108] NestedScriptTagTagHelpers.cshtml) IntermediateToken - (31:0,31 [4] NestedScriptTagTagHelpers.cshtml) - Html - \n\n IntermediateToken - (35:2,0 [7] NestedScriptTagTagHelpers.cshtml) - Html -