From 21e26ad4aa516f7e611f40d654821a3bf142376b Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Wed, 21 Jun 2017 12:55:16 -0700 Subject: [PATCH] Rename RazorIRNode Get rid of references to 'IR' --- .../AssemblyAttributeInjectionPass.cs | 26 +- ...Extension.cs => IInjectTargetExtension.cs} | 4 +- .../InjectDirective.cs | 21 +- ...iveIRNode.cs => InjectIntermediateNode.cs} | 12 +- ...tExtension.cs => InjectTargetExtension.cs} | 4 +- .../InstrumentationPass.cs | 40 +- .../ModelDirective.cs | 28 +- .../ModelExpressionPass.cs | 34 +- .../MvcViewDocumentClassifierPass.cs | 8 +- .../NamespaceDirective.cs | 30 +- .../PageDirective.cs | 12 +- .../PagesPropertyInjectionPass.cs | 32 +- .../RazorExtensions.cs | 1 - .../RazorPageDocumentClassifierPass.cs | 10 +- .../ViewComponentTagHelperPass.cs | 52 +- .../CodeGeneration/BasicWriter.cs | 16 +- .../CodeGeneration/CSharpRenderingContext.cs | 8 +- .../CodeGeneration/DefaultDocumentWriter.cs | 50 +- .../CodeGeneration/DesignTimeBasicWriter.cs | 42 +- .../DesignTimeDirectiveTargetExtension.cs | 6 +- .../DesignTimeTagHelperWriter.cs | 36 +- .../CodeGeneration/DocumentWriter.cs | 2 +- .../IDesignTimeDirectiveTargetExtension.cs | 2 +- .../IPreallocatedAttributeTargetExtension.cs | 8 +- .../PreallocatedAttributeTargetExtension.cs | 8 +- .../CodeGeneration/RuntimeBasicWriter.cs | 38 +- .../CodeGeneration/RuntimeTagHelperWriter.cs | 38 +- .../CodeGeneration/TagHelperWriter.cs | 12 +- .../DefaultDocumentClassifierPass.cs | 8 +- .../DefaultDocumentClassifierPassFeature.cs | 12 +- .../DefaultRazorCSharpLoweringPhase.cs | 4 +- ...cs => DefaultRazorDiagnosticCollection.cs} | 4 +- .../DefaultRazorDirectiveClassifierPhase.cs | 4 +- .../DefaultRazorDocumentClassifierPhase.cs | 4 +- .../DefaultRazorIROptimizationPhase.cs | 30 - ...aultRazorIntermediateNodeLoweringPhase.cs} | 124 +- .../DefaultRazorOptimizationPhase.cs | 30 + ...meIRPass.cs => DesignTimeDirectivePass.cs} | 28 +- ...cs => DirectiveRemovalOptimizationPass.cs} | 14 +- .../DocumentClassifierPassBase.cs | 64 +- .../Extensions/FunctionsDirectivePass.cs | 8 +- .../Extensions/ISectionTargetExtension.cs | 2 +- .../Extensions/ITemplateTargetExtension.cs | 2 +- .../Extensions/InheritsDirectivePass.cs | 10 +- .../Extensions/SectionDirectivePass.cs | 14 +- ...onIRNode.cs => SectionIntermediateNode.cs} | 8 +- .../Extensions/SectionTargetExtension.cs | 2 +- ...eIRNode.cs => TemplateIntermediateNode.cs} | 8 +- .../Extensions/TemplateTargetExtension.cs | 2 +- .../IRazorCSharpLoweringPhase.cs | 8 +- .../IRazorDirectiveClassifierPass.cs | 2 +- .../IRazorDirectiveClassifierPhase.cs | 11 +- .../IRazorDocumentClassifierPass.cs | 2 +- .../IRazorDocumentClassifierPhase.cs | 11 +- .../IRazorIRLoweringPhase.cs | 19 - .../IRazorIROptimizationPhase.cs | 24 - .../IRazorIntermediateNodeLoweringPhase.cs | 19 + ...ationPass.cs => IRazorOptimizationPass.cs} | 4 +- .../IRazorOptimizationPhase.cs | 24 + ...TagHelperHtmlAttributeIntermediateNode.cs} | 8 +- ...TagHelperHtmlAttributeIntermediateNode.cs} | 8 +- ...harpCodeAttributeValueIntermediateNode.cs} | 8 +- ...RNode.cs => CSharpCodeIntermediateNode.cs} | 8 +- ...pressionAttributeValueIntermediateNode.cs} | 8 +- ...cs => CSharpExpressionIntermediateNode.cs} | 8 +- ...cs => ClassDeclarationIntermediateNode.cs} | 8 +- ....cs => CreateTagHelperIntermediateNode.cs} | 8 +- ...atedTagHelperAttributeIntermediateNode.cs} | 8 +- ...TagHelperHtmlAttributeIntermediateNode.cs} | 8 +- ...DeclareTagHelperFieldsIntermediateNode.cs} | 8 +- ...s => DefaultIntermediateNodeCollection.cs} | 20 +- ...=> DefaultRazorIntermediateNodeBuilder.cs} | 24 +- ...=> DesignTimeDirectiveIntermediateNode.cs} | 8 +- ...IRNode.cs => DirectiveIntermediateNode.cs} | 10 +- ...e.cs => DirectiveTokenIntermediateNode.cs} | 8 +- ...tIRNode.cs => DocumentIntermediateNode.cs} | 8 +- ... => DocumentIntermediateNodeExtensions.cs} | 26 +- ...IRNode.cs => ExtensionIntermediateNode.cs} | 10 +- ...cs => FieldDeclarationIntermediateNode.cs} | 8 +- ...de.cs => HtmlAttributeIntermediateNode.cs} | 8 +- ... => HtmlAttributeValueIntermediateNode.cs} | 8 +- ...Node.cs => HtmlContentIntermediateNode.cs} | 8 +- ...s => IExtensionIntermediateNodeVisitor.cs} | 2 +- .../{RazorIRNode.cs => IntermediateNode.cs} | 6 +- .../Intermediate/IntermediateNodeBuilder.cs | 34 + .../IntermediateNodeCollection.cs | 40 + ...sions.cs => IntermediateNodeExtensions.cs} | 6 +- ...erence.cs => IntermediateNodeReference.cs} | 62 +- ...eVisitor.cs => IntermediateNodeVisitor.cs} | 56 +- ...odeWalker.cs => IntermediateNodeWalker.cs} | 10 +- .../{RazorIRToken.cs => IntermediateToken.cs} | 8 +- ... => MalformedDirectiveIntermediateNode.cs} | 10 +- ...s => MemberDeclarationIntermediateNode.cs} | 2 +- ...s => MethodDeclarationIntermediateNode.cs} | 8 +- ...> NamespaceDeclarationIntermediateNode.cs} | 8 +- ...=> PropertyDeclarationIntermediateNode.cs} | 8 +- .../Intermediate/RazorIRBuilder.cs | 34 - .../Intermediate/RazorIRNodeCollection.cs | 40 - ... => ReadOnlyIntermediateNodeCollection.cs} | 24 +- ...catedTagHelperPropertyIntermediateNode.cs} | 8 +- ...> SetTagHelperPropertyIntermediateNode.cs} | 8 +- ...de.cs => TagHelperBodyIntermediateNode.cs} | 8 +- ...IRNode.cs => TagHelperIntermediateNode.cs} | 8 +- ...e.cs => UsingStatementIntermediateNode.cs} | 8 +- ...assBase.cs => IntermediateNodePassBase.cs} | 12 +- .../Properties/Resources.Designer.cs | 32 +- .../RazorCodeDocumentExtensions.cs | 8 +- .../RazorDiagnosticCollection.cs | 2 +- .../RazorEngine.cs | 12 +- .../RazorEngineBuilderExtensions.cs | 4 +- ...catedTagHelperAttributeOptimizationPass.cs | 44 +- .../ReadOnlyDiagnosticCollection.cs | 2 +- .../Resources.resx | 8 +- .../AssemblyAttributeInjectionPassTest.cs | 92 +- .../InjectDirectiveTest.cs | 28 +- ...onTest.cs => InjectTargetExtensionTest.cs} | 10 +- .../InstrumentationPassTest.cs | 98 +- .../CodeGenerationIntegrationTest.cs | 4 +- .../InstrumentationPassIntegrationTest.cs | 2 +- .../ModelDirectiveTest.cs | 30 +- .../ModelExpressionPassTest.cs | 38 +- .../MvcViewDocumentClassifierPassTest.cs | 20 +- .../NamespaceDirectiveTest.cs | 94 +- .../PageDirectiveTest.cs | 4 +- .../RazorPageDocumentClassifierPassTest.cs | 20 +- .../Basic_DesignTime.ir.txt | 44 +- .../Basic_Runtime.ir.txt | 72 +- .../IncompleteDirectives_DesignTime.ir.txt | 36 +- .../IncompleteDirectives_Runtime.ir.txt | 72 +- .../InheritsViewModel_DesignTime.ir.txt | 14 +- .../InheritsViewModel_Runtime.ir.txt | 12 +- .../InheritsWithViewImports_DesignTime.ir.txt | 18 +- .../InheritsWithViewImports_Runtime.ir.txt | 16 +- .../InjectWithModel_DesignTime.ir.txt | 16 +- .../InjectWithModel_Runtime.ir.txt | 14 +- .../InjectWithSemicolon_DesignTime.ir.txt | 20 +- .../InjectWithSemicolon_Runtime.ir.txt | 18 +- .../Inject_DesignTime.ir.txt | 16 +- .../Inject_Runtime.ir.txt | 14 +- .../InvalidNamespaceAtEOF_DesignTime.ir.txt | 16 +- .../InvalidNamespaceAtEOF_Runtime.ir.txt | 18 +- .../MalformedPageDirective_DesignTime.ir.txt | 30 +- .../MalformedPageDirective_Runtime.ir.txt | 32 +- ...ModelExpressionTagHelper_DesignTime.ir.txt | 36 +- .../ModelExpressionTagHelper_Runtime.ir.txt | 58 +- .../Model_DesignTime.ir.txt | 14 +- .../Model_Runtime.ir.txt | 12 +- .../MultipleModels_DesignTime.ir.txt | 14 +- .../PageWithNamespace_DesignTime.ir.txt | 26 +- .../PageWithNamespace_Runtime.ir.txt | 28 +- .../RazorPagesWithoutModel_DesignTime.ir.txt | 122 +- .../RazorPagesWithoutModel_Runtime.ir.txt | 188 +- .../RazorPages_DesignTime.ir.txt | 122 +- .../RazorPages_Runtime.ir.txt | 188 +- .../ViewComponentTagHelper_DesignTime.ir.txt | 26 +- .../ViewComponentTagHelper_Runtime.ir.txt | 28 +- .../ViewWithNamespace_DesignTime.ir.txt | 22 +- .../ViewWithNamespace_Runtime.ir.txt | 24 +- .../_ViewImports_DesignTime.ir.txt | 16 +- .../_ViewImports_Runtime.ir.txt | 14 +- .../BasicTest.ir.txt | 86 +- .../ViewComponentTagHelperPassTest.cs | 62 +- .../DefaultDocumentWriterTest.cs | 38 +- .../DesignTimeBasicWriterTest.cs | 114 +- .../DesignTimeDirectiveTargetExtensionTest.cs | 24 +- .../DesignTimeTagHelperWriterTest.cs | 18 +- .../LiteralRuntimeBasicWriterTest.cs | 8 +- ...reallocatedAttributeTargetExtensionTest.cs | 12 +- .../CodeGeneration/RuntimeBasicWriterTest.cs | 118 +- .../RuntimeTagHelperWriterTest.cs | 30 +- ...lperHtmlAttributeRuntimeBasicWriterTest.cs | 14 +- .../DefaultDocumentClassifierPassTest.cs | 22 +- .../DefaultRazorCSharpLoweringPhaseTest.cs | 12 +- ...efaultRazorDirectiveClassifierPhaseTest.cs | 12 +- ...DefaultRazorDocumentClassifierPhaseTest.cs | 12 +- ...ediateNodeLoweringPhaseIntegrationTest.cs} | 104 +- ...RazorIntermediateNodeLoweringPhaseTest.cs} | 20 +- ...s => DefaultRazorOptimizationPhaseTest.cs} | 28 +- ...> DirectiveRemovalOptimizationPassTest.cs} | 48 +- .../DocumentClassifierPassBaseTest.cs | 128 +- .../Extensions/FunctionsDirectivePassTest.cs | 20 +- .../Extensions/InheritsDirectivePassTest.cs | 18 +- .../Extensions/SectionDirectivePassTest.cs | 20 +- .../Extensions/SectionTargetExtensionTest.cs | 6 +- .../Extensions/TemplateTargetExtensionTest.cs | 4 +- .../IntegrationTests/BasicIntegrationTest.cs | 8 +- .../CodeGenerationIntegrationTest.cs | 8 +- .../ExtensibleDirectiveTest.cs | 2 +- .../HtmlAttributeIntegrationTest.cs | 4 +- .../TagHelpersIntegrationTest.cs | 6 +- ...efaultRazorIntermediateNodeBuilderTest.cs} | 70 +- ...DocumentIntermediateNodeExtensionsTest.cs} | 32 +- ...st.cs => ExtensionIntermediateNodeTest.cs} | 29 +- ...st.cs => IntermediateNodeReferenceTest.cs} | 240 +-- ...rTest.cs => IntermediateNodeWalkerTest.cs} | 72 +- .../RazorCodeDocumentExtensionsTest.cs | 12 +- .../RazorEngineTest.cs | 14 +- .../BasicIntegrationTest/HelloWorld.ir.txt | 2 +- .../AddTagHelperDirective_DesignTime.ir.txt | 4 +- ...ibuteTargetingTagHelpers_DesignTime.ir.txt | 50 +- ...ttributeTargetingTagHelpers_Runtime.ir.txt | 34 +- .../Await_DesignTime.ir.txt | 172 +- .../Await_Runtime.ir.txt | 174 +- .../BasicImports_DesignTime.ir.txt | 10 +- .../BasicImports_Runtime.ir.txt | 8 +- .../BasicTagHelpers_DesignTime.ir.txt | 52 +- ...BasicTagHelpers_Prefixed_DesignTime.ir.txt | 44 +- .../BasicTagHelpers_Prefixed_Runtime.ir.txt | 34 +- ...cTagHelpers_RemoveTagHelper_Runtime.ir.txt | 24 +- .../BasicTagHelpers_Runtime.ir.txt | 36 +- .../Blocks_DesignTime.ir.txt | 108 +- .../Blocks_Runtime.ir.txt | 138 +- .../CSharp7_DesignTime.ir.txt | 46 +- .../CSharp7_Runtime.ir.txt | 52 +- .../CodeBlockAtEOF_DesignTime.ir.txt | 4 +- .../CodeBlockAtEOF_Runtime.ir.txt | 2 +- ...CodeBlockWithTextElement_DesignTime.ir.txt | 14 +- .../CodeBlockWithTextElement_Runtime.ir.txt | 12 +- .../CodeBlock_DesignTime.ir.txt | 4 +- .../CodeBlock_Runtime.ir.txt | 2 +- .../ComplexTagHelpers_DesignTime.ir.txt | 210 +- .../ComplexTagHelpers_Runtime.ir.txt | 212 +- .../ConditionalAttributes_DesignTime.ir.txt | 118 +- .../ConditionalAttributes_Runtime.ir.txt | 140 +- ...SelectorTagHelperAttributes_Runtime.ir.txt | 60 +- .../DesignTime_DesignTime.ir.txt | 66 +- ...icateAttributeTagHelpers_DesignTime.ir.txt | 48 +- ...uplicateAttributeTagHelpers_Runtime.ir.txt | 16 +- ...DuplicateTargetTagHelper_DesignTime.ir.txt | 12 +- .../DuplicateTargetTagHelper_Runtime.ir.txt | 6 +- ...namicAttributeTagHelpers_DesignTime.ir.txt | 96 +- .../DynamicAttributeTagHelpers_Runtime.ir.txt | 94 +- ...EmptyAttributeTagHelpers_DesignTime.ir.txt | 36 +- .../EmptyAttributeTagHelpers_Runtime.ir.txt | 22 +- .../EmptyCodeBlock_DesignTime.ir.txt | 6 +- .../EmptyCodeBlock_Runtime.ir.txt | 4 +- .../EmptyExplicitExpression_DesignTime.ir.txt | 6 +- .../EmptyExplicitExpression_Runtime.ir.txt | 4 +- ...ImplicitExpressionInCode_DesignTime.ir.txt | 8 +- ...ptyImplicitExpressionInCode_Runtime.ir.txt | 6 +- .../EmptyImplicitExpression_DesignTime.ir.txt | 8 +- .../EmptyImplicitExpression_Runtime.ir.txt | 6 +- .../EnumTagHelpers_DesignTime.ir.txt | 32 +- .../EnumTagHelpers_Runtime.ir.txt | 30 +- .../EscapedTagHelpers_DesignTime.ir.txt | 68 +- .../EscapedTagHelpers_Runtime.ir.txt | 66 +- .../ExplicitExpressionAtEOF_DesignTime.ir.txt | 6 +- .../ExplicitExpressionAtEOF_Runtime.ir.txt | 4 +- ...icitExpressionWithMarkup_DesignTime.ir.txt | 8 +- ...xplicitExpressionWithMarkup_Runtime.ir.txt | 6 +- .../ExplicitExpression_DesignTime.ir.txt | 6 +- .../ExplicitExpression_Runtime.ir.txt | 4 +- .../ExpressionsInCode_DesignTime.ir.txt | 36 +- .../ExpressionsInCode_Runtime.ir.txt | 36 +- .../FunctionsBlockMinimal_DesignTime.ir.txt | 6 +- .../FunctionsBlockMinimal_Runtime.ir.txt | 6 +- .../FunctionsBlock_DesignTime.ir.txt | 12 +- .../FunctionsBlock_Runtime.ir.txt | 10 +- .../HiddenSpansInCode_DesignTime.ir.txt | 6 +- .../HiddenSpansInCode_Runtime.ir.txt | 4 +- ...lCommentWithQuote_Double_DesignTime.ir.txt | 10 +- ...HtmlCommentWithQuote_Double_Runtime.ir.txt | 8 +- ...lCommentWithQuote_Single_DesignTime.ir.txt | 10 +- ...HtmlCommentWithQuote_Single_Runtime.ir.txt | 8 +- .../ImplicitExpressionAtEOF_DesignTime.ir.txt | 6 +- .../ImplicitExpressionAtEOF_Runtime.ir.txt | 4 +- .../ImplicitExpression_DesignTime.ir.txt | 14 +- .../ImplicitExpression_Runtime.ir.txt | 16 +- .../IncompleteDirectives_DesignTime.ir.txt | 32 +- .../IncompleteDirectives_Runtime.ir.txt | 18 +- .../IncompleteTagHelper_DesignTime.ir.txt | 6 +- .../IncompleteTagHelper_Runtime.ir.txt | 2 +- .../Inherits_DesignTime.ir.txt | 6 +- .../Inherits_Runtime.ir.txt | 4 +- .../InlineBlocks_DesignTime.ir.txt | 20 +- .../InlineBlocks_Runtime.ir.txt | 18 +- .../Instrumented_DesignTime.ir.txt | 118 +- .../Instrumented_Runtime.ir.txt | 152 +- .../MarkupInCodeBlock_DesignTime.ir.txt | 14 +- .../MarkupInCodeBlock_Runtime.ir.txt | 16 +- .../MinimizedTagHelpers_DesignTime.ir.txt | 42 +- .../MinimizedTagHelpers_Runtime.ir.txt | 20 +- .../NestedCSharp_DesignTime.ir.txt | 20 +- .../NestedCSharp_Runtime.ir.txt | 24 +- .../NestedCodeBlocks_DesignTime.ir.txt | 8 +- .../NestedCodeBlocks_Runtime.ir.txt | 6 +- ...estedScriptTagTagHelpers_DesignTime.ir.txt | 84 +- .../NestedScriptTagTagHelpers_Runtime.ir.txt | 80 +- .../NestedTagHelpers_DesignTime.ir.txt | 18 +- .../NestedTagHelpers_Runtime.ir.txt | 8 +- .../NoLinePragmas_DesignTime.ir.txt | 110 +- .../NoLinePragmas_Runtime.ir.txt | 138 +- ...llConditionalExpressions_DesignTime.ir.txt | 36 +- .../NullConditionalExpressions_Runtime.ir.txt | 34 +- .../OpenedIf_DesignTime.ir.txt | 20 +- .../OpenedIf_Runtime.ir.txt | 18 +- .../ParserError_DesignTime.ir.txt | 4 +- .../ParserError_Runtime.ir.txt | 2 +- ...fixedAttributeTagHelpers_DesignTime.ir.txt | 98 +- ...PrefixedAttributeTagHelpers_Runtime.ir.txt | 76 +- .../RazorComments_DesignTime.ir.txt | 40 +- .../RazorComments_Runtime.ir.txt | 38 +- ...RemoveTagHelperDirective_DesignTime.ir.txt | 4 +- .../Sections_DesignTime.ir.txt | 52 +- .../Sections_Runtime.ir.txt | 52 +- .../SimpleTagHelpers_DesignTime.ir.txt | 24 +- .../SimpleTagHelpers_Runtime.ir.txt | 16 +- .../SimpleUnspacedIf_DesignTime.ir.txt | 10 +- .../SimpleUnspacedIf_Runtime.ir.txt | 12 +- ...hNewlineBeforeAttributes_DesignTime.ir.txt | 10 +- ...WithNewlineBeforeAttributes_Runtime.ir.txt | 6 +- .../SingleTagHelper_DesignTime.ir.txt | 10 +- .../SingleTagHelper_Runtime.ir.txt | 6 +- .../StringLiterals_DesignTime.ir.txt | 1868 ++++++++--------- .../StringLiterals_Runtime.ir.txt | 1864 ++++++++-------- .../SymbolBoundAttributes_DesignTime.ir.txt | 122 +- .../SymbolBoundAttributes_Runtime.ir.txt | 104 +- .../TagHelpersInSection_Runtime.ir.txt | 40 +- ...lpersWithBoundAttributes_DesignTime.ir.txt | 16 +- ...gHelpersWithBoundAttributes_Runtime.ir.txt | 10 +- .../TagHelpersWithPrefix_DesignTime.ir.txt | 18 +- .../TagHelpersWithPrefix_Runtime.ir.txt | 10 +- .../TagHelpersWithTemplate_DesignTime.ir.txt | 28 +- .../TagHelpersWithTemplate_Runtime.ir.txt | 22 +- ...hWeirdlySpacedAttributes_DesignTime.ir.txt | 34 +- ...WithWeirdlySpacedAttributes_Runtime.ir.txt | 16 +- .../Templates_DesignTime.ir.txt | 170 +- .../Templates_Runtime.ir.txt | 172 +- ...onsInTagHelperAttributes_DesignTime.ir.txt | 70 +- ...itionsInTagHelperAttributes_Runtime.ir.txt | 60 +- ...finishedExpressionInCode_DesignTime.ir.txt | 8 +- .../UnfinishedExpressionInCode_Runtime.ir.txt | 6 +- .../Usings_DesignTime.ir.txt | 32 +- .../Usings_Runtime.ir.txt | 22 +- .../NamespaceToken.ir.txt | 2 +- .../HtmlWithConditionalAttribute.ir.txt | 24 +- .../HtmlWithDataDashAttribute.ir.txt | 28 +- .../NestedTagHelpers.ir.txt | 8 +- .../SimpleTagHelpers.ir.txt | 16 +- .../TagHelpersWithBoundAttributes.ir.txt | 10 +- .../IntegrationTests/IntegrationTestBase.cs | 22 +- ...lizer.cs => IntermediateNodeSerializer.cs} | 12 +- ...erifier.cs => IntermediateNodeVerifier.cs} | 42 +- ...odeWriter.cs => IntermediateNodeWriter.cs} | 64 +- ...rIRAssert.cs => IntermediateNodeAssert.cs} | 186 +- 345 files changed, 7218 insertions(+), 7225 deletions(-) rename src/Microsoft.AspNetCore.Mvc.Razor.Extensions/{IInjectDirectiveTargetExtension.cs => IInjectTargetExtension.cs} (77%) rename src/Microsoft.AspNetCore.Mvc.Razor.Extensions/{InjectDirectiveIRNode.cs => InjectIntermediateNode.cs} (71%) rename src/Microsoft.AspNetCore.Mvc.Razor.Extensions/{InjectDirectiveTargetExtension.cs => InjectTargetExtension.cs} (91%) rename src/Microsoft.AspNetCore.Razor.Language/{Intermediate/DefaultDiagnosticCollection.cs => DefaultRazorDiagnosticCollection.cs} (95%) delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/DefaultRazorIROptimizationPhase.cs rename src/Microsoft.AspNetCore.Razor.Language/{DefaultRazorIRLoweringPhase.cs => DefaultRazorIntermediateNodeLoweringPhase.cs} (87%) create mode 100644 src/Microsoft.AspNetCore.Razor.Language/DefaultRazorOptimizationPhase.cs rename src/Microsoft.AspNetCore.Razor.Language/{RazorDesignTimeIRPass.cs => DesignTimeDirectivePass.cs} (58%) rename src/Microsoft.AspNetCore.Razor.Language/{DirectiveRemovalIROptimizationPass.cs => DirectiveRemovalOptimizationPass.cs} (56%) rename src/Microsoft.AspNetCore.Razor.Language/Extensions/{SectionIRNode.cs => SectionIntermediateNode.cs} (78%) rename src/Microsoft.AspNetCore.Razor.Language/Extensions/{TemplateIRNode.cs => TemplateIntermediateNode.cs} (78%) delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/IRazorIRLoweringPhase.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/IRazorIROptimizationPhase.cs create mode 100644 src/Microsoft.AspNetCore.Razor.Language/IRazorIntermediateNodeLoweringPhase.cs rename src/Microsoft.AspNetCore.Razor.Language/{IRazorIROptimizationPass.cs => IRazorOptimizationPass.cs} (66%) create mode 100644 src/Microsoft.AspNetCore.Razor.Language/IRazorOptimizationPhase.cs rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{AddPreallocatedTagHelperHtmlAttributeIRNode.cs => AddPreallocatedTagHelperHtmlAttributeIntermediateNode.cs} (85%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{AddTagHelperHtmlAttributeIRNode.cs => AddTagHelperHtmlAttributeIntermediateNode.cs} (77%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{CSharpCodeAttributeValueIRNode.cs => CSharpCodeAttributeValueIntermediateNode.cs} (75%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{CSharpCodeIRNode.cs => CSharpCodeIntermediateNode.cs} (79%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{CSharpExpressionAttributeValueIRNode.cs => CSharpExpressionAttributeValueIntermediateNode.cs} (75%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{CSharpExpressionIRNode.cs => CSharpExpressionIntermediateNode.cs} (79%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{ClassDeclarationIRNode.cs => ClassDeclarationIntermediateNode.cs} (80%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{CreateTagHelperIRNode.cs => CreateTagHelperIntermediateNode.cs} (77%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{DeclarePreallocatedTagHelperAttributeIRNode.cs => DeclarePreallocatedTagHelperAttributeIntermediateNode.cs} (86%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{DeclarePreallocatedTagHelperHtmlAttributeIRNode.cs => DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode.cs} (86%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{DeclareTagHelperFieldsIRNode.cs => DeclareTagHelperFieldsIntermediateNode.cs} (77%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{DefaultIRNodeCollection.cs => DefaultIntermediateNodeCollection.cs} (80%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{DefaultRazorIRBuilder.cs => DefaultRazorIntermediateNodeBuilder.cs} (75%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{DesignTimeDirectiveIRNode.cs => DesignTimeDirectiveIntermediateNode.cs} (76%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{DirectiveIRNode.cs => DirectiveIntermediateNode.cs} (73%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{DirectiveTokenIRNode.cs => DirectiveTokenIntermediateNode.cs} (74%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{DocumentIRNode.cs => DocumentIntermediateNode.cs} (81%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{DocumentIRNodeExtensions.cs => DocumentIntermediateNodeExtensions.cs} (59%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{ExtensionIRNode.cs => ExtensionIntermediateNode.cs} (82%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{FieldDeclarationIRNode.cs => FieldDeclarationIntermediateNode.cs} (81%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{HtmlAttributeIRNode.cs => HtmlAttributeIntermediateNode.cs} (77%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{HtmlAttributeValueIRNode.cs => HtmlAttributeValueIntermediateNode.cs} (76%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{HtmlContentIRNode.cs => HtmlContentIntermediateNode.cs} (75%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{IExtensionIRNodeVisitor.cs => IExtensionIntermediateNodeVisitor.cs} (73%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{RazorIRNode.cs => IntermediateNode.cs} (73%) create mode 100644 src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeBuilder.cs create mode 100644 src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeCollection.cs rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{RazorIRNodeExtensions.cs => IntermediateNodeExtensions.cs} (89%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{RazorIRNodeReference.cs => IntermediateNodeReference.cs} (67%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{RazorIRNodeVisitor.cs => IntermediateNodeVisitor.cs} (64%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{RazorIRNodeWalker.cs => IntermediateNodeWalker.cs} (66%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{RazorIRToken.cs => IntermediateToken.cs} (80%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{MalformedDirectiveIRNode.cs => MalformedDirectiveIntermediateNode.cs} (68%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{MemberDeclarationIRNode.cs => MemberDeclarationIntermediateNode.cs} (75%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{MethodDeclarationIRNode.cs => MethodDeclarationIntermediateNode.cs} (81%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{NamespaceDeclarationIRNode.cs => NamespaceDeclarationIntermediateNode.cs} (79%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{PropertyDeclarationIRNode.cs => PropertyDeclarationIntermediateNode.cs} (81%) delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRBuilder.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeCollection.cs rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{ReadOnlyIRNodeCollection.cs => ReadOnlyIntermediateNodeCollection.cs} (76%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{SetPreallocatedTagHelperPropertyIRNode.cs => SetPreallocatedTagHelperPropertyIntermediateNode.cs} (85%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{SetTagHelperPropertyIRNode.cs => SetTagHelperPropertyIntermediateNode.cs} (81%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{TagHelperBodyIRNode.cs => TagHelperBodyIntermediateNode.cs} (75%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{TagHelperIRNode.cs => TagHelperIntermediateNode.cs} (81%) rename src/Microsoft.AspNetCore.Razor.Language/Intermediate/{UsingStatementIRNode.cs => UsingStatementIntermediateNode.cs} (76%) rename src/Microsoft.AspNetCore.Razor.Language/{RazorIRPassBase.cs => IntermediateNodePassBase.cs} (81%) rename src/Microsoft.AspNetCore.Razor.Language/{Intermediate => }/RazorDiagnosticCollection.cs (95%) rename src/Microsoft.AspNetCore.Razor.Language/{Intermediate => }/ReadOnlyDiagnosticCollection.cs (98%) rename test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/{InjectDirectiveTargetExtensionTest.cs => InjectTargetExtensionTest.cs} (89%) rename test/Microsoft.AspNetCore.Razor.Language.Test/{DefaultRazorIRLoweringPhaseIntegrationTest.cs => DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs} (82%) rename test/Microsoft.AspNetCore.Razor.Language.Test/{DefaultRazorIRLoweringPhaseTest.cs => DefaultRazorIntermediateNodeLoweringPhaseTest.cs} (81%) rename test/Microsoft.AspNetCore.Razor.Language.Test/{DefaultRazorIROptimizationPhaseTest.cs => DefaultRazorOptimizationPhaseTest.cs} (71%) rename test/Microsoft.AspNetCore.Razor.Language.Test/{DirectiveRemovalIROptimizationPassTest.cs => DirectiveRemovalOptimizationPassTest.cs} (58%) rename test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/{DefaultRazorIRBuilderTest.cs => DefaultRazorIntermediateNodeBuilderTest.cs} (67%) rename test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/{DocumentIRNodeExtensionsTest.cs => DocumentIntermediateNodeExtensionsTest.cs} (72%) rename test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/{ExtensionIRNodeTest.cs => ExtensionIntermediateNodeTest.cs} (64%) rename test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/{RazorIRNodeReferenceTest.cs => IntermediateNodeReferenceTest.cs} (58%) rename test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/{RazorIRNodeWalkerTest.cs => IntermediateNodeWalkerTest.cs} (50%) rename test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/{RazorIRNodeSerializer.cs => IntermediateNodeSerializer.cs} (73%) rename test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/{RazorIRNodeVerifier.cs => IntermediateNodeVerifier.cs} (78%) rename test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/{RazorIRNodeWriter.cs => IntermediateNodeWriter.cs} (81%) rename test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/Intermediate/{RazorIRAssert.cs => IntermediateNodeAssert.cs} (59%) diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/AssemblyAttributeInjectionPass.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/AssemblyAttributeInjectionPass.cs index aea8fe86c..ac3e8b4ee 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/AssemblyAttributeInjectionPass.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/AssemblyAttributeInjectionPass.cs @@ -7,21 +7,21 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { - public class AssemblyAttributeInjectionPass : RazorIRPassBase, IRazorIROptimizationPass + public class AssemblyAttributeInjectionPass : IntermediateNodePassBase, IRazorOptimizationPass { private const string RazorViewAttribute = "global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute"; private const string RazorPageAttribute = "global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute"; - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { - var @namespace = irDocument.FindPrimaryNamespace(); + var @namespace = documentNode.FindPrimaryNamespace(); if (@namespace == null || string.IsNullOrEmpty(@namespace.Content)) { // No namespace node or it's incomplete. Skip. return; } - var @class = irDocument.FindPrimaryClass(); + var @class = documentNode.FindPrimaryClass(); if (@class == null || string.IsNullOrEmpty(@class.Name)) { // No class node or it's incomplete. Skip. @@ -33,12 +33,12 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNo var escapedPath = EscapeAsVerbatimLiteral(path); string attribute; - if (irDocument.DocumentKind == MvcViewDocumentClassifierPass.MvcViewDocumentKind) + if (documentNode.DocumentKind == MvcViewDocumentClassifierPass.MvcViewDocumentKind) { attribute = $"[assembly:{RazorViewAttribute}({escapedPath}, typeof({generatedTypeName}))]"; } - else if (irDocument.DocumentKind == RazorPageDocumentClassifierPass.RazorPageDocumentKind && - PageDirective.TryGetPageDirective(irDocument, out var pageDirective)) + else if (documentNode.DocumentKind == RazorPageDocumentClassifierPass.RazorPageDocumentKind && + PageDirective.TryGetPageDirective(documentNode, out var pageDirective)) { var escapedRoutePrefix = EscapeAsVerbatimLiteral(pageDirective.RouteTemplate); attribute = $"[assembly:{RazorPageAttribute}({escapedPath}, typeof({generatedTypeName}), {escapedRoutePrefix})]"; @@ -48,18 +48,18 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNo return; } - var index = irDocument.Children.IndexOf(@namespace); + var index = documentNode.Children.IndexOf(@namespace); Debug.Assert(index >= 0); - var pageAttribute = new CSharpCodeIRNode(); - RazorIRBuilder.Create(pageAttribute) - .Add(new RazorIRToken() + var pageAttribute = new CSharpCodeIntermediateNode(); + IntermediateNodeBuilder.Create(pageAttribute) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = attribute, }); - irDocument.Children.Insert(index, pageAttribute); + documentNode.Children.Insert(index, pageAttribute); } private static string EscapeAsVerbatimLiteral(string value) diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IInjectDirectiveTargetExtension.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IInjectTargetExtension.cs similarity index 77% rename from src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IInjectDirectiveTargetExtension.cs rename to src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IInjectTargetExtension.cs index 3ba47b58e..52352987d 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IInjectDirectiveTargetExtension.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/IInjectTargetExtension.cs @@ -5,8 +5,8 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { - public interface IInjectDirectiveTargetExtension : ICodeTargetExtension + public interface IInjectTargetExtension : ICodeTargetExtension { - void WriteInjectProperty(CSharpRenderingContext context, InjectDirectiveIRNode node); + void WriteInjectProperty(CSharpRenderingContext context, InjectIntermediateNode node); } } diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirective.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirective.cs index c859f4a43..dcc1ed41c 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirective.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirective.cs @@ -20,19 +20,20 @@ public static IRazorEngineBuilder Register(IRazorEngineBuilder builder) { builder.AddDirective(Directive); builder.Features.Add(new Pass()); + builder.AddTargetExtension(new InjectTargetExtension()); return builder; } - internal class Pass : RazorIRPassBase, IRazorDirectiveClassifierPass + internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass { // Runs after the @model and @namespace directives public override int Order => 10; - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { var visitor = new Visitor(); - visitor.Visit(irDocument); - var modelType = ModelDirective.GetModelType(irDocument); + visitor.Visit(documentNode); + var modelType = ModelDirective.GetModelType(documentNode); var properties = new HashSet(StringComparer.Ordinal); @@ -55,7 +56,7 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNo typeName = typeName.Replace("", "<" + modelType + ">"); - var injectNode = new InjectDirectiveIRNode() + var injectNode = new InjectIntermediateNode() { TypeName = typeName, MemberName = memberName, @@ -66,13 +67,13 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNo } } - private class Visitor : RazorIRNodeWalker + private class Visitor : IntermediateNodeWalker { - public ClassDeclarationIRNode Class { get; private set; } + public ClassDeclarationIntermediateNode Class { get; private set; } - public IList Directives { get; } = new List(); + public IList Directives { get; } = new List(); - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { if (Class == null) { @@ -82,7 +83,7 @@ public override void VisitClassDeclaration(ClassDeclarationIRNode node) base.VisitClassDeclaration(node); } - public override void VisitDirective(DirectiveIRNode node) + public override void VisitDirective(DirectiveIntermediateNode node) { if (node.Descriptor == Directive) { diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirectiveIRNode.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectIntermediateNode.cs similarity index 71% rename from src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirectiveIRNode.cs rename to src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectIntermediateNode.cs index 1ab5ddb3a..e1b3178e6 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirectiveIRNode.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectIntermediateNode.cs @@ -8,22 +8,22 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { - public class InjectDirectiveIRNode : ExtensionIRNode + public class InjectIntermediateNode : ExtensionIntermediateNode { public string TypeName { get; set; } public string MemberName { get; set; } - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { throw new ArgumentNullException(nameof(visitor)); } - AcceptExtensionNode(this, visitor); + AcceptExtensionNode(this, visitor); } public override void WriteNode(CodeTarget target, CSharpRenderingContext context) @@ -38,10 +38,10 @@ public override void WriteNode(CodeTarget target, CSharpRenderingContext context throw new ArgumentNullException(nameof(context)); } - var extension = target.GetExtension(); + var extension = target.GetExtension(); if (extension == null) { - context.ReportMissingExtension(); + context.ReportMissingExtension(); return; } diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirectiveTargetExtension.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectTargetExtension.cs similarity index 91% rename from src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirectiveTargetExtension.cs rename to src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectTargetExtension.cs index c6fa588d8..22167a3c7 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectDirectiveTargetExtension.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InjectTargetExtension.cs @@ -6,11 +6,11 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { - public class InjectDirectiveTargetExtension : IInjectDirectiveTargetExtension + public class InjectTargetExtension : IInjectTargetExtension { private const string RazorInjectAttribute = "[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]"; - public void WriteInjectProperty(CSharpRenderingContext context, InjectDirectiveIRNode node) + public void WriteInjectProperty(CSharpRenderingContext context, InjectIntermediateNode node) { if (context == null) { diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InstrumentationPass.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InstrumentationPass.cs index e03777add..65c5d558d 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InstrumentationPass.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/InstrumentationPass.cs @@ -8,14 +8,14 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { - public class InstrumentationPass : RazorIRPassBase, IRazorIROptimizationPass + public class InstrumentationPass : IntermediateNodePassBase, IRazorOptimizationPass { public override int Order => DefaultFeatureOrder; - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { var walker = new Visitor(); - walker.VisitDocument(irDocument); + walker.VisitDocument(documentNode); for (var i = 0; i < walker.Items.Count; i++) { @@ -30,11 +30,11 @@ private static void AddInstrumentation(InstrumentationItem item) var beginContextMethodName = "BeginContext"; /* ORIGINAL: BeginContextMethodName */ var endContextMethodName = "EndContext"; /* ORIGINAL: EndContextMethodName */ - var beginNode = new CSharpCodeIRNode(); - RazorIRBuilder.Create(beginNode) - .Add(new RazorIRToken() + var beginNode = new CSharpCodeIntermediateNode(); + IntermediateNodeBuilder.Create(beginNode) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = string.Format("{0}({1}, {2}, {3});", beginContextMethodName, item.Source.AbsoluteIndex.ToString(CultureInfo.InvariantCulture), @@ -42,11 +42,11 @@ private static void AddInstrumentation(InstrumentationItem item) item.IsLiteral ? "true" : "false") }); - var endNode = new CSharpCodeIRNode(); - RazorIRBuilder.Create(endNode) - .Add(new RazorIRToken() + var endNode = new CSharpCodeIntermediateNode(); + IntermediateNodeBuilder.Create(endNode) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = string.Format("{0}();", endContextMethodName) }); @@ -57,7 +57,7 @@ private static void AddInstrumentation(InstrumentationItem item) private struct InstrumentationItem { - public InstrumentationItem(RazorIRNode node, RazorIRNode parent, bool isLiteral, SourceSpan source) + public InstrumentationItem(IntermediateNode node, IntermediateNode parent, bool isLiteral, SourceSpan source) { Node = node; Parent = parent; @@ -65,20 +65,20 @@ public InstrumentationItem(RazorIRNode node, RazorIRNode parent, bool isLiteral, Source = source; } - public RazorIRNode Node { get; } + public IntermediateNode Node { get; } - public RazorIRNode Parent { get; } + public IntermediateNode Parent { get; } public bool IsLiteral { get; } public SourceSpan Source { get; } } - private class Visitor : RazorIRNodeWalker + private class Visitor : IntermediateNodeWalker { public List Items { get; } = new List(); - public override void VisitHtml(HtmlContentIRNode node) + public override void VisitHtml(HtmlContentIntermediateNode node) { if (node.Source != null) { @@ -88,7 +88,7 @@ public override void VisitHtml(HtmlContentIRNode node) VisitDefault(node); } - public override void VisitCSharpExpression(CSharpExpressionIRNode node) + public override void VisitCSharpExpression(CSharpExpressionIntermediateNode node) { if (node.Source != null) { @@ -98,7 +98,7 @@ public override void VisitCSharpExpression(CSharpExpressionIRNode node) VisitDefault(node); } - public override void VisitTagHelper(TagHelperIRNode node) + public override void VisitTagHelper(TagHelperIntermediateNode node) { if (node.Source != null) { @@ -108,12 +108,12 @@ public override void VisitTagHelper(TagHelperIRNode node) VisitDefault(node); } - public override void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIRNode node) + public override void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIntermediateNode node) { // We don't want to instrument TagHelper attributes. Do nothing. } - public override void VisitSetTagHelperProperty(SetTagHelperPropertyIRNode node) + public override void VisitSetTagHelperProperty(SetTagHelperPropertyIntermediateNode node) { // We don't want to instrument TagHelper attributes. Do nothing. } diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelDirective.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelDirective.cs index ac757f129..c0c947ce2 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelDirective.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelDirective.cs @@ -23,7 +23,7 @@ public static IRazorEngineBuilder Register(IRazorEngineBuilder builder) return builder; } - public static string GetModelType(DocumentIRNode document) + public static string GetModelType(DocumentIntermediateNode document) { if (document == null) { @@ -34,7 +34,7 @@ public static string GetModelType(DocumentIRNode document) return GetModelType(document, visitor); } - private static string GetModelType(DocumentIRNode document, Visitor visitor) + private static string GetModelType(DocumentIntermediateNode document, Visitor visitor) { visitor.Visit(document); @@ -59,7 +59,7 @@ private static string GetModelType(DocumentIRNode document, Visitor visitor) } } - internal class Pass : RazorIRPassBase, IRazorDirectiveClassifierPass + internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass { private readonly bool _designTime; @@ -71,17 +71,17 @@ public Pass(bool designTime) // Runs after the @inherits directive public override int Order => 5; - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { var visitor = new Visitor(); - var modelType = GetModelType(irDocument, visitor); + var modelType = GetModelType(documentNode, visitor); if (_designTime) { // Alias the TModel token to a known type. // This allows design time compilation to succeed for Razor files where the token isn't replaced. var typeName = $"global::{typeof(object).FullName}"; - var usingNode = new UsingStatementIRNode() + var usingNode = new UsingStatementIntermediateNode() { Content = $"TModel = {typeName}" }; @@ -106,17 +106,17 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNo } } - private class Visitor : RazorIRNodeWalker + private class Visitor : IntermediateNodeWalker { - public NamespaceDeclarationIRNode Namespace { get; private set; } + public NamespaceDeclarationIntermediateNode Namespace { get; private set; } - public ClassDeclarationIRNode Class { get; private set; } + public ClassDeclarationIntermediateNode Class { get; private set; } - public IList InheritsDirectives { get; } = new List(); + public IList InheritsDirectives { get; } = new List(); - public IList ModelDirectives { get; } = new List(); + public IList ModelDirectives { get; } = new List(); - public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) + public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) { if (Namespace == null) { @@ -126,7 +126,7 @@ public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) base.VisitNamespaceDeclaration(node); } - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { if (Class == null) { @@ -136,7 +136,7 @@ public override void VisitClassDeclaration(ClassDeclarationIRNode node) base.VisitClassDeclaration(node); } - public override void VisitDirective(DirectiveIRNode node) + public override void VisitDirective(DirectiveIntermediateNode node) { if (node.Descriptor == Directive) { diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelExpressionPass.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelExpressionPass.cs index 73a9a4749..5491539ea 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelExpressionPass.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ModelExpressionPass.cs @@ -9,42 +9,42 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { - public class ModelExpressionPass : RazorIRPassBase, IRazorIROptimizationPass + public class ModelExpressionPass : IntermediateNodePassBase, IRazorOptimizationPass { private const string ModelExpressionTypeName = "Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression"; - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { var visitor = new Visitor(); - visitor.Visit(irDocument); + visitor.Visit(documentNode); } - private class Visitor : RazorIRNodeWalker + private class Visitor : IntermediateNodeWalker { - public List TagHelpers { get; } = new List(); + public List TagHelpers { get; } = new List(); - public override void VisitSetTagHelperProperty(SetTagHelperPropertyIRNode node) + public override void VisitSetTagHelperProperty(SetTagHelperPropertyIntermediateNode node) { if (string.Equals(node.Descriptor.TypeName, ModelExpressionTypeName, StringComparison.Ordinal) || (node.IsIndexerNameMatch && string.Equals(node.Descriptor.IndexerTypeName, ModelExpressionTypeName, StringComparison.Ordinal))) { - var expression = new CSharpExpressionIRNode(); - var builder = RazorIRBuilder.Create(expression); + var expression = new CSharpExpressionIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(expression); - builder.Add(new RazorIRToken() + builder.Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = "ModelExpressionProvider.CreateModelExpression(ViewData, __model => ", }); - if (node.Children.Count == 1 && node.Children[0] is RazorIRToken token && token.IsCSharp) + if (node.Children.Count == 1 && node.Children[0] is IntermediateToken token && token.IsCSharp) { // A 'simple' expression will look like __model => __model.Foo - builder.Add(new RazorIRToken() + builder.Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = "__model." }); @@ -54,11 +54,11 @@ public override void VisitSetTagHelperProperty(SetTagHelperPropertyIRNode node) { for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is CSharpExpressionIRNode nestedExpression) + if (node.Children[i] is CSharpExpressionIntermediateNode nestedExpression) { for (var j = 0; j < nestedExpression.Children.Count; j++) { - if (nestedExpression.Children[j] is RazorIRToken cSharpToken && + if (nestedExpression.Children[j] is IntermediateToken cSharpToken && cSharpToken.IsCSharp) { builder.Add(cSharpToken); @@ -70,9 +70,9 @@ public override void VisitSetTagHelperProperty(SetTagHelperPropertyIRNode node) } } - builder.Add(new RazorIRToken() + builder.Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = ")", }); diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs index 6f4f22626..3c675dac3 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/MvcViewDocumentClassifierPass.cs @@ -12,13 +12,13 @@ public class MvcViewDocumentClassifierPass : DocumentClassifierPassBase protected override string DocumentKind => MvcViewDocumentKind; - protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIRNode irDocument) => true; + protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) => true; protected override void OnDocumentStructureCreated( RazorCodeDocument codeDocument, - NamespaceDeclarationIRNode @namespace, - ClassDeclarationIRNode @class, - MethodDeclarationIRNode method) + NamespaceDeclarationIntermediateNode @namespace, + ClassDeclarationIntermediateNode @class, + MethodDeclarationIntermediateNode method) { var filePath = codeDocument.GetRelativePath() ?? codeDocument.Source.FilePath; diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/NamespaceDirective.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/NamespaceDirective.cs index db4cc83d9..434643a08 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/NamespaceDirective.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/NamespaceDirective.cs @@ -31,19 +31,19 @@ public static void Register(IRazorEngineBuilder builder) } // internal for testing - internal class Pass : RazorIRPassBase, IRazorDirectiveClassifierPass + internal class Pass : IntermediateNodePassBase, IRazorDirectiveClassifierPass { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { - if (irDocument.DocumentKind != RazorPageDocumentClassifierPass.RazorPageDocumentKind && - irDocument.DocumentKind != MvcViewDocumentClassifierPass.MvcViewDocumentKind) + if (documentNode.DocumentKind != RazorPageDocumentClassifierPass.RazorPageDocumentKind && + documentNode.DocumentKind != MvcViewDocumentClassifierPass.MvcViewDocumentKind) { // Not a page. Skip. return; } var visitor = new Visitor(); - visitor.Visit(irDocument); + visitor.Visit(documentNode); var directive = visitor.LastNamespaceDirective; if (directive == null) @@ -64,11 +64,11 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNo // Beautify the class name since we're using a hierarchy for namespaces. var @class = visitor.FirstClass; var prefix = CSharpIdentifier.SanitizeClassName(Path.GetFileNameWithoutExtension(codeDocument.Source.FilePath)); - if (@class != null && irDocument.DocumentKind == RazorPageDocumentClassifierPass.RazorPageDocumentKind) + if (@class != null && documentNode.DocumentKind == RazorPageDocumentClassifierPass.RazorPageDocumentKind) { @class.Name = prefix + "_Page"; } - else if (@class != null && irDocument.DocumentKind == MvcViewDocumentClassifierPass.MvcViewDocumentKind) + else if (@class != null && documentNode.DocumentKind == MvcViewDocumentClassifierPass.MvcViewDocumentKind) { @class.Name = prefix + "_View"; } @@ -85,7 +85,7 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNo // // In the event that these two source either don't have FileNames set or don't follow a coherent hierarchy, // we will just use the namespace verbatim. - internal static bool TryComputeNamespace(string source, DirectiveIRNode directive, out string @namespace) + internal static bool TryComputeNamespace(string source, DirectiveIntermediateNode directive, out string @namespace) { var directiveSource = NormalizeDirectory(directive.Source?.FilePath); @@ -159,16 +159,16 @@ private static string NormalizeDirectory(string path) return path.Substring(0, lastSeparator + 1); } - private class Visitor : RazorIRNodeWalker + private class Visitor : IntermediateNodeWalker { - public ClassDeclarationIRNode FirstClass { get; private set; } + public ClassDeclarationIntermediateNode FirstClass { get; private set; } - public NamespaceDeclarationIRNode FirstNamespace { get; private set; } + public NamespaceDeclarationIntermediateNode FirstNamespace { get; private set; } // We want the last one, so get them all and then . - public DirectiveIRNode LastNamespaceDirective { get; private set; } + public DirectiveIntermediateNode LastNamespaceDirective { get; private set; } - public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) + public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) { if (FirstNamespace == null) { @@ -178,7 +178,7 @@ public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) base.VisitNamespaceDeclaration(node); } - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { if (FirstClass == null) { @@ -188,7 +188,7 @@ public override void VisitClassDeclaration(ClassDeclarationIRNode node) base.VisitClassDeclaration(node); } - public override void VisitDirective(DirectiveIRNode node) + public override void VisitDirective(DirectiveIntermediateNode node) { if (node.Descriptor == Directive) { diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PageDirective.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PageDirective.cs index 13b9b6297..240d9a02a 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PageDirective.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PageDirective.cs @@ -29,12 +29,12 @@ public static IRazorEngineBuilder Register(IRazorEngineBuilder builder) return builder; } - public static bool TryGetPageDirective(DocumentIRNode irDocument, out PageDirective pageDirective) + public static bool TryGetPageDirective(DocumentIntermediateNode documentNode, out PageDirective pageDirective) { var visitor = new Visitor(); - for (var i = 0; i < irDocument.Children.Count; i++) + for (var i = 0; i < documentNode.Children.Count; i++) { - visitor.Visit(irDocument.Children[i]); + visitor.Visit(documentNode.Children[i]); } if (visitor.DirectiveNode == null) @@ -63,11 +63,11 @@ private static string TrimQuotes(string content) return content.Substring(1, content.Length - 2); } - private class Visitor : RazorIRNodeWalker + private class Visitor : IntermediateNodeWalker { - public DirectiveIRNode DirectiveNode { get; private set; } + public DirectiveIntermediateNode DirectiveNode { get; private set; } - public override void VisitDirective(DirectiveIRNode node) + public override void VisitDirective(DirectiveIntermediateNode node) { if (node.Descriptor == Directive) { diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PagesPropertyInjectionPass.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PagesPropertyInjectionPass.cs index 65a51559e..d41d7b636 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PagesPropertyInjectionPass.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/PagesPropertyInjectionPass.cs @@ -6,46 +6,46 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { - public class PagesPropertyInjectionPass : RazorIRPassBase, IRazorIROptimizationPass + public class PagesPropertyInjectionPass : IntermediateNodePassBase, IRazorOptimizationPass { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { - if (irDocument.DocumentKind != RazorPageDocumentClassifierPass.RazorPageDocumentKind) + if (documentNode.DocumentKind != RazorPageDocumentClassifierPass.RazorPageDocumentKind) { return; } - var modelType = ModelDirective.GetModelType(irDocument); + var modelType = ModelDirective.GetModelType(documentNode); var visitor = new Visitor(); - visitor.Visit(irDocument); + visitor.Visit(documentNode); var @class = visitor.Class; var viewDataType = $"global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<{modelType}>"; - var vddProperty = new CSharpCodeIRNode(); - RazorIRBuilder.Create(vddProperty) - .Add(new RazorIRToken() + var vddProperty = new CSharpCodeIntermediateNode(); + IntermediateNodeBuilder.Create(vddProperty) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = $"public {viewDataType} ViewData => ({viewDataType})PageContext?.ViewData;", }); @class.Children.Add(vddProperty); - var modelProperty = new CSharpCodeIRNode(); - RazorIRBuilder.Create(modelProperty) - .Add(new RazorIRToken() + var modelProperty = new CSharpCodeIntermediateNode(); + IntermediateNodeBuilder.Create(modelProperty) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = $"public {modelType} Model => ViewData.Model;", }); @class.Children.Add(modelProperty); } - private class Visitor : RazorIRNodeWalker + private class Visitor : IntermediateNodeWalker { - public ClassDeclarationIRNode Class { get; private set; } + public ClassDeclarationIntermediateNode Class { get; private set; } - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { if (Class == null) { diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensions.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensions.cs index 9b7d333b2..22c406b05 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensions.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorExtensions.cs @@ -19,7 +19,6 @@ public static void Register(IRazorEngineBuilder builder) InheritsDirective.Register(builder); SectionDirective.Register(builder); - builder.AddTargetExtension(new InjectDirectiveTargetExtension()); builder.AddTargetExtension(new TemplateTargetExtension() { TemplateTypeName = "global::Microsoft.AspNetCore.Mvc.Razor.HelperResult", diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs index 0dd108a6a..cd9feb004 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/RazorPageDocumentClassifierPass.cs @@ -12,16 +12,16 @@ public class RazorPageDocumentClassifierPass : DocumentClassifierPassBase protected override string DocumentKind => RazorPageDocumentKind; - protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { - return PageDirective.TryGetPageDirective(irDocument, out var directive); + return PageDirective.TryGetPageDirective(documentNode, out var directive); } protected override void OnDocumentStructureCreated( RazorCodeDocument codeDocument, - NamespaceDeclarationIRNode @namespace, - ClassDeclarationIRNode @class, - MethodDeclarationIRNode method) + NamespaceDeclarationIntermediateNode @namespace, + ClassDeclarationIntermediateNode @class, + MethodDeclarationIntermediateNode method) { var filePath = codeDocument.GetRelativePath() ?? codeDocument.Source.FilePath; diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperPass.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperPass.cs index a166dcebe..c4dab36a6 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperPass.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Extensions/ViewComponentTagHelperPass.cs @@ -11,12 +11,12 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { - public class ViewComponentTagHelperPass : RazorIRPassBase, IRazorIROptimizationPass + public class ViewComponentTagHelperPass : IntermediateNodePassBase, IRazorOptimizationPass { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { var visitor = new Visitor(); - visitor.Visit(irDocument); + visitor.Visit(documentNode); if (visitor.Class == null || visitor.TagHelpers.Count == 0) { @@ -37,20 +37,20 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNo foreach (var (parent, node) in visitor.CreateTagHelpers) { - RewriteCreateNode(visitor.Namespace, visitor.Class, (CreateTagHelperIRNode)node, parent); + RewriteCreateNode(visitor.Namespace, visitor.Class, (CreateTagHelperIntermediateNode)node, parent); } } - private void GenerateVCTHClass(ClassDeclarationIRNode @class, TagHelperDescriptor tagHelper) + private void GenerateVCTHClass(ClassDeclarationIntermediateNode @class, TagHelperDescriptor tagHelper) { var writer = new CSharpCodeWriter(); WriteClass(writer, tagHelper); - var statement = new CSharpCodeIRNode(); - RazorIRBuilder.Create(statement) - .Add(new RazorIRToken() + var statement = new CSharpCodeIntermediateNode(); + IntermediateNodeBuilder.Create(statement) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = writer.Builder.ToString() }); @@ -58,15 +58,15 @@ private void GenerateVCTHClass(ClassDeclarationIRNode @class, TagHelperDescripto } private void RewriteCreateNode( - NamespaceDeclarationIRNode @namespace, - ClassDeclarationIRNode @class, - CreateTagHelperIRNode node, - RazorIRNode parent) + NamespaceDeclarationIntermediateNode @namespace, + ClassDeclarationIntermediateNode @class, + CreateTagHelperIntermediateNode node, + IntermediateNode parent) { var newTypeName = GetVCTHFullName(@namespace, @class, node.Descriptor); for (var i = 0; i < parent.Children.Count; i++) { - if (parent.Children[i] is SetTagHelperPropertyIRNode setProperty && + if (parent.Children[i] is SetTagHelperPropertyIntermediateNode setProperty && node.Descriptor.BoundAttributes.Contains(setProperty.Descriptor)) { setProperty.TagHelperTypeName = newTypeName; @@ -77,8 +77,8 @@ private void RewriteCreateNode( } private static string GetVCTHFullName( - NamespaceDeclarationIRNode @namespace, - ClassDeclarationIRNode @class, + NamespaceDeclarationIntermediateNode @namespace, + ClassDeclarationIntermediateNode @class, TagHelperDescriptor tagHelper) { var vcName = tagHelper.Metadata[ViewComponentTagHelperDescriptorConventions.ViewComponentNameKey]; @@ -220,19 +220,19 @@ private void BuildTargetElementString(CSharpCodeWriter writer, TagHelperDescript .WriteLine(")]"); } - private class Visitor : RazorIRNodeWalker + private class Visitor : IntermediateNodeWalker { - public ClassDeclarationIRNode Class { get; private set; } + public ClassDeclarationIntermediateNode Class { get; private set; } - public DeclareTagHelperFieldsIRNode Fields { get; private set; } + public DeclareTagHelperFieldsIntermediateNode Fields { get; private set; } - public NamespaceDeclarationIRNode Namespace { get; private set; } + public NamespaceDeclarationIntermediateNode Namespace { get; private set; } - public List CreateTagHelpers { get; } = new List(); + public List CreateTagHelpers { get; } = new List(); public Dictionary TagHelpers { get; } = new Dictionary(); - public override void VisitCreateTagHelper(CreateTagHelperIRNode node) + public override void VisitCreateTagHelper(CreateTagHelperIntermediateNode node) { var tagHelper = node.Descriptor; if (ViewComponentTagHelperDescriptorConventions.IsViewComponentDescriptor(tagHelper)) @@ -241,11 +241,11 @@ public override void VisitCreateTagHelper(CreateTagHelperIRNode node) var vcName = tagHelper.Metadata[ViewComponentTagHelperDescriptorConventions.ViewComponentNameKey]; TagHelpers[vcName] = tagHelper; - CreateTagHelpers.Add(new RazorIRNodeReference(Parent, node)); + CreateTagHelpers.Add(new IntermediateNodeReference(Parent, node)); } } - public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) + public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) { if (Namespace == null) { @@ -255,7 +255,7 @@ public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) base.VisitNamespaceDeclaration(node); } - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { if (Class == null) { @@ -265,7 +265,7 @@ public override void VisitClassDeclaration(ClassDeclarationIRNode node) base.VisitClassDeclaration(node); } - public override void VisitDeclareTagHelperFields(DeclareTagHelperFieldsIRNode node) + public override void VisitDeclareTagHelperFields(DeclareTagHelperFieldsIntermediateNode node) { if (Fields == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/BasicWriter.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/BasicWriter.cs index 1aba4d2c5..c39cf640b 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/BasicWriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/BasicWriter.cs @@ -7,21 +7,21 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration { public abstract class BasicWriter { - public abstract void WriteUsingStatement(CSharpRenderingContext context, UsingStatementIRNode node); + public abstract void WriteUsingStatement(CSharpRenderingContext context, UsingStatementIntermediateNode node); - public abstract void WriteCSharpExpression(CSharpRenderingContext context, CSharpExpressionIRNode node); + public abstract void WriteCSharpExpression(CSharpRenderingContext context, CSharpExpressionIntermediateNode node); - public abstract void WriteCSharpCode(CSharpRenderingContext context, CSharpCodeIRNode node); + public abstract void WriteCSharpCode(CSharpRenderingContext context, CSharpCodeIntermediateNode node); - public abstract void WriteHtmlContent(CSharpRenderingContext context, HtmlContentIRNode node); + public abstract void WriteHtmlContent(CSharpRenderingContext context, HtmlContentIntermediateNode node); - public abstract void WriteHtmlAttribute(CSharpRenderingContext context, HtmlAttributeIRNode node); + public abstract void WriteHtmlAttribute(CSharpRenderingContext context, HtmlAttributeIntermediateNode node); - public abstract void WriteHtmlAttributeValue(CSharpRenderingContext context, HtmlAttributeValueIRNode node); + public abstract void WriteHtmlAttributeValue(CSharpRenderingContext context, HtmlAttributeValueIntermediateNode node); - public abstract void WriteCSharpExpressionAttributeValue(CSharpRenderingContext context, CSharpExpressionAttributeValueIRNode node); + public abstract void WriteCSharpExpressionAttributeValue(CSharpRenderingContext context, CSharpExpressionAttributeValueIntermediateNode node); - public abstract void WriteCSharpCodeAttributeValue(CSharpRenderingContext context, CSharpCodeAttributeValueIRNode node); + public abstract void WriteCSharpCodeAttributeValue(CSharpRenderingContext context, CSharpCodeAttributeValueIntermediateNode node); public abstract void BeginWriterScope(CSharpRenderingContext context, string writer); diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CSharpRenderingContext.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CSharpRenderingContext.cs index 3935322ae..24135183a 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CSharpRenderingContext.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/CSharpRenderingContext.cs @@ -28,15 +28,15 @@ public class CSharpRenderingContext internal TagHelperRenderingContext TagHelperRenderingContext { get; set; } - internal Action RenderChildren { get; set; } + internal Action RenderChildren { get; set; } - internal Action RenderNode { get; set; } + internal Action RenderNode { get; set; } public BasicWriter BasicWriter { get; set; } public TagHelperWriter TagHelperWriter { get; set; } - public void AddLineMappingFor(RazorIRNode node) + public void AddLineMappingFor(IntermediateNode node) { if (node.Source == null) { @@ -84,7 +84,7 @@ public TagHelperWriterScope Push(TagHelperWriter writer) public void ReportMissingExtension() where TExtension : ICodeTargetExtension { - var documentKind = CodeDocument.GetIRDocument()?.DocumentKind ?? string.Empty; + var documentKind = CodeDocument.GetDocumentIntermediateNode()?.DocumentKind ?? string.Empty; Diagnostics.Add(RazorDiagnosticFactory.CreateCodeTarget_UnsupportedExtension(documentKind, typeof(TExtension))); } diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs index 8b4c859e2..99a0bf25b 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DefaultDocumentWriter.cs @@ -28,7 +28,7 @@ public DefaultDocumentWriter(CodeTarget target, CSharpRenderingContext context) _context = context; } - public override void WriteDocument(DocumentIRNode node) + public override void WriteDocument(DocumentIntermediateNode node) { if (node == null) { @@ -46,7 +46,7 @@ public override void WriteDocument(DocumentIRNode node) _context.RenderChildren = null; } - private class Visitor : RazorIRNodeVisitor + private class Visitor : IntermediateNodeVisitor { private readonly CSharpRenderingContext _context; private readonly CodeTarget _target; @@ -59,7 +59,7 @@ public Visitor(CodeTarget target, CSharpRenderingContext context) private CSharpRenderingContext Context => _context; - public void RenderChildren(RazorIRNode node) + public void RenderChildren(IntermediateNode node) { for (var i = 0; i < node.Children.Count; i++) { @@ -68,7 +68,7 @@ public void RenderChildren(RazorIRNode node) } } - public override void VisitDocument(DocumentIRNode node) + public override void VisitDocument(DocumentIntermediateNode node) { if (!Context.Options.SuppressChecksum) { @@ -102,12 +102,12 @@ public override void VisitDocument(DocumentIRNode node) RenderChildren(node); } - public override void VisitUsingStatement(UsingStatementIRNode node) + public override void VisitUsingStatement(UsingStatementIntermediateNode node) { Context.BasicWriter.WriteUsingStatement(Context, node); } - public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) + public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) { Context.Writer .Write("namespace ") @@ -120,7 +120,7 @@ public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) } } - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { Context.Writer .Write(node.AccessModifier) @@ -163,7 +163,7 @@ public override void VisitClassDeclaration(ClassDeclarationIRNode node) } } - public override void VisitMethodDeclaration(MethodDeclarationIRNode node) + public override void VisitMethodDeclaration(MethodDeclarationIntermediateNode node) { Context.Writer.WriteLine("#pragma warning disable 1998"); @@ -199,62 +199,62 @@ public override void VisitMethodDeclaration(MethodDeclarationIRNode node) Context.Writer.WriteLine("#pragma warning restore 1998"); } - public override void VisitFieldDeclaration(FieldDeclarationIRNode node) + public override void VisitFieldDeclaration(FieldDeclarationIntermediateNode node) { Context.Writer.WriteField(node.AccessModifier, node.Modifiers, node.Type, node.Name); } - public override void VisitPropertyDeclaration(PropertyDeclarationIRNode node) + public override void VisitPropertyDeclaration(PropertyDeclarationIntermediateNode node) { Context.Writer.WriteAutoPropertyDeclaration(node.AccessModifier, node.Modifiers, node.Type, node.Name); } - public override void VisitExtension(ExtensionIRNode node) + public override void VisitExtension(ExtensionIntermediateNode node) { node.WriteNode(_target, Context); } - public override void VisitCSharpExpression(CSharpExpressionIRNode node) + public override void VisitCSharpExpression(CSharpExpressionIntermediateNode node) { Context.BasicWriter.WriteCSharpExpression(Context, node); } - public override void VisitCSharpCode(CSharpCodeIRNode node) + public override void VisitCSharpCode(CSharpCodeIntermediateNode node) { Context.BasicWriter.WriteCSharpCode(Context, node); } - public override void VisitHtmlAttribute(HtmlAttributeIRNode node) + public override void VisitHtmlAttribute(HtmlAttributeIntermediateNode node) { Context.BasicWriter.WriteHtmlAttribute(Context, node); } - public override void VisitHtmlAttributeValue(HtmlAttributeValueIRNode node) + public override void VisitHtmlAttributeValue(HtmlAttributeValueIntermediateNode node) { Context.BasicWriter.WriteHtmlAttributeValue(Context, node); } - public override void VisitCSharpExpressionAttributeValue(CSharpExpressionAttributeValueIRNode node) + public override void VisitCSharpExpressionAttributeValue(CSharpExpressionAttributeValueIntermediateNode node) { Context.BasicWriter.WriteCSharpExpressionAttributeValue(Context, node); } - public override void VisitCSharpCodeAttributeValue(CSharpCodeAttributeValueIRNode node) + public override void VisitCSharpCodeAttributeValue(CSharpCodeAttributeValueIntermediateNode node) { Context.BasicWriter.WriteCSharpCodeAttributeValue(Context, node); } - public override void VisitHtml(HtmlContentIRNode node) + public override void VisitHtml(HtmlContentIntermediateNode node) { Context.BasicWriter.WriteHtmlContent(Context, node); } - public override void VisitDeclareTagHelperFields(DeclareTagHelperFieldsIRNode node) + public override void VisitDeclareTagHelperFields(DeclareTagHelperFieldsIntermediateNode node) { Context.TagHelperWriter.WriteDeclareTagHelperFields(Context, node); } - public override void VisitTagHelper(TagHelperIRNode node) + public override void VisitTagHelper(TagHelperIntermediateNode node) { var tagHelperRenderingContext = new TagHelperRenderingContext() { @@ -268,27 +268,27 @@ public override void VisitTagHelper(TagHelperIRNode node) } } - public override void VisitTagHelperBody(TagHelperBodyIRNode node) + public override void VisitTagHelperBody(TagHelperBodyIntermediateNode node) { Context.TagHelperWriter.WriteTagHelperBody(Context, node); } - public override void VisitCreateTagHelper(CreateTagHelperIRNode node) + public override void VisitCreateTagHelper(CreateTagHelperIntermediateNode node) { Context.TagHelperWriter.WriteCreateTagHelper(Context, node); } - public override void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIRNode node) + public override void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIntermediateNode node) { Context.TagHelperWriter.WriteAddTagHelperHtmlAttribute(Context, node); } - public override void VisitSetTagHelperProperty(SetTagHelperPropertyIRNode node) + public override void VisitSetTagHelperProperty(SetTagHelperPropertyIntermediateNode node) { Context.TagHelperWriter.WriteSetTagHelperProperty(Context, node); } - public override void VisitDefault(RazorIRNode node) + public override void VisitDefault(IntermediateNode node) { Context.RenderChildren(node); } diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeBasicWriter.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeBasicWriter.cs index b077eb640..8f5306505 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeBasicWriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeBasicWriter.cs @@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration { public class DesignTimeBasicWriter : BasicWriter { - public override void WriteUsingStatement(CSharpRenderingContext context, UsingStatementIRNode node) + public override void WriteUsingStatement(CSharpRenderingContext context, UsingStatementIntermediateNode node) { if (node.Source.HasValue) { @@ -25,7 +25,7 @@ public override void WriteUsingStatement(CSharpRenderingContext context, UsingSt } } - public override void WriteCSharpExpression(CSharpRenderingContext context, CSharpExpressionIRNode node) + public override void WriteCSharpExpression(CSharpRenderingContext context, CSharpExpressionIntermediateNode node) { if (context == null) { @@ -46,13 +46,13 @@ public override void WriteCSharpExpression(CSharpRenderingContext context, CShar { using (context.Writer.BuildLinePragma(node.Source.Value)) { - var offset = RazorDesignTimeIRPass.DesignTimeVariable.Length + " = ".Length; + var offset = DesignTimeDirectivePass.DesignTimeVariable.Length + " = ".Length; context.Writer.WritePadding(offset, node.Source, context); - context.Writer.WriteStartAssignment(RazorDesignTimeIRPass.DesignTimeVariable); + context.Writer.WriteStartAssignment(DesignTimeDirectivePass.DesignTimeVariable); for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsCSharp) + if (node.Children[i] is IntermediateToken token && token.IsCSharp) { context.AddLineMappingFor(token); context.Writer.Write(token.Content); @@ -69,10 +69,10 @@ public override void WriteCSharpExpression(CSharpRenderingContext context, CShar } else { - context.Writer.WriteStartAssignment(RazorDesignTimeIRPass.DesignTimeVariable); + context.Writer.WriteStartAssignment(DesignTimeDirectivePass.DesignTimeVariable); for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsCSharp) + if (node.Children[i] is IntermediateToken token && token.IsCSharp) { context.Writer.Write(token.Content); } @@ -86,12 +86,12 @@ public override void WriteCSharpExpression(CSharpRenderingContext context, CShar } } - public override void WriteCSharpCode(CSharpRenderingContext context, CSharpCodeIRNode node) + public override void WriteCSharpCode(CSharpRenderingContext context, CSharpCodeIntermediateNode node) { var isWhitespaceStatement = true; for (var i = 0; i < node.Children.Count; i++) { - var token = node.Children[i] as RazorIRToken; + var token = node.Children[i] as IntermediateToken; if (token == null || !string.IsNullOrWhiteSpace(token.Content)) { isWhitespaceStatement = false; @@ -117,7 +117,7 @@ public override void WriteCSharpCode(CSharpRenderingContext context, CSharpCodeI for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsCSharp) + if (node.Children[i] is IntermediateToken token && token.IsCSharp) { context.AddLineMappingFor(token); context.Writer.Write(token.Content); @@ -139,17 +139,17 @@ public override void WriteCSharpCode(CSharpRenderingContext context, CSharpCodeI } } - public override void WriteHtmlAttribute(CSharpRenderingContext context, HtmlAttributeIRNode node) + public override void WriteHtmlAttribute(CSharpRenderingContext context, HtmlAttributeIntermediateNode node) { context.RenderChildren(node); } - public override void WriteHtmlAttributeValue(CSharpRenderingContext context, HtmlAttributeValueIRNode node) + public override void WriteHtmlAttributeValue(CSharpRenderingContext context, HtmlAttributeValueIntermediateNode node) { context.RenderChildren(node); } - public override void WriteCSharpExpressionAttributeValue(CSharpRenderingContext context, CSharpExpressionAttributeValueIRNode node) + public override void WriteCSharpExpressionAttributeValue(CSharpRenderingContext context, CSharpExpressionAttributeValueIntermediateNode node) { if (context == null) { @@ -171,13 +171,13 @@ public override void WriteCSharpExpressionAttributeValue(CSharpRenderingContext { using (context.Writer.BuildLinePragma(firstChild.Source.Value)) { - var offset = RazorDesignTimeIRPass.DesignTimeVariable.Length + " = ".Length; + var offset = DesignTimeDirectivePass.DesignTimeVariable.Length + " = ".Length; context.Writer.WritePadding(offset, firstChild.Source, context); - context.Writer.WriteStartAssignment(RazorDesignTimeIRPass.DesignTimeVariable); + context.Writer.WriteStartAssignment(DesignTimeDirectivePass.DesignTimeVariable); for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsCSharp) + if (node.Children[i] is IntermediateToken token && token.IsCSharp) { context.AddLineMappingFor(token); context.Writer.Write(token.Content); @@ -194,10 +194,10 @@ public override void WriteCSharpExpressionAttributeValue(CSharpRenderingContext } else { - context.Writer.WriteStartAssignment(RazorDesignTimeIRPass.DesignTimeVariable); + context.Writer.WriteStartAssignment(DesignTimeDirectivePass.DesignTimeVariable); for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsCSharp) + if (node.Children[i] is IntermediateToken token && token.IsCSharp) { if (token.Source != null) { @@ -216,11 +216,11 @@ public override void WriteCSharpExpressionAttributeValue(CSharpRenderingContext } } - public override void WriteCSharpCodeAttributeValue(CSharpRenderingContext context, CSharpCodeAttributeValueIRNode node) + public override void WriteCSharpCodeAttributeValue(CSharpRenderingContext context, CSharpCodeAttributeValueIntermediateNode node) { for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsCSharp) + if (node.Children[i] is IntermediateToken token && token.IsCSharp) { IDisposable linePragmaScope = null; var isWhitespaceStatement = string.IsNullOrWhiteSpace(token.Content); @@ -260,7 +260,7 @@ public override void WriteCSharpCodeAttributeValue(CSharpRenderingContext contex } } - public override void WriteHtmlContent(CSharpRenderingContext context, HtmlContentIRNode node) + public override void WriteHtmlContent(CSharpRenderingContext context, HtmlContentIntermediateNode node) { // Do nothing } diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeDirectiveTargetExtension.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeDirectiveTargetExtension.cs index d0660a527..d22795d0d 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeDirectiveTargetExtension.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeDirectiveTargetExtension.cs @@ -11,7 +11,7 @@ internal class DesignTimeDirectiveTargetExtension : IDesignTimeDirectiveTargetEx private const string DirectiveTokenHelperMethodName = "__RazorDirectiveTokenHelpers__"; private const string TypeHelper = "__typeHelper"; - public void WriteDesignTimeDirective(CSharpRenderingContext context, DesignTimeDirectiveIRNode node) + public void WriteDesignTimeDirective(CSharpRenderingContext context, DesignTimeDirectiveIntermediateNode node) { context.Writer .WritePragma("warning disable 219") @@ -19,7 +19,7 @@ public void WriteDesignTimeDirective(CSharpRenderingContext context, DesignTimeD for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is DirectiveTokenIRNode n) + if (node.Children[i] is DirectiveTokenIntermediateNode n) { WriteDesignTimeDirectiveToken(context, n); } @@ -30,7 +30,7 @@ public void WriteDesignTimeDirective(CSharpRenderingContext context, DesignTimeD .WritePragma("warning restore 219"); } - private void WriteDesignTimeDirectiveToken(CSharpRenderingContext context, DirectiveTokenIRNode node) + private void WriteDesignTimeDirectiveToken(CSharpRenderingContext context, DirectiveTokenIntermediateNode node) { var tokenKind = node.Descriptor.Kind; if (!node.Source.HasValue || diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeTagHelperWriter.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeTagHelperWriter.cs index 330daa7e4..f665a9a58 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeTagHelperWriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DesignTimeTagHelperWriter.cs @@ -14,7 +14,7 @@ public class DesignTimeTagHelperWriter : TagHelperWriter { public string CreateTagHelperMethodName { get; set; } = "CreateTagHelper"; - public override void WriteDeclareTagHelperFields(CSharpRenderingContext context, DeclareTagHelperFieldsIRNode node) + public override void WriteDeclareTagHelperFields(CSharpRenderingContext context, DeclareTagHelperFieldsIntermediateNode node) { foreach (var tagHelperTypeName in node.UsedTagHelperTypeNames) { @@ -28,17 +28,17 @@ public override void WriteDeclareTagHelperFields(CSharpRenderingContext context, } } - public override void WriteTagHelper(CSharpRenderingContext context, TagHelperIRNode node) + public override void WriteTagHelper(CSharpRenderingContext context, TagHelperIntermediateNode node) { context.RenderChildren(node); } - public override void WriteTagHelperBody(CSharpRenderingContext context, TagHelperBodyIRNode node) + public override void WriteTagHelperBody(CSharpRenderingContext context, TagHelperBodyIntermediateNode node) { context.RenderChildren(node); } - public override void WriteCreateTagHelper(CSharpRenderingContext context, CreateTagHelperIRNode node) + public override void WriteCreateTagHelper(CSharpRenderingContext context, CreateTagHelperIntermediateNode node) { var tagHelperVariableName = GetTagHelperVariableName(node.TagHelperTypeName); @@ -50,12 +50,12 @@ public override void WriteCreateTagHelper(CSharpRenderingContext context, Create .WriteEndMethodInvocation(); } - public override void WriteAddTagHelperHtmlAttribute(CSharpRenderingContext context, AddTagHelperHtmlAttributeIRNode node) + public override void WriteAddTagHelperHtmlAttribute(CSharpRenderingContext context, AddTagHelperHtmlAttributeIntermediateNode node) { context.RenderChildren(node); } - public override void WriteSetTagHelperProperty(CSharpRenderingContext context, SetTagHelperPropertyIRNode node) + public override void WriteSetTagHelperProperty(CSharpRenderingContext context, SetTagHelperPropertyIntermediateNode node) { var tagHelperVariableName = GetTagHelperVariableName(node.TagHelperTypeName); var tagHelperRenderingContext = context.TagHelperRenderingContext; @@ -80,7 +80,7 @@ public override void WriteSetTagHelperProperty(CSharpRenderingContext context, S context.RenderChildren(node); context.Writer.WriteStartAssignment(propertyValueAccessor); - if (node.Children.Count == 1 && node.Children.First() is HtmlContentIRNode htmlNode) + if (node.Children.Count == 1 && node.Children.First() is HtmlContentIntermediateNode htmlNode) { var content = GetContent(htmlNode); context.Writer.WriteStringLiteral(content); @@ -93,7 +93,7 @@ public override void WriteSetTagHelperProperty(CSharpRenderingContext context, S } else { - var firstMappedChild = node.Children.FirstOrDefault(child => child.Source != null) as RazorIRNode; + var firstMappedChild = node.Children.FirstOrDefault(child => child.Source != null) as IntermediateNode; var valueStart = firstMappedChild?.Source; using (context.Writer.BuildLinePragma(node.Source.Value)) @@ -101,7 +101,7 @@ public override void WriteSetTagHelperProperty(CSharpRenderingContext context, S var assignmentPrefixLength = propertyValueAccessor.Length + " = ".Length; if (node.Descriptor.IsEnum && node.Children.Count == 1 && - node.Children.First() is RazorIRToken token && + node.Children.First() is IntermediateToken token && token.IsCSharp) { assignmentPrefixLength += $"global::{node.Descriptor.TypeName}.".Length; @@ -136,7 +136,7 @@ public override void WriteSetTagHelperProperty(CSharpRenderingContext context, S private void RenderTagHelperAttributeInline( CSharpRenderingContext context, - SetTagHelperPropertyIRNode property, + SetTagHelperPropertyIntermediateNode property, SourceSpan documentLocation) { for (var i = 0; i < property.Children.Count; i++) @@ -147,18 +147,18 @@ private void RenderTagHelperAttributeInline( private void RenderTagHelperAttributeInline( CSharpRenderingContext context, - SetTagHelperPropertyIRNode property, - RazorIRNode node, + SetTagHelperPropertyIntermediateNode property, + IntermediateNode node, SourceSpan documentLocation) { - if (node is CSharpExpressionIRNode || node is HtmlContentIRNode) + if (node is CSharpExpressionIntermediateNode || node is HtmlContentIntermediateNode) { for (var i = 0; i < node.Children.Count; i++) { RenderTagHelperAttributeInline(context, property, node.Children[i], documentLocation); } } - else if (node is RazorIRToken token) + else if (node is IntermediateToken token) { if (node.Source != null) { @@ -167,7 +167,7 @@ private void RenderTagHelperAttributeInline( context.Writer.Write(token.Content); } - else if (node is CSharpCodeIRNode) + else if (node is CSharpCodeIntermediateNode) { var error = new RazorError( LegacyResources.TagHelpers_CodeBlocks_NotSupported_InAttributes, @@ -175,7 +175,7 @@ private void RenderTagHelperAttributeInline( documentLocation.Length); context.Diagnostics.Add(RazorDiagnostic.Create(error)); } - else if (node is TemplateIRNode) + else if (node is TemplateIntermediateNode) { var expectedTypeName = property.IsIndexerNameMatch ? property.Descriptor.IndexerTypeName : property.Descriptor.TypeName; var error = new RazorError( @@ -186,12 +186,12 @@ private void RenderTagHelperAttributeInline( } } - private string GetContent(HtmlContentIRNode node) + private string GetContent(HtmlContentIntermediateNode node) { var builder = new StringBuilder(); for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsHtml) + if (node.Children[i] is IntermediateToken token && token.IsHtml) { builder.Append(token.Content); } diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DocumentWriter.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DocumentWriter.cs index adc066086..8651154e9 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DocumentWriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/DocumentWriter.cs @@ -7,6 +7,6 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration { public abstract class DocumentWriter { - public abstract void WriteDocument(DocumentIRNode node); + public abstract void WriteDocument(DocumentIntermediateNode node); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/IDesignTimeDirectiveTargetExtension.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/IDesignTimeDirectiveTargetExtension.cs index 8a5a679e5..b67d7df6f 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/IDesignTimeDirectiveTargetExtension.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/IDesignTimeDirectiveTargetExtension.cs @@ -7,6 +7,6 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration { internal interface IDesignTimeDirectiveTargetExtension : ICodeTargetExtension { - void WriteDesignTimeDirective(CSharpRenderingContext context, DesignTimeDirectiveIRNode node); + void WriteDesignTimeDirective(CSharpRenderingContext context, DesignTimeDirectiveIntermediateNode node); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/IPreallocatedAttributeTargetExtension.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/IPreallocatedAttributeTargetExtension.cs index 0d87a2336..dcf3bf807 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/IPreallocatedAttributeTargetExtension.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/IPreallocatedAttributeTargetExtension.cs @@ -7,12 +7,12 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration { internal interface IPreallocatedAttributeTargetExtension : ICodeTargetExtension { - void WriteDeclarePreallocatedTagHelperHtmlAttribute(CSharpRenderingContext context, DeclarePreallocatedTagHelperHtmlAttributeIRNode node); + void WriteDeclarePreallocatedTagHelperHtmlAttribute(CSharpRenderingContext context, DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode node); - void WriteAddPreallocatedTagHelperHtmlAttribute(CSharpRenderingContext context, AddPreallocatedTagHelperHtmlAttributeIRNode node); + void WriteAddPreallocatedTagHelperHtmlAttribute(CSharpRenderingContext context, AddPreallocatedTagHelperHtmlAttributeIntermediateNode node); - void WriteDeclarePreallocatedTagHelperAttribute(CSharpRenderingContext context, DeclarePreallocatedTagHelperAttributeIRNode node); + void WriteDeclarePreallocatedTagHelperAttribute(CSharpRenderingContext context, DeclarePreallocatedTagHelperAttributeIntermediateNode node); - void WriteSetPreallocatedTagHelperProperty(CSharpRenderingContext context, SetPreallocatedTagHelperPropertyIRNode node); + void WriteSetPreallocatedTagHelperProperty(CSharpRenderingContext context, SetPreallocatedTagHelperPropertyIntermediateNode node); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/PreallocatedAttributeTargetExtension.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/PreallocatedAttributeTargetExtension.cs index e299fd9e1..bd3babf65 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/PreallocatedAttributeTargetExtension.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/PreallocatedAttributeTargetExtension.cs @@ -21,7 +21,7 @@ internal class PreallocatedAttributeTargetExtension : IPreallocatedAttributeTarg public string FormatInvalidIndexerAssignmentMethodName { get; set; } = "InvalidTagHelperIndexerAssignment"; - public void WriteDeclarePreallocatedTagHelperHtmlAttribute(CSharpRenderingContext context, DeclarePreallocatedTagHelperHtmlAttributeIRNode node) + public void WriteDeclarePreallocatedTagHelperHtmlAttribute(CSharpRenderingContext context, DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode node) { context.Writer .Write("private static readonly global::") @@ -49,7 +49,7 @@ public void WriteDeclarePreallocatedTagHelperHtmlAttribute(CSharpRenderingContex } } - public void WriteAddPreallocatedTagHelperHtmlAttribute(CSharpRenderingContext context, AddPreallocatedTagHelperHtmlAttributeIRNode node) + public void WriteAddPreallocatedTagHelperHtmlAttribute(CSharpRenderingContext context, AddPreallocatedTagHelperHtmlAttributeIntermediateNode node) { context.Writer .WriteStartInstanceMethodInvocation(ExecutionContextVariableName, ExecutionContextAddHtmlAttributeMethodName) @@ -57,7 +57,7 @@ public void WriteAddPreallocatedTagHelperHtmlAttribute(CSharpRenderingContext co .WriteEndMethodInvocation(); } - public void WriteDeclarePreallocatedTagHelperAttribute(CSharpRenderingContext context, DeclarePreallocatedTagHelperAttributeIRNode node) + public void WriteDeclarePreallocatedTagHelperAttribute(CSharpRenderingContext context, DeclarePreallocatedTagHelperAttributeIntermediateNode node) { context.Writer .Write("private static readonly global::") @@ -74,7 +74,7 @@ public void WriteDeclarePreallocatedTagHelperAttribute(CSharpRenderingContext co .WriteEndMethodInvocation(); } - public void WriteSetPreallocatedTagHelperProperty(CSharpRenderingContext context, SetPreallocatedTagHelperPropertyIRNode node) + public void WriteSetPreallocatedTagHelperProperty(CSharpRenderingContext context, SetPreallocatedTagHelperPropertyIntermediateNode node) { var tagHelperVariableName = GetTagHelperVariableName(node.TagHelperTypeName); var propertyName = node.Descriptor.GetPropertyName(); diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/RuntimeBasicWriter.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/RuntimeBasicWriter.cs index 23bddfb05..7bf08b784 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/RuntimeBasicWriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/RuntimeBasicWriter.cs @@ -28,7 +28,7 @@ public class RuntimeBasicWriter : BasicWriter public string TemplateTypeName { get; set; } = "Microsoft.AspNetCore.Mvc.Razor.HelperResult"; - public override void WriteUsingStatement(CSharpRenderingContext context, UsingStatementIRNode node) + public override void WriteUsingStatement(CSharpRenderingContext context, UsingStatementIntermediateNode node) { if (node.Source.HasValue) { @@ -43,7 +43,7 @@ public override void WriteUsingStatement(CSharpRenderingContext context, UsingSt } } - public override void WriteCSharpExpression(CSharpRenderingContext context, CSharpExpressionIRNode node) + public override void WriteCSharpExpression(CSharpRenderingContext context, CSharpExpressionIntermediateNode node) { if (context == null) { @@ -66,7 +66,7 @@ public override void WriteCSharpExpression(CSharpRenderingContext context, CShar for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsCSharp) + if (node.Children[i] is IntermediateToken token && token.IsCSharp) { context.Writer.Write(token.Content); } @@ -82,12 +82,12 @@ public override void WriteCSharpExpression(CSharpRenderingContext context, CShar linePragmaScope?.Dispose(); } - public override void WriteCSharpCode(CSharpRenderingContext context, CSharpCodeIRNode node) + public override void WriteCSharpCode(CSharpRenderingContext context, CSharpCodeIntermediateNode node) { var isWhitespaceStatement = true; for (var i = 0; i < node.Children.Count; i++) { - var token = node.Children[i] as RazorIRToken; + var token = node.Children[i] as IntermediateToken; if (token == null || !string.IsNullOrWhiteSpace(token.Content)) { isWhitespaceStatement = false; @@ -109,7 +109,7 @@ public override void WriteCSharpCode(CSharpRenderingContext context, CSharpCodeI for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsCSharp) + if (node.Children[i] is IntermediateToken token && token.IsCSharp) { context.Writer.Write(token.Content); } @@ -128,15 +128,15 @@ public override void WriteCSharpCode(CSharpRenderingContext context, CSharpCodeI linePragmaScope?.Dispose(); } - public override void WriteHtmlAttribute(CSharpRenderingContext context, HtmlAttributeIRNode node) + public override void WriteHtmlAttribute(CSharpRenderingContext context, HtmlAttributeIntermediateNode node) { var valuePieceCount = node .Children .Count(child => - child is HtmlAttributeValueIRNode || - child is CSharpExpressionAttributeValueIRNode || - child is CSharpCodeAttributeValueIRNode || - child is ExtensionIRNode); + child is HtmlAttributeValueIntermediateNode || + child is CSharpExpressionAttributeValueIntermediateNode || + child is CSharpCodeAttributeValueIntermediateNode || + child is ExtensionIntermediateNode); var prefixLocation = node.Source.Value.AbsoluteIndex; var suffixLocation = node.Source.Value.AbsoluteIndex + node.Source.Value.Length - node.Suffix.Length; @@ -162,7 +162,7 @@ child is CSharpCodeAttributeValueIRNode || .WriteEndMethodInvocation(); } - public override void WriteHtmlAttributeValue(CSharpRenderingContext context, HtmlAttributeValueIRNode node) + public override void WriteHtmlAttributeValue(CSharpRenderingContext context, HtmlAttributeValueIntermediateNode node) { var prefixLocation = node.Source.Value.AbsoluteIndex; var valueLocation = node.Source.Value.AbsoluteIndex + node.Prefix.Length; @@ -177,7 +177,7 @@ public override void WriteHtmlAttributeValue(CSharpRenderingContext context, Htm // Write content for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsHtml) + if (node.Children[i] is IntermediateToken token && token.IsHtml) { context.Writer.WriteStringLiteral(token.Content); } @@ -198,7 +198,7 @@ public override void WriteHtmlAttributeValue(CSharpRenderingContext context, Htm .WriteEndMethodInvocation(); } - public override void WriteCSharpExpressionAttributeValue(CSharpRenderingContext context, CSharpExpressionAttributeValueIRNode node) + public override void WriteCSharpExpressionAttributeValue(CSharpRenderingContext context, CSharpExpressionAttributeValueIntermediateNode node) { using (context.Writer.BuildLinePragma(node.Source.Value)) { @@ -212,7 +212,7 @@ public override void WriteCSharpExpressionAttributeValue(CSharpRenderingContext for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsCSharp) + if (node.Children[i] is IntermediateToken token && token.IsCSharp) { context.Writer.Write(token.Content); } @@ -236,7 +236,7 @@ public override void WriteCSharpExpressionAttributeValue(CSharpRenderingContext } } - public override void WriteCSharpCodeAttributeValue(CSharpRenderingContext context, CSharpCodeAttributeValueIRNode node) + public override void WriteCSharpCodeAttributeValue(CSharpRenderingContext context, CSharpCodeAttributeValueIntermediateNode node) { const string ValueWriterName = "__razor_attribute_value_writer"; @@ -258,7 +258,7 @@ public override void WriteCSharpCodeAttributeValue(CSharpRenderingContext contex for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsCSharp) + if (node.Children[i] is IntermediateToken token && token.IsCSharp) { var isWhitespaceStatement = string.IsNullOrWhiteSpace(token.Content); IDisposable linePragmaScope = null; @@ -310,14 +310,14 @@ public override void WriteCSharpCodeAttributeValue(CSharpRenderingContext contex .WriteEndMethodInvocation(); } - public override void WriteHtmlContent(CSharpRenderingContext context, HtmlContentIRNode node) + public override void WriteHtmlContent(CSharpRenderingContext context, HtmlContentIntermediateNode node) { const int MaxStringLiteralLength = 1024; var builder = new StringBuilder(); for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsHtml) + if (node.Children[i] is IntermediateToken token && token.IsHtml) { builder.Append(token.Content); } diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/RuntimeTagHelperWriter.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/RuntimeTagHelperWriter.cs index 616b85873..a6efe33d8 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/RuntimeTagHelperWriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/RuntimeTagHelperWriter.cs @@ -68,7 +68,7 @@ public class RuntimeTagHelperWriter : TagHelperWriter public string FormatInvalidIndexerAssignmentMethodName { get; set; } = "InvalidTagHelperIndexerAssignment"; - public override void WriteDeclareTagHelperFields(CSharpRenderingContext context, DeclareTagHelperFieldsIRNode node) + public override void WriteDeclareTagHelperFields(CSharpRenderingContext context, DeclareTagHelperFieldsIntermediateNode node) { context.Writer.WriteLineHiddenDirective(); @@ -147,7 +147,7 @@ public override void WriteDeclareTagHelperFields(CSharpRenderingContext context, } } - public override void WriteTagHelper(CSharpRenderingContext context, TagHelperIRNode node) + public override void WriteTagHelper(CSharpRenderingContext context, TagHelperIntermediateNode node) { context.RenderChildren(node); @@ -188,7 +188,7 @@ public override void WriteTagHelper(CSharpRenderingContext context, TagHelperIRN ScopeManagerEndMethodName); } - public override void WriteTagHelperBody(CSharpRenderingContext context, TagHelperBodyIRNode node) + public override void WriteTagHelperBody(CSharpRenderingContext context, TagHelperBodyIntermediateNode node) { // Call into the tag helper scope manager to start a new tag helper scope. // Also capture the value as the current execution context. @@ -222,7 +222,7 @@ public override void WriteTagHelperBody(CSharpRenderingContext context, TagHelpe context.Writer.WriteEndMethodInvocation(); } - public override void WriteCreateTagHelper(CSharpRenderingContext context, CreateTagHelperIRNode node) + public override void WriteCreateTagHelper(CSharpRenderingContext context, CreateTagHelperIntermediateNode node) { var tagHelperVariableName = GetTagHelperVariableName(node.TagHelperTypeName); @@ -239,11 +239,11 @@ public override void WriteCreateTagHelper(CSharpRenderingContext context, Create tagHelperVariableName); } - public override void WriteAddTagHelperHtmlAttribute(CSharpRenderingContext context, AddTagHelperHtmlAttributeIRNode node) + public override void WriteAddTagHelperHtmlAttribute(CSharpRenderingContext context, AddTagHelperHtmlAttributeIntermediateNode node) { var attributeValueStyleParameter = $"{HtmlAttributeValueStyleTypeName}.{node.ValueStyle}"; var isConditionalAttributeValue = node.Children.Any( - child => child is CSharpExpressionAttributeValueIRNode || child is CSharpCodeAttributeValueIRNode); + child => child is CSharpExpressionAttributeValueIntermediateNode || child is CSharpCodeAttributeValueIntermediateNode); // All simple text and minimized attributes will be pre-allocated. if (isConditionalAttributeValue) @@ -255,10 +255,10 @@ public override void WriteAddTagHelperHtmlAttribute(CSharpRenderingContext conte // writer. var valuePieceCount = node.Children.Count( child => - child is HtmlAttributeValueIRNode || - child is CSharpExpressionAttributeValueIRNode || - child is CSharpCodeAttributeValueIRNode || - child is ExtensionIRNode); + child is HtmlAttributeValueIntermediateNode || + child is CSharpExpressionAttributeValueIntermediateNode || + child is CSharpCodeAttributeValueIntermediateNode || + child is ExtensionIntermediateNode); context.Writer .WriteStartMethodInvocation(BeginAddHtmlAttributeValuesMethodName) @@ -316,7 +316,7 @@ child is CSharpCodeAttributeValueIRNode || } } - public override void WriteSetTagHelperProperty(CSharpRenderingContext context, SetTagHelperPropertyIRNode node) + public override void WriteSetTagHelperProperty(CSharpRenderingContext context, SetTagHelperPropertyIntermediateNode node) { var tagHelperVariableName = GetTagHelperVariableName(node.TagHelperTypeName); var tagHelperRenderingContext = context.TagHelperRenderingContext; @@ -391,7 +391,7 @@ public override void WriteSetTagHelperProperty(CSharpRenderingContext context, S if (node.Descriptor.IsEnum && node.Children.Count == 1 && - node.Children.First() is RazorIRToken token && + node.Children.First() is IntermediateToken token && token.IsCSharp) { context.Writer @@ -421,7 +421,7 @@ public override void WriteSetTagHelperProperty(CSharpRenderingContext context, S private void RenderTagHelperAttributeInline( CSharpRenderingContext context, - SetTagHelperPropertyIRNode property, + SetTagHelperPropertyIntermediateNode property, SourceSpan documentLocation) { for (var i = 0; i < property.Children.Count; i++) @@ -432,22 +432,22 @@ private void RenderTagHelperAttributeInline( private void RenderTagHelperAttributeInline( CSharpRenderingContext context, - SetTagHelperPropertyIRNode property, - RazorIRNode node, + SetTagHelperPropertyIntermediateNode property, + IntermediateNode node, SourceSpan documentLocation) { - if (node is CSharpExpressionIRNode || node is HtmlContentIRNode) + if (node is CSharpExpressionIntermediateNode || node is HtmlContentIntermediateNode) { for (var i = 0; i < node.Children.Count; i++) { RenderTagHelperAttributeInline(context, property, node.Children[i], documentLocation); } } - else if (node is RazorIRToken token) + else if (node is IntermediateToken token) { context.Writer.Write(token.Content); } - else if (node is CSharpCodeIRNode) + else if (node is CSharpCodeIntermediateNode) { var error = new RazorError( LegacyResources.TagHelpers_CodeBlocks_NotSupported_InAttributes, @@ -455,7 +455,7 @@ private void RenderTagHelperAttributeInline( documentLocation.Length); context.Diagnostics.Add(RazorDiagnostic.Create(error)); } - else if (node is TemplateIRNode) + else if (node is TemplateIntermediateNode) { var expectedTypeName = property.IsIndexerNameMatch ? property.Descriptor.IndexerTypeName : property.Descriptor.TypeName; var error = new RazorError( diff --git a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/TagHelperWriter.cs b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/TagHelperWriter.cs index 9453f3768..cf1422f1e 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/TagHelperWriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/CodeGeneration/TagHelperWriter.cs @@ -7,16 +7,16 @@ namespace Microsoft.AspNetCore.Razor.Language.CodeGeneration { public abstract class TagHelperWriter { - public abstract void WriteDeclareTagHelperFields(CSharpRenderingContext context, DeclareTagHelperFieldsIRNode node); + public abstract void WriteDeclareTagHelperFields(CSharpRenderingContext context, DeclareTagHelperFieldsIntermediateNode node); - public abstract void WriteTagHelper(CSharpRenderingContext context, TagHelperIRNode node); + public abstract void WriteTagHelper(CSharpRenderingContext context, TagHelperIntermediateNode node); - public abstract void WriteTagHelperBody(CSharpRenderingContext context, TagHelperBodyIRNode node); + public abstract void WriteTagHelperBody(CSharpRenderingContext context, TagHelperBodyIntermediateNode node); - public abstract void WriteCreateTagHelper(CSharpRenderingContext context, CreateTagHelperIRNode node); + public abstract void WriteCreateTagHelper(CSharpRenderingContext context, CreateTagHelperIntermediateNode node); - public abstract void WriteAddTagHelperHtmlAttribute(CSharpRenderingContext context, AddTagHelperHtmlAttributeIRNode node); + public abstract void WriteAddTagHelperHtmlAttribute(CSharpRenderingContext context, AddTagHelperHtmlAttributeIntermediateNode node); - public abstract void WriteSetTagHelperProperty(CSharpRenderingContext context, SetTagHelperPropertyIRNode node); + public abstract void WriteSetTagHelperProperty(CSharpRenderingContext context, SetTagHelperPropertyIntermediateNode node); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPass.cs b/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPass.cs index 303a4411b..860e42a58 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPass.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPass.cs @@ -12,16 +12,16 @@ internal class DefaultDocumentClassifierPass : DocumentClassifierPassBase protected override string DocumentKind => "default"; - protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { return true; } protected override void OnDocumentStructureCreated( RazorCodeDocument codeDocument, - NamespaceDeclarationIRNode @namespace, - ClassDeclarationIRNode @class, - MethodDeclarationIRNode method) + NamespaceDeclarationIntermediateNode @namespace, + ClassDeclarationIntermediateNode @class, + MethodDeclarationIntermediateNode method) { var configuration = Engine.Features.OfType().FirstOrDefault(); if (configuration != null) diff --git a/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPassFeature.cs b/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPassFeature.cs index 8890a75cc..278e825de 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPassFeature.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DefaultDocumentClassifierPassFeature.cs @@ -9,13 +9,13 @@ namespace Microsoft.AspNetCore.Razor.Language { internal class DefaultDocumentClassifierPassFeature : RazorEngineFeatureBase { - public IList> ConfigureClass { get; } = - new List>(); + public IList> ConfigureClass { get; } = + new List>(); - public IList> ConfigureNamespace { get; } = - new List>(); + public IList> ConfigureNamespace { get; } = + new List>(); - public IList> ConfigureMethod { get; } = - new List>(); + public IList> ConfigureMethod { get; } = + new List>(); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorCSharpLoweringPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorCSharpLoweringPhase.cs index a3328cbb6..c22fcfa0c 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorCSharpLoweringPhase.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorCSharpLoweringPhase.cs @@ -17,7 +17,7 @@ internal class DefaultRazorCSharpLoweringPhase : RazorEnginePhaseBase, IRazorCSh protected override void ExecuteCore(RazorCodeDocument codeDocument) { - var irDocument = codeDocument.GetIRDocument(); + var irDocument = codeDocument.GetDocumentIntermediateNode(); ThrowForMissingDocumentDependency(irDocument); var target = irDocument.Target; @@ -26,7 +26,7 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument) var message = Resources.FormatDocumentMissingTarget( irDocument.DocumentKind, nameof(CodeTarget), - nameof(DocumentIRNode.Target)); + nameof(DocumentIntermediateNode.Target)); throw new InvalidOperationException(message); } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultDiagnosticCollection.cs b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDiagnosticCollection.cs similarity index 95% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultDiagnosticCollection.cs rename to src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDiagnosticCollection.cs index be80087eb..92d59bb48 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultDiagnosticCollection.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDiagnosticCollection.cs @@ -4,9 +4,9 @@ using System; using System.Collections.Generic; -namespace Microsoft.AspNetCore.Razor.Language.Intermediate +namespace Microsoft.AspNetCore.Razor.Language { - public sealed class DefaultDiagnosticCollection : RazorDiagnosticCollection + public sealed class DefaultRazorDiagnosticCollection : RazorDiagnosticCollection { private readonly List _inner = new List(); diff --git a/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDirectiveClassifierPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDirectiveClassifierPhase.cs index 9782b54dd..155bf8845 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDirectiveClassifierPhase.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDirectiveClassifierPhase.cs @@ -16,7 +16,7 @@ protected override void OnIntialized() protected override void ExecuteCore(RazorCodeDocument codeDocument) { - var irDocument = codeDocument.GetIRDocument(); + var irDocument = codeDocument.GetDocumentIntermediateNode(); ThrowForMissingDocumentDependency(irDocument); foreach (var pass in Passes) @@ -24,7 +24,7 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument) pass.Execute(codeDocument, irDocument); } - codeDocument.SetIRDocument(irDocument); + codeDocument.SetDocumentIntermediateNode(irDocument); } } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDocumentClassifierPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDocumentClassifierPhase.cs index 5fce32c3e..8a41520de 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDocumentClassifierPhase.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorDocumentClassifierPhase.cs @@ -16,7 +16,7 @@ protected override void OnIntialized() protected override void ExecuteCore(RazorCodeDocument codeDocument) { - var irDocument = codeDocument.GetIRDocument(); + var irDocument = codeDocument.GetDocumentIntermediateNode(); ThrowForMissingDocumentDependency(irDocument); foreach (var pass in Passes) @@ -24,7 +24,7 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument) pass.Execute(codeDocument, irDocument); } - codeDocument.SetIRDocument(irDocument); + codeDocument.SetDocumentIntermediateNode(irDocument); } } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorIROptimizationPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorIROptimizationPhase.cs deleted file mode 100644 index 1432bdfe7..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorIROptimizationPhase.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Linq; - -namespace Microsoft.AspNetCore.Razor.Language -{ - internal class DefaultRazorIROptimizationPhase : RazorEnginePhaseBase, IRazorIROptimizationPhase - { - public IRazorIROptimizationPass[] Passes { get; private set; } - - protected override void OnIntialized() - { - Passes = Engine.Features.OfType().OrderBy(p => p.Order).ToArray(); - } - - protected override void ExecuteCore(RazorCodeDocument codeDocument) - { - var irDocument = codeDocument.GetIRDocument(); - ThrowForMissingDocumentDependency(irDocument); - - foreach (var pass in Passes) - { - pass.Execute(codeDocument, irDocument); - } - - codeDocument.SetIRDocument(irDocument); - } - } -} diff --git a/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorIRLoweringPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorIntermediateNodeLoweringPhase.cs similarity index 87% rename from src/Microsoft.AspNetCore.Razor.Language/DefaultRazorIRLoweringPhase.cs rename to src/Microsoft.AspNetCore.Razor.Language/DefaultRazorIntermediateNodeLoweringPhase.cs index 2d88177c1..a25953902 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorIRLoweringPhase.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorIntermediateNodeLoweringPhase.cs @@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Razor.Language { - internal class DefaultRazorIRLoweringPhase : RazorEnginePhaseBase, IRazorIRLoweringPhase + internal class DefaultRazorIntermediateNodeLoweringPhase : RazorEnginePhaseBase, IRazorIntermediateNodeLoweringPhase { private IRazorCodeGenerationOptionsFeature[] _optionsCallbacks; @@ -28,8 +28,8 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument) // This might not have been set if there are no tag helpers. var tagHelperContext = codeDocument.GetTagHelperContext(); - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); document.Options = CreateCodeGenerationOptions(); @@ -64,7 +64,7 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument) var i = 0; foreach (var @namespace in namespaces) { - var @using = new UsingStatementIRNode() + var @using = new UsingStatementIntermediateNode() { Content = @namespace.Key, Source = @namespace.Value, @@ -93,7 +93,7 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument) } } - codeDocument.SetIRDocument(document); + codeDocument.SetDocumentIntermediateNode(document); } private RazorCodeGenerationOptions CreateCodeGenerationOptions() @@ -109,11 +109,11 @@ private RazorCodeGenerationOptions CreateCodeGenerationOptions() private class LoweringVisitor : ParserVisitor { - protected readonly RazorIRBuilder _builder; - protected readonly DocumentIRNode _document; + protected readonly IntermediateNodeBuilder _builder; + protected readonly DocumentIntermediateNode _document; protected readonly Dictionary _namespaces; - public LoweringVisitor(DocumentIRNode document, RazorIRBuilder builder, Dictionary namespaces) + public LoweringVisitor(DocumentIntermediateNode document, IntermediateNodeBuilder builder, Dictionary namespaces) { _document = document; _builder = builder; @@ -131,10 +131,10 @@ public override void VisitImportSpan(AddImportChunkGenerator chunkGenerator, Spa public override void VisitAddTagHelperSpan(AddTagHelperChunkGenerator chunkGenerator, Span span) { - RazorIRNode directiveNode; + IntermediateNode directiveNode; if (IsMalformed(chunkGenerator.Diagnostics)) { - directiveNode = new MalformedDirectiveIRNode() + directiveNode = new MalformedDirectiveIntermediateNode() { Name = CSharpCodeParser.AddTagHelperDirectiveDescriptor.Directive, Descriptor = CSharpCodeParser.AddTagHelperDirectiveDescriptor, @@ -143,7 +143,7 @@ public override void VisitAddTagHelperSpan(AddTagHelperChunkGenerator chunkGener } else { - directiveNode = new DirectiveIRNode() + directiveNode = new DirectiveIntermediateNode() { Name = CSharpCodeParser.AddTagHelperDirectiveDescriptor.Directive, Descriptor = CSharpCodeParser.AddTagHelperDirectiveDescriptor, @@ -158,7 +158,7 @@ public override void VisitAddTagHelperSpan(AddTagHelperChunkGenerator chunkGener _builder.Push(directiveNode); - _builder.Add(new DirectiveTokenIRNode() + _builder.Add(new DirectiveTokenIntermediateNode() { Content = chunkGenerator.LookupText, Descriptor = CSharpCodeParser.AddTagHelperDirectiveDescriptor.Tokens.First(), @@ -170,10 +170,10 @@ public override void VisitAddTagHelperSpan(AddTagHelperChunkGenerator chunkGener public override void VisitRemoveTagHelperSpan(RemoveTagHelperChunkGenerator chunkGenerator, Span span) { - RazorIRNode directiveNode; + IntermediateNode directiveNode; if (IsMalformed(chunkGenerator.Diagnostics)) { - directiveNode = new MalformedDirectiveIRNode() + directiveNode = new MalformedDirectiveIntermediateNode() { Name = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor.Directive, Descriptor = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor, @@ -182,7 +182,7 @@ public override void VisitRemoveTagHelperSpan(RemoveTagHelperChunkGenerator chun } else { - directiveNode = new DirectiveIRNode() + directiveNode = new DirectiveIntermediateNode() { Name = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor.Directive, Descriptor = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor, @@ -197,7 +197,7 @@ public override void VisitRemoveTagHelperSpan(RemoveTagHelperChunkGenerator chun _builder.Push(directiveNode); - _builder.Add(new DirectiveTokenIRNode() + _builder.Add(new DirectiveTokenIntermediateNode() { Content = chunkGenerator.LookupText, Descriptor = CSharpCodeParser.RemoveTagHelperDirectiveDescriptor.Tokens.First(), @@ -209,10 +209,10 @@ public override void VisitRemoveTagHelperSpan(RemoveTagHelperChunkGenerator chun public override void VisitTagHelperPrefixDirectiveSpan(TagHelperPrefixDirectiveChunkGenerator chunkGenerator, Span span) { - RazorIRNode directiveNode; + IntermediateNode directiveNode; if (IsMalformed(chunkGenerator.Diagnostics)) { - directiveNode = new MalformedDirectiveIRNode() + directiveNode = new MalformedDirectiveIntermediateNode() { Name = CSharpCodeParser.TagHelperPrefixDirectiveDescriptor.Directive, Descriptor = CSharpCodeParser.TagHelperPrefixDirectiveDescriptor, @@ -221,7 +221,7 @@ public override void VisitTagHelperPrefixDirectiveSpan(TagHelperPrefixDirectiveC } else { - directiveNode = new DirectiveIRNode() + directiveNode = new DirectiveIntermediateNode() { Name = CSharpCodeParser.TagHelperPrefixDirectiveDescriptor.Directive, Descriptor = CSharpCodeParser.TagHelperPrefixDirectiveDescriptor, @@ -236,7 +236,7 @@ public override void VisitTagHelperPrefixDirectiveSpan(TagHelperPrefixDirectiveC _builder.Push(directiveNode); - _builder.Add(new DirectiveTokenIRNode() + _builder.Add(new DirectiveTokenIntermediateNode() { Content = chunkGenerator.Prefix, Descriptor = CSharpCodeParser.TagHelperPrefixDirectiveDescriptor.Tokens.First(), @@ -271,7 +271,7 @@ private class ImportsVisitor : LoweringVisitor // this simple. private bool _insideLineDirective; - public ImportsVisitor(DocumentIRNode document, RazorIRBuilder builder, Dictionary namespaces) + public ImportsVisitor(DocumentIntermediateNode document, IntermediateNodeBuilder builder, Dictionary namespaces) : base(document, builder, namespaces) { } @@ -280,7 +280,7 @@ public override void VisitDirectiveToken(DirectiveTokenChunkGenerator chunkGener { if (_insideLineDirective) { - _builder.Add(new DirectiveTokenIRNode() + _builder.Add(new DirectiveTokenIntermediateNode() { Content = span.Content, Descriptor = chunkGenerator.Descriptor, @@ -295,10 +295,10 @@ public override void VisitDirectiveBlock(DirectiveChunkGenerator chunkGenerator, { _insideLineDirective = true; - RazorIRNode directiveNode; + IntermediateNode directiveNode; if (IsMalformed(chunkGenerator.Diagnostics)) { - directiveNode = new MalformedDirectiveIRNode() + directiveNode = new MalformedDirectiveIntermediateNode() { Name = chunkGenerator.Descriptor.Directive, Descriptor = chunkGenerator.Descriptor, @@ -307,7 +307,7 @@ public override void VisitDirectiveBlock(DirectiveChunkGenerator chunkGenerator, } else { - directiveNode = new DirectiveIRNode() + directiveNode = new DirectiveIntermediateNode() { Name = chunkGenerator.Descriptor.Directive, Descriptor = chunkGenerator.Descriptor, @@ -333,10 +333,10 @@ public override void VisitDirectiveBlock(DirectiveChunkGenerator chunkGenerator, private class MainSourceVisitor : LoweringVisitor { - private DeclareTagHelperFieldsIRNode _tagHelperFields; + private DeclareTagHelperFieldsIntermediateNode _tagHelperFields; private readonly string _tagHelperPrefix; - public MainSourceVisitor(DocumentIRNode document, RazorIRBuilder builder, Dictionary namespaces, string tagHelperPrefix) + public MainSourceVisitor(DocumentIntermediateNode document, IntermediateNodeBuilder builder, Dictionary namespaces, string tagHelperPrefix) : base(document, builder, namespaces) { _tagHelperPrefix = tagHelperPrefix; @@ -344,7 +344,7 @@ public MainSourceVisitor(DocumentIRNode document, RazorIRBuilder builder, Dictio public override void VisitDirectiveToken(DirectiveTokenChunkGenerator chunkGenerator, Span span) { - _builder.Add(new DirectiveTokenIRNode() + _builder.Add(new DirectiveTokenIntermediateNode() { Content = span.Content, Descriptor = chunkGenerator.Descriptor, @@ -354,10 +354,10 @@ public override void VisitDirectiveToken(DirectiveTokenChunkGenerator chunkGener public override void VisitDirectiveBlock(DirectiveChunkGenerator chunkGenerator, Block block) { - RazorIRNode directiveNode; + IntermediateNode directiveNode; if (IsMalformed(chunkGenerator.Diagnostics)) { - directiveNode = new MalformedDirectiveIRNode() + directiveNode = new MalformedDirectiveIntermediateNode() { Name = chunkGenerator.Descriptor.Directive, Descriptor = chunkGenerator.Descriptor, @@ -366,7 +366,7 @@ public override void VisitDirectiveBlock(DirectiveChunkGenerator chunkGenerator, } else { - directiveNode = new DirectiveIRNode() + directiveNode = new DirectiveIntermediateNode() { Name = chunkGenerator.Descriptor.Directive, Descriptor = chunkGenerator.Descriptor, @@ -393,7 +393,7 @@ public override void VisitDirectiveBlock(DirectiveChunkGenerator chunkGenerator, // Suffix=" public override void VisitAttributeBlock(AttributeBlockChunkGenerator chunkGenerator, Block block) { - _builder.Push(new HtmlAttributeIRNode() + _builder.Push(new HtmlAttributeIntermediateNode() { Name = chunkGenerator.Name, Prefix = chunkGenerator.Prefix, @@ -415,7 +415,7 @@ public override void VisitDynamicAttributeBlock(DynamicAttributeBlockChunkGenera var firstChild = block.Children.FirstOrDefault(c => c.IsBlock) as Block; if (firstChild == null || firstChild.Type == BlockKindInternal.Expression) { - _builder.Push(new CSharpExpressionAttributeValueIRNode() + _builder.Push(new CSharpExpressionAttributeValueIntermediateNode() { Prefix = chunkGenerator.Prefix, Source = BuildSourceSpanFromNode(block), @@ -423,7 +423,7 @@ public override void VisitDynamicAttributeBlock(DynamicAttributeBlockChunkGenera } else { - _builder.Push(new CSharpCodeAttributeValueIRNode() + _builder.Push(new CSharpCodeAttributeValueIntermediateNode() { Prefix = chunkGenerator.Prefix, Source = BuildSourceSpanFromNode(block), @@ -437,7 +437,7 @@ public override void VisitDynamicAttributeBlock(DynamicAttributeBlockChunkGenera public override void VisitLiteralAttributeSpan(LiteralAttributeChunkGenerator chunkGenerator, Span span) { - _builder.Push(new HtmlAttributeValueIRNode() + _builder.Push(new HtmlAttributeValueIntermediateNode() { Prefix = chunkGenerator.Prefix, Source = BuildSourceSpanFromNode(span), @@ -455,10 +455,10 @@ public override void VisitLiteralAttributeSpan(LiteralAttributeChunkGenerator ch chunkGenerator.Value.Value.Length); } - _builder.Add(new RazorIRToken() + _builder.Add(new IntermediateToken() { Content = chunkGenerator.Value, - Kind = RazorIRToken.TokenKind.Html, + Kind = IntermediateToken.TokenKind.Html, Source = valueSpan }); @@ -467,7 +467,7 @@ public override void VisitLiteralAttributeSpan(LiteralAttributeChunkGenerator ch public override void VisitTemplateBlock(TemplateBlockChunkGenerator chunkGenerator, Block block) { - var templateNode = new TemplateIRNode(); + var templateNode = new TemplateIntermediateNode(); _builder.Push(templateNode); VisitDefault(block); @@ -503,13 +503,13 @@ public override void VisitTemplateBlock(TemplateBlockChunkGenerator chunkGenerat // We need to capture this in the IR so that we can give each piece the correct source mappings public override void VisitExpressionBlock(ExpressionChunkGenerator chunkGenerator, Block block) { - if (_builder.Current is CSharpExpressionAttributeValueIRNode) + if (_builder.Current is CSharpExpressionAttributeValueIntermediateNode) { VisitDefault(block); return; } - var expressionNode = new CSharpExpressionIRNode(); + var expressionNode = new CSharpExpressionIntermediateNode(); _builder.Push(expressionNode); @@ -540,31 +540,31 @@ public override void VisitExpressionBlock(ExpressionChunkGenerator chunkGenerato public override void VisitExpressionSpan(ExpressionChunkGenerator chunkGenerator, Span span) { - _builder.Add(new RazorIRToken() + _builder.Add(new IntermediateToken() { Content = span.Content, - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Source = BuildSourceSpanFromNode(span), }); } public override void VisitStatementSpan(StatementChunkGenerator chunkGenerator, Span span) { - var isAttributeValue = _builder.Current is CSharpCodeAttributeValueIRNode; + var isAttributeValue = _builder.Current is CSharpCodeAttributeValueIntermediateNode; if (!isAttributeValue) { - var statementNode = new CSharpCodeIRNode() + var statementNode = new CSharpCodeIntermediateNode() { Source = BuildSourceSpanFromNode(span) }; _builder.Push(statementNode); } - _builder.Add(new RazorIRToken() + _builder.Add(new IntermediateToken() { Content = span.Content, - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Source = BuildSourceSpanFromNode(span), }); @@ -590,9 +590,9 @@ public override void VisitMarkupSpan(MarkupChunkGenerator chunkGenerator, Span s var source = BuildSourceSpanFromNode(span); var currentChildren = _builder.Current.Children; - if (currentChildren.Count > 0 && currentChildren[currentChildren.Count - 1] is HtmlContentIRNode) + if (currentChildren.Count > 0 && currentChildren[currentChildren.Count - 1] is HtmlContentIntermediateNode) { - var existingHtmlContent = (HtmlContentIRNode)currentChildren[currentChildren.Count - 1]; + var existingHtmlContent = (HtmlContentIntermediateNode)currentChildren[currentChildren.Count - 1]; if (existingHtmlContent.Source == null && source == null) { @@ -610,16 +610,16 @@ public override void VisitMarkupSpan(MarkupChunkGenerator chunkGenerator, Span s } } - var contentNode = new HtmlContentIRNode() + var contentNode = new HtmlContentIntermediateNode() { Source = source }; _builder.Push(contentNode); - _builder.Add(new RazorIRToken() + _builder.Add(new IntermediateToken() { Content = span.Content, - Kind = RazorIRToken.TokenKind.Html, + Kind = IntermediateToken.TokenKind.Html, Source = source, }); @@ -642,7 +642,7 @@ public override void VisitTagHelperBlock(TagHelperChunkGenerator chunkGenerator, tagName = tagName.Substring(_tagHelperPrefix.Length); } - var tagHelperNode = new TagHelperIRNode() + var tagHelperNode = new TagHelperIntermediateNode() { TagName = tagName, TagMode = tagHelperBlock.TagMode, @@ -656,24 +656,24 @@ public override void VisitTagHelperBlock(TagHelperChunkGenerator chunkGenerator, _builder.Push(tagHelperNode); - _builder.Push(new TagHelperBodyIRNode()); + _builder.Push(new TagHelperBodyIntermediateNode()); VisitDefault(block); - _builder.Pop(); // Pop InitializeTagHelperStructureIRNode + _builder.Pop(); // Pop InitializeTagHelperStructureIntermediateNode AddTagHelperCreation(tagHelperBlock.Binding); AddTagHelperAttributes(tagHelperBlock.Attributes, tagHelperBlock.Binding); - _builder.Pop(); // Pop TagHelperIRNode + _builder.Pop(); // Pop TagHelperIntermediateNode } - private void Combine(HtmlContentIRNode node, Span span) + private void Combine(HtmlContentIntermediateNode node, Span span) { - node.Children.Add(new RazorIRToken() + node.Children.Add(new IntermediateToken() { Content = span.Content, - Kind = RazorIRToken.TokenKind.Html, + Kind = IntermediateToken.TokenKind.Html, Source = BuildSourceSpanFromNode(span), }); @@ -694,7 +694,7 @@ private void DeclareTagHelperFields(TagHelperBlock block) { if (_tagHelperFields == null) { - _tagHelperFields = new DeclareTagHelperFieldsIRNode(); + _tagHelperFields = new DeclareTagHelperFieldsIntermediateNode(); _document.Children.Add(_tagHelperFields); } @@ -711,7 +711,7 @@ private void AddTagHelperCreation(TagHelperBinding tagHelperBinding) foreach (var descriptor in descriptors) { var typeName = descriptor.GetTypeName(); - var createTagHelper = new CreateTagHelperIRNode() + var createTagHelper = new CreateTagHelperIntermediateNode() { TagHelperTypeName = typeName, Descriptor = descriptor @@ -747,7 +747,7 @@ private void AddTagHelperAttributes(IList attributes, Ta var tagHelperTypeName = associatedDescriptor.GetTypeName(); var attributePropertyName = associatedAttributeDescriptor.GetPropertyName(); - var setTagHelperProperty = new SetTagHelperPropertyIRNode() + var setTagHelperProperty = new SetTagHelperPropertyIntermediateNode() { PropertyName = attributePropertyName, AttributeName = attribute.Name, @@ -766,7 +766,7 @@ private void AddTagHelperAttributes(IList attributes, Ta } else { - var addHtmlAttribute = new AddTagHelperHtmlAttributeIRNode() + var addHtmlAttribute = new AddTagHelperHtmlAttributeIntermediateNode() { Name = attribute.Name, ValueStyle = attribute.ValueStyle diff --git a/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorOptimizationPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorOptimizationPhase.cs new file mode 100644 index 000000000..6b1f7c271 --- /dev/null +++ b/src/Microsoft.AspNetCore.Razor.Language/DefaultRazorOptimizationPhase.cs @@ -0,0 +1,30 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +using System.Linq; + +namespace Microsoft.AspNetCore.Razor.Language +{ + internal class DefaultRazorOptimizationPhase : RazorEnginePhaseBase, IRazorOptimizationPhase + { + public IRazorOptimizationPass[] Passes { get; private set; } + + protected override void OnIntialized() + { + Passes = Engine.Features.OfType().OrderBy(p => p.Order).ToArray(); + } + + protected override void ExecuteCore(RazorCodeDocument codeDocument) + { + var documentNode = codeDocument.GetDocumentIntermediateNode(); + ThrowForMissingDocumentDependency(documentNode); + + foreach (var pass in Passes) + { + pass.Execute(codeDocument, documentNode); + } + + codeDocument.SetDocumentIntermediateNode(documentNode); + } + } +} diff --git a/src/Microsoft.AspNetCore.Razor.Language/RazorDesignTimeIRPass.cs b/src/Microsoft.AspNetCore.Razor.Language/DesignTimeDirectivePass.cs similarity index 58% rename from src/Microsoft.AspNetCore.Razor.Language/RazorDesignTimeIRPass.cs rename to src/Microsoft.AspNetCore.Razor.Language/DesignTimeDirectivePass.cs index 229b2fd99..1ccd9c891 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/RazorDesignTimeIRPass.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DesignTimeDirectivePass.cs @@ -5,45 +5,45 @@ namespace Microsoft.AspNetCore.Razor.Language { - internal class RazorDesignTimeIRPass : RazorIRPassBase, IRazorDirectiveClassifierPass + internal class DesignTimeDirectivePass : IntermediateNodePassBase, IRazorDirectiveClassifierPass { internal const string DesignTimeVariable = "__o"; // This needs to run before other directive classifiers. public override int Order => -10; - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { var walker = new DesignTimeHelperWalker(); - walker.VisitDocument(irDocument); + walker.VisitDocument(documentNode); } - internal class DesignTimeHelperWalker : RazorIRNodeWalker + internal class DesignTimeHelperWalker : IntermediateNodeWalker { - private DesignTimeDirectiveIRNode _designTimeDirectiveIRNode; + private DesignTimeDirectiveIntermediateNode _directiveNode; - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { - var designTimeHelperDeclaration = new CSharpCodeIRNode(); - RazorIRBuilder.Create(designTimeHelperDeclaration) - .Add(new RazorIRToken() + var designTimeHelperDeclaration = new CSharpCodeIntermediateNode(); + IntermediateNodeBuilder.Create(designTimeHelperDeclaration) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = $"private static {typeof(object).FullName} {DesignTimeVariable} = null;" }); node.Children.Insert(0, designTimeHelperDeclaration); - _designTimeDirectiveIRNode = new DesignTimeDirectiveIRNode(); + _directiveNode = new DesignTimeDirectiveIntermediateNode(); VisitDefault(node); - node.Children.Insert(0, _designTimeDirectiveIRNode); + node.Children.Insert(0, _directiveNode); } - public override void VisitDirectiveToken(DirectiveTokenIRNode node) + public override void VisitDirectiveToken(DirectiveTokenIntermediateNode node) { - _designTimeDirectiveIRNode.Children.Add(node); + _directiveNode.Children.Add(node); } } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/DirectiveRemovalIROptimizationPass.cs b/src/Microsoft.AspNetCore.Razor.Language/DirectiveRemovalOptimizationPass.cs similarity index 56% rename from src/Microsoft.AspNetCore.Razor.Language/DirectiveRemovalIROptimizationPass.cs rename to src/Microsoft.AspNetCore.Razor.Language/DirectiveRemovalOptimizationPass.cs index 9902e01e7..09dc4f788 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/DirectiveRemovalIROptimizationPass.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DirectiveRemovalOptimizationPass.cs @@ -6,14 +6,14 @@ namespace Microsoft.AspNetCore.Razor.Language { - internal class DirectiveRemovalIROptimizationPass : RazorIRPassBase, IRazorIROptimizationPass + internal class DirectiveRemovalOptimizationPass : IntermediateNodePassBase, IRazorOptimizationPass { public override int Order => DefaultFeatureOrder + 50; - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { var visitor = new Visitor(); - visitor.VisitDocument(irDocument); + visitor.VisitDocument(documentNode); foreach (var nodeReference in visitor.DirectiveNodes) { @@ -21,13 +21,13 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNo } } - private class Visitor : RazorIRNodeWalker + private class Visitor : IntermediateNodeWalker { - public IList DirectiveNodes { get; } = new List(); + public IList DirectiveNodes { get; } = new List(); - public override void VisitDirective(DirectiveIRNode node) + public override void VisitDirective(DirectiveIntermediateNode node) { - DirectiveNodes.Add(new RazorIRNodeReference(Parent, node)); + DirectiveNodes.Add(new IntermediateNodeReference(Parent, node)); } } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/DocumentClassifierPassBase.cs b/src/Microsoft.AspNetCore.Razor.Language/DocumentClassifierPassBase.cs index c1dfc04af..cbfaa5b67 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/DocumentClassifierPassBase.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/DocumentClassifierPassBase.cs @@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Razor.Language { - public abstract class DocumentClassifierPassBase : RazorIRPassBase, IRazorDocumentClassifierPass + public abstract class DocumentClassifierPassBase : IntermediateNodePassBase, IRazorDocumentClassifierPass { private static readonly ICodeTargetExtension[] EmptyExtensionArray = new ICodeTargetExtension[0]; @@ -22,49 +22,49 @@ protected override void OnInitialized() TargetExtensions = feature.FirstOrDefault()?.TargetExtensions.ToArray() ?? EmptyExtensionArray; } - protected sealed override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected sealed override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { - if (irDocument.DocumentKind != null) + if (documentNode.DocumentKind != null) { return; } - if (!IsMatch(codeDocument, irDocument)) + if (!IsMatch(codeDocument, documentNode)) { return; } - irDocument.DocumentKind = DocumentKind; - irDocument.Target = CreateTarget(codeDocument, irDocument.Options); + documentNode.DocumentKind = DocumentKind; + documentNode.Target = CreateTarget(codeDocument, documentNode.Options); - Rewrite(codeDocument, irDocument); + Rewrite(codeDocument, documentNode); } - private void Rewrite(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + private void Rewrite(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { // Rewrite the document from a flat structure to use a sensible default structure, // a namespace and class declaration with a single 'razor' method. - var children = new List(irDocument.Children); - irDocument.Children.Clear(); + var children = new List(documentNode.Children); + documentNode.Children.Clear(); - var @namespace = new NamespaceDeclarationIRNode(); + var @namespace = new NamespaceDeclarationIntermediateNode(); @namespace.Annotations[CommonAnnotations.PrimaryNamespace] = CommonAnnotations.PrimaryNamespace; - var @class = new ClassDeclarationIRNode(); + var @class = new ClassDeclarationIntermediateNode(); @class.Annotations[CommonAnnotations.PrimaryClass] = CommonAnnotations.PrimaryClass; - var method = new MethodDeclarationIRNode(); + var method = new MethodDeclarationIntermediateNode(); method.Annotations[CommonAnnotations.PrimaryMethod] = CommonAnnotations.PrimaryMethod; - var documentBuilder = RazorIRBuilder.Create(irDocument); + var documentBuilder = IntermediateNodeBuilder.Create(documentNode); - var namespaceBuilder = RazorIRBuilder.Create(documentBuilder.Current); + var namespaceBuilder = IntermediateNodeBuilder.Create(documentBuilder.Current); namespaceBuilder.Push(@namespace); - var classBuilder = RazorIRBuilder.Create(namespaceBuilder.Current); + var classBuilder = IntermediateNodeBuilder.Create(namespaceBuilder.Current); classBuilder.Push(@class); - var methodBuilder = RazorIRBuilder.Create(classBuilder.Current); + var methodBuilder = IntermediateNodeBuilder.Create(classBuilder.Current); methodBuilder.Push(method); var visitor = new Visitor(documentBuilder, namespaceBuilder, classBuilder, methodBuilder); @@ -79,7 +79,7 @@ private void Rewrite(RazorCodeDocument codeDocument, DocumentIRNode irDocument) OnDocumentStructureCreated(codeDocument, @namespace, @class, method); } - protected abstract bool IsMatch(RazorCodeDocument codeDocument, DocumentIRNode irDocument); + protected abstract bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode); private CodeTarget CreateTarget(RazorCodeDocument codeDocument, RazorCodeGenerationOptions options) { @@ -101,21 +101,21 @@ protected virtual void ConfigureTarget(ICodeTargetBuilder builder) protected virtual void OnDocumentStructureCreated( RazorCodeDocument codeDocument, - NamespaceDeclarationIRNode @namespace, - ClassDeclarationIRNode @class, - MethodDeclarationIRNode @method) + NamespaceDeclarationIntermediateNode @namespace, + ClassDeclarationIntermediateNode @class, + MethodDeclarationIntermediateNode @method) { // Intentionally empty. } - private class Visitor : RazorIRNodeVisitor + private class Visitor : IntermediateNodeVisitor { - private readonly RazorIRBuilder _document; - private readonly RazorIRBuilder _namespace; - private readonly RazorIRBuilder _class; - private readonly RazorIRBuilder _method; + private readonly IntermediateNodeBuilder _document; + private readonly IntermediateNodeBuilder _namespace; + private readonly IntermediateNodeBuilder _class; + private readonly IntermediateNodeBuilder _method; - public Visitor(RazorIRBuilder document, RazorIRBuilder @namespace, RazorIRBuilder @class, RazorIRBuilder method) + public Visitor(IntermediateNodeBuilder document, IntermediateNodeBuilder @namespace, IntermediateNodeBuilder @class, IntermediateNodeBuilder method) { _document = document; _namespace = @namespace; @@ -123,14 +123,14 @@ public Visitor(RazorIRBuilder document, RazorIRBuilder @namespace, RazorIRBuilde _method = method; } - public override void VisitUsingStatement(UsingStatementIRNode node) + public override void VisitUsingStatement(UsingStatementIntermediateNode node) { var children = _namespace.Current.Children; var i = children.Count - 1; for (; i >= 0; i--) { var child = children[i]; - if (child is UsingStatementIRNode) + if (child is UsingStatementIntermediateNode) { break; } @@ -139,14 +139,14 @@ public override void VisitUsingStatement(UsingStatementIRNode node) _namespace.Insert(i + 1, node); } - public override void VisitDeclareTagHelperFields(DeclareTagHelperFieldsIRNode node) + public override void VisitDeclareTagHelperFields(DeclareTagHelperFieldsIntermediateNode node) { _class.Insert(0, node); } - public override void VisitDefault(RazorIRNode node) + public override void VisitDefault(IntermediateNode node) { - if (node is MemberDeclarationIRNode) + if (node is MemberDeclarationIntermediateNode) { _class.Add(node); return; diff --git a/src/Microsoft.AspNetCore.Razor.Language/Extensions/FunctionsDirectivePass.cs b/src/Microsoft.AspNetCore.Razor.Language/Extensions/FunctionsDirectivePass.cs index f4863de1d..eb3913792 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Extensions/FunctionsDirectivePass.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Extensions/FunctionsDirectivePass.cs @@ -5,17 +5,17 @@ namespace Microsoft.AspNetCore.Razor.Language.Extensions { - public sealed class FunctionsDirectivePass : RazorIRPassBase, IRazorDirectiveClassifierPass + public sealed class FunctionsDirectivePass : IntermediateNodePassBase, IRazorDirectiveClassifierPass { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { - var @class = irDocument.FindPrimaryClass(); + var @class = documentNode.FindPrimaryClass(); if (@class == null) { return; } - foreach (var functions in irDocument.FindDirectiveReferences(FunctionsDirective.Directive)) + foreach (var functions in documentNode.FindDirectiveReferences(FunctionsDirective.Directive)) { functions.Remove(); diff --git a/src/Microsoft.AspNetCore.Razor.Language/Extensions/ISectionTargetExtension.cs b/src/Microsoft.AspNetCore.Razor.Language/Extensions/ISectionTargetExtension.cs index 31546fd94..3cfe15f0a 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Extensions/ISectionTargetExtension.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Extensions/ISectionTargetExtension.cs @@ -7,6 +7,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Extensions { public interface ISectionTargetExtension : ICodeTargetExtension { - void WriteSection(CSharpRenderingContext context, SectionIRNode node); + void WriteSection(CSharpRenderingContext context, SectionIntermediateNode node); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Extensions/ITemplateTargetExtension.cs b/src/Microsoft.AspNetCore.Razor.Language/Extensions/ITemplateTargetExtension.cs index 343043962..ace89af16 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Extensions/ITemplateTargetExtension.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Extensions/ITemplateTargetExtension.cs @@ -7,6 +7,6 @@ namespace Microsoft.AspNetCore.Razor.Language.Extensions { public interface ITemplateTargetExtension : ICodeTargetExtension { - void WriteTemplate(CSharpRenderingContext context, TemplateIRNode node); + void WriteTemplate(CSharpRenderingContext context, TemplateIntermediateNode node); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Extensions/InheritsDirectivePass.cs b/src/Microsoft.AspNetCore.Razor.Language/Extensions/InheritsDirectivePass.cs index bd4d76b62..be8767919 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Extensions/InheritsDirectivePass.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Extensions/InheritsDirectivePass.cs @@ -7,21 +7,21 @@ namespace Microsoft.AspNetCore.Razor.Language.Extensions { - public sealed class InheritsDirectivePass : RazorIRPassBase, IRazorDirectiveClassifierPass + public sealed class InheritsDirectivePass : IntermediateNodePassBase, IRazorDirectiveClassifierPass { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { - var @class = irDocument.FindPrimaryClass(); + var @class = documentNode.FindPrimaryClass(); if (@class == null) { return; } - foreach (var inherits in irDocument.FindDirectiveReferences(InheritsDirective.Directive)) + foreach (var inherits in documentNode.FindDirectiveReferences(InheritsDirective.Directive)) { inherits.Remove(); - var token = ((DirectiveIRNode)inherits.Node).Tokens.FirstOrDefault(); + var token = ((DirectiveIntermediateNode)inherits.Node).Tokens.FirstOrDefault(); if (token != null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionDirectivePass.cs b/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionDirectivePass.cs index c09b6cebe..f980fdc13 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionDirectivePass.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionDirectivePass.cs @@ -7,21 +7,21 @@ namespace Microsoft.AspNetCore.Razor.Language.Extensions { - public sealed class SectionDirectivePass : RazorIRPassBase, IRazorDirectiveClassifierPass + public sealed class SectionDirectivePass : IntermediateNodePassBase, IRazorDirectiveClassifierPass { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { - var @class = irDocument.FindPrimaryClass(); + var @class = documentNode.FindPrimaryClass(); if (@class == null) { return; } - foreach (var directive in irDocument.FindDirectiveReferences(SectionDirective.Directive)) + foreach (var directive in documentNode.FindDirectiveReferences(SectionDirective.Directive)) { - var sectionName = ((DirectiveIRNode)directive.Node).Tokens.FirstOrDefault()?.Content; + var sectionName = ((DirectiveIntermediateNode)directive.Node).Tokens.FirstOrDefault()?.Content; - var section = new SectionIRNode() + var section = new SectionIntermediateNode() { Name = sectionName, }; @@ -29,7 +29,7 @@ protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNo var i = 0; for (; i < directive.Node.Children.Count; i++) { - if (!(directive.Node.Children[i] is DirectiveTokenIRNode)) + if (!(directive.Node.Children[i] is DirectiveTokenIntermediateNode)) { break; } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionIntermediateNode.cs similarity index 78% rename from src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionIntermediateNode.cs index 7c31c0a02..86f48f9cc 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionIntermediateNode.cs @@ -7,20 +7,20 @@ namespace Microsoft.AspNetCore.Razor.Language.Extensions { - public sealed class SectionIRNode : ExtensionIRNode + public sealed class SectionIntermediateNode : ExtensionIntermediateNode { - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public string Name { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { throw new ArgumentNullException(nameof(visitor)); } - AcceptExtensionNode(this, visitor); + AcceptExtensionNode(this, visitor); } public override void WriteNode(CodeTarget target, CSharpRenderingContext context) diff --git a/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionTargetExtension.cs b/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionTargetExtension.cs index 599fa143b..8eef5d812 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionTargetExtension.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Extensions/SectionTargetExtension.cs @@ -13,7 +13,7 @@ public sealed class SectionTargetExtension : ISectionTargetExtension public string SectionMethodName { get; set; } = DefaultSectionMethodName; - public void WriteSection(CSharpRenderingContext context, SectionIRNode node) + public void WriteSection(CSharpRenderingContext context, SectionIntermediateNode node) { // Quirk Alert! // diff --git a/src/Microsoft.AspNetCore.Razor.Language/Extensions/TemplateIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Extensions/TemplateIntermediateNode.cs similarity index 78% rename from src/Microsoft.AspNetCore.Razor.Language/Extensions/TemplateIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Extensions/TemplateIntermediateNode.cs index 44445bf45..aa9c8e567 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Extensions/TemplateIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Extensions/TemplateIntermediateNode.cs @@ -7,18 +7,18 @@ namespace Microsoft.AspNetCore.Razor.Language.Extensions { - public sealed class TemplateIRNode : ExtensionIRNode + public sealed class TemplateIntermediateNode : ExtensionIntermediateNode { - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { throw new ArgumentNullException(nameof(visitor)); } - AcceptExtensionNode(this, visitor); + AcceptExtensionNode(this, visitor); } public override void WriteNode(CodeTarget target, CSharpRenderingContext context) diff --git a/src/Microsoft.AspNetCore.Razor.Language/Extensions/TemplateTargetExtension.cs b/src/Microsoft.AspNetCore.Razor.Language/Extensions/TemplateTargetExtension.cs index 27b9472da..370036616 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Extensions/TemplateTargetExtension.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Extensions/TemplateTargetExtension.cs @@ -11,7 +11,7 @@ public sealed class TemplateTargetExtension : ITemplateTargetExtension public string TemplateTypeName { get; set; } = DefaultTemplateTypeName; - public void WriteTemplate(CSharpRenderingContext context, TemplateIRNode node) + public void WriteTemplate(CSharpRenderingContext context, TemplateIntermediateNode node) { const string ItemParameterName = "item"; const string TemplateWriterName = "__razor_template_writer"; diff --git a/src/Microsoft.AspNetCore.Razor.Language/IRazorCSharpLoweringPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/IRazorCSharpLoweringPhase.cs index ca95d8ad3..265e4bc49 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/IRazorCSharpLoweringPhase.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/IRazorCSharpLoweringPhase.cs @@ -4,12 +4,12 @@ namespace Microsoft.AspNetCore.Razor.Language { /// - /// Generates C# code using the IR document. + /// Generates C# code using the intermediate node document. /// /// - /// After IR processing, the transforms the IR document into generated C# code. - /// At this time any directives or IR constructs that cannot be understood by code generation will result - /// in an error. + /// After IR processing, the transforms the intermediate node document into + /// generated C# code. At this time any directives or other constructs that cannot be understood by code generation + /// will result in an error. /// public interface IRazorCSharpLoweringPhase : IRazorEnginePhase { diff --git a/src/Microsoft.AspNetCore.Razor.Language/IRazorDirectiveClassifierPass.cs b/src/Microsoft.AspNetCore.Razor.Language/IRazorDirectiveClassifierPass.cs index 750ce1e41..0adaa290a 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/IRazorDirectiveClassifierPass.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/IRazorDirectiveClassifierPass.cs @@ -9,6 +9,6 @@ public interface IRazorDirectiveClassifierPass : IRazorEngineFeature { int Order { get; } - void Execute(RazorCodeDocument codeDocument, DocumentIRNode irDocument); + void Execute(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/IRazorDirectiveClassifierPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/IRazorDirectiveClassifierPhase.cs index a8196e468..41594a66a 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/IRazorDirectiveClassifierPhase.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/IRazorDirectiveClassifierPhase.cs @@ -4,20 +4,19 @@ namespace Microsoft.AspNetCore.Razor.Language { /// - /// Understands directive IR nodes and performs the necessary modifications to the IR document. + /// Understands directive nodes and performs the necessary modifications to the document. /// /// /// - /// The second phase of IR processing is directive classification. IR passes in this phase should interpret - /// directives and processing them accordingly by transforming IR nodes or adding diagnostics to the IR. At - /// this time the document kind has been identified, so any directive that can't be applied should trigger + /// The second phase of intermediate node processing is directive classification. Passes in this phase should interpret + /// directives and processing them accordingly by transforming nodes or adding diagnostics. At this time the document + /// kind has been identified, so any directive that can't be applied should trigger /// errors. If implementing a document kind that diverges from the standard structure of Razor documents /// it may be necessary to reimplement processing of default directives. /// /// /// objects are executed according to an ascending ordering of the - /// property. The default configuration of - /// prescribes a logical ordering of specific phases of IR processing. + /// property. /// /// public interface IRazorDirectiveClassifierPhase : IRazorEnginePhase diff --git a/src/Microsoft.AspNetCore.Razor.Language/IRazorDocumentClassifierPass.cs b/src/Microsoft.AspNetCore.Razor.Language/IRazorDocumentClassifierPass.cs index a960a3b28..0893eaeea 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/IRazorDocumentClassifierPass.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/IRazorDocumentClassifierPass.cs @@ -9,6 +9,6 @@ public interface IRazorDocumentClassifierPass : IRazorEngineFeature { int Order { get; } - void Execute(RazorCodeDocument codeDocument, DocumentIRNode irDocument); + void Execute(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/IRazorDocumentClassifierPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/IRazorDocumentClassifierPhase.cs index ed8763a33..37a957419 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/IRazorDocumentClassifierPhase.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/IRazorDocumentClassifierPhase.cs @@ -6,21 +6,20 @@ namespace Microsoft.AspNetCore.Razor.Language { /// - /// Modifies the IR document to a desired structure. + /// Modifies the intermediate node document to a desired structure. /// /// /// - /// The first phase of IR procesing is document classification. IR passes in this phase should classify the + /// The first phase of intermediate node procesing is document classification. Passes in this phase should classify the /// document according to any relevant criteria (project configuration, file extension, directive) and modify - /// the IR tree to suit the desired document shape. Document classifiers should also set - /// to prevent other classifiers from running. If no classifier + /// the intermediate node document to suit the desired document shape. Document classifiers should also set + /// to prevent other classifiers from running. If no classifier /// matches the document, then it will be classified as "generic" and processed according to set /// of reasonable defaults. /// /// /// objects are executed according to an ascending ordering of the - /// property. The default configuration of - /// prescribes a logical ordering of specific phases of IR processing. + /// property. /// /// public interface IRazorDocumentClassifierPhase : IRazorEnginePhase diff --git a/src/Microsoft.AspNetCore.Razor.Language/IRazorIRLoweringPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/IRazorIRLoweringPhase.cs deleted file mode 100644 index b2cea6eb6..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/IRazorIRLoweringPhase.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Razor.Language -{ - /// - /// Generates the IR document from . - /// - /// - /// The IR document is first produced by . At this point no IR passes have - /// been executed. The default will perform a mechanical transformation - /// of the syntax tree to IR resulting in a mostly flat structure. It is up to later phases to give the document - /// structure and semantics according to a document kind. The default is - /// also responsible for synthesizing IR nodes for global cross-current concerns such as checksums or global settings. - /// - public interface IRazorIRLoweringPhase : IRazorEnginePhase - { - } -} diff --git a/src/Microsoft.AspNetCore.Razor.Language/IRazorIROptimizationPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/IRazorIROptimizationPhase.cs deleted file mode 100644 index 4c3e01969..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/IRazorIROptimizationPhase.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -namespace Microsoft.AspNetCore.Razor.Language -{ - /// - /// Performs necessary modifications to the IR document to optimize code generation. - /// - /// - /// - /// The last phase of IR processing is lowering. IR passes in this phase perform some kind of transformation - /// on the IR that optimizes the generated code. The key distinction here is that information may be discarded - /// during this phase. - /// - /// - /// objects are executed according to an ascending ordering of the - /// property. The default configuration of - /// prescribes a logical ordering of specific phases of IR processing. - /// - /// - public interface IRazorIROptimizationPhase : IRazorEnginePhase - { - } -} \ No newline at end of file diff --git a/src/Microsoft.AspNetCore.Razor.Language/IRazorIntermediateNodeLoweringPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/IRazorIntermediateNodeLoweringPhase.cs new file mode 100644 index 000000000..6a7bfa05e --- /dev/null +++ b/src/Microsoft.AspNetCore.Razor.Language/IRazorIntermediateNodeLoweringPhase.cs @@ -0,0 +1,19 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.AspNetCore.Razor.Language +{ + /// + /// Generates the intermediate node document from . + /// + /// + /// The document is first produced by . At this point no intermediate node + /// passes have been executed. The default will perform a mechanical + /// transformation of the syntax tree to intermediate nodes, resulting in a mostly flat structure. It is up to later phases + /// to give the document structure and semantics according to a document kind. The default + /// is also responsible for merging nodes from imported documents. + /// + public interface IRazorIntermediateNodeLoweringPhase : IRazorEnginePhase + { + } +} diff --git a/src/Microsoft.AspNetCore.Razor.Language/IRazorIROptimizationPass.cs b/src/Microsoft.AspNetCore.Razor.Language/IRazorOptimizationPass.cs similarity index 66% rename from src/Microsoft.AspNetCore.Razor.Language/IRazorIROptimizationPass.cs rename to src/Microsoft.AspNetCore.Razor.Language/IRazorOptimizationPass.cs index 0617732d0..693cf96a0 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/IRazorIROptimizationPass.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/IRazorOptimizationPass.cs @@ -5,10 +5,10 @@ namespace Microsoft.AspNetCore.Razor.Language { - public interface IRazorIROptimizationPass : IRazorEngineFeature + public interface IRazorOptimizationPass : IRazorEngineFeature { int Order { get; } - void Execute(RazorCodeDocument codeDocument, DocumentIRNode irDocument); + void Execute(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/IRazorOptimizationPhase.cs b/src/Microsoft.AspNetCore.Razor.Language/IRazorOptimizationPhase.cs new file mode 100644 index 000000000..e0c7cccd5 --- /dev/null +++ b/src/Microsoft.AspNetCore.Razor.Language/IRazorOptimizationPhase.cs @@ -0,0 +1,24 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +namespace Microsoft.AspNetCore.Razor.Language +{ + /// + /// Performs necessary modifications to the to complete and + /// optimize code generation. + /// + /// + /// + /// The last phase of intermediate node document processing is optimization. Passes in this phase perform some + /// kind of transformation on the intermediate node document that optimizes the generated code. The key distinction + /// here is that information may be discarded during this phase. + /// + /// + /// objects are executed according to an ascending ordering of the + /// property. + /// + /// + public interface IRazorOptimizationPhase : IRazorEnginePhase + { + } +} \ No newline at end of file diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/AddPreallocatedTagHelperHtmlAttributeIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/AddPreallocatedTagHelperHtmlAttributeIntermediateNode.cs similarity index 85% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/AddPreallocatedTagHelperHtmlAttributeIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/AddPreallocatedTagHelperHtmlAttributeIntermediateNode.cs index da2030df7..6c50ee702 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/AddPreallocatedTagHelperHtmlAttributeIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/AddPreallocatedTagHelperHtmlAttributeIntermediateNode.cs @@ -6,24 +6,24 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - internal sealed class AddPreallocatedTagHelperHtmlAttributeIRNode : ExtensionIRNode + internal sealed class AddPreallocatedTagHelperHtmlAttributeIntermediateNode : ExtensionIntermediateNode { public override RazorDiagnosticCollection Diagnostics { get; } = ReadOnlyDiagnosticCollection.Instance; - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; public override bool HasDiagnostics => false; public string VariableName { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { throw new ArgumentNullException(nameof(visitor)); } - AcceptExtensionNode(this, visitor); + AcceptExtensionNode(this, visitor); } public override void WriteNode(CodeTarget target, CSharpRenderingContext context) diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/AddTagHelperHtmlAttributeIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/AddTagHelperHtmlAttributeIntermediateNode.cs similarity index 77% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/AddTagHelperHtmlAttributeIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/AddTagHelperHtmlAttributeIntermediateNode.cs index 9249e1685..27636e11e 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/AddTagHelperHtmlAttributeIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/AddTagHelperHtmlAttributeIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class AddTagHelperHtmlAttributeIRNode : RazorIRNode + public sealed class AddTagHelperHtmlAttributeIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -18,14 +18,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } @@ -35,7 +35,7 @@ public override RazorDiagnosticCollection Diagnostics internal HtmlAttributeValueStyle ValueStyle { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeAttributeValueIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeAttributeValueIntermediateNode.cs similarity index 75% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeAttributeValueIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeAttributeValueIntermediateNode.cs index 49e1191b7..0a311000a 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeAttributeValueIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeAttributeValueIntermediateNode.cs @@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class CSharpCodeAttributeValueIRNode : RazorIRNode + public sealed class CSharpCodeAttributeValueIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -17,14 +17,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } @@ -32,7 +32,7 @@ public override RazorDiagnosticCollection Diagnostics public string Prefix { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeIntermediateNode.cs similarity index 79% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeIntermediateNode.cs index 4fef6c8e0..f02fc81eb 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpCodeIntermediateNode.cs @@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class CSharpCodeIRNode : RazorIRNode + public sealed class CSharpCodeIntermediateNode : IntermediateNode { private ItemCollection _annotations; private RazorDiagnosticCollection _diagnostics; @@ -29,20 +29,20 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } public override bool HasDiagnostics => _diagnostics != null && _diagnostics.Count > 0; - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionAttributeValueIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionAttributeValueIntermediateNode.cs similarity index 75% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionAttributeValueIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionAttributeValueIntermediateNode.cs index eeb6a859a..0ac622018 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionAttributeValueIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionAttributeValueIntermediateNode.cs @@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class CSharpExpressionAttributeValueIRNode : RazorIRNode + public sealed class CSharpExpressionAttributeValueIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -17,14 +17,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } @@ -32,7 +32,7 @@ public override RazorDiagnosticCollection Diagnostics public string Prefix { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionIntermediateNode.cs similarity index 79% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionIntermediateNode.cs index 6883a039c..6793badc7 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CSharpExpressionIntermediateNode.cs @@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class CSharpExpressionIRNode : RazorIRNode + public sealed class CSharpExpressionIntermediateNode : IntermediateNode { private ItemCollection _annotations; private RazorDiagnosticCollection _diagnostics; @@ -29,20 +29,20 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } public override bool HasDiagnostics => _diagnostics != null && _diagnostics.Count > 0; - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ClassDeclarationIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ClassDeclarationIntermediateNode.cs similarity index 80% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/ClassDeclarationIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/ClassDeclarationIntermediateNode.cs index 60fcfc4cb..e2863a4da 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ClassDeclarationIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ClassDeclarationIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class ClassDeclarationIRNode : MemberDeclarationIRNode + public sealed class ClassDeclarationIntermediateNode : MemberDeclarationIntermediateNode { private ItemCollection _annotations; private RazorDiagnosticCollection _diagnostics; @@ -30,14 +30,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } @@ -51,7 +51,7 @@ public override RazorDiagnosticCollection Diagnostics public IList Interfaces { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CreateTagHelperIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CreateTagHelperIntermediateNode.cs similarity index 77% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/CreateTagHelperIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/CreateTagHelperIntermediateNode.cs index 24784d5ab..5e6ccd663 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CreateTagHelperIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/CreateTagHelperIntermediateNode.cs @@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class CreateTagHelperIRNode : RazorIRNode + public sealed class CreateTagHelperIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -17,14 +17,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; public override SourceSpan? Source { get; set; } @@ -34,7 +34,7 @@ public override RazorDiagnosticCollection Diagnostics public TagHelperDescriptor Descriptor { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclarePreallocatedTagHelperAttributeIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclarePreallocatedTagHelperAttributeIntermediateNode.cs similarity index 86% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclarePreallocatedTagHelperAttributeIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclarePreallocatedTagHelperAttributeIntermediateNode.cs index 88c47ed86..91103ae71 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclarePreallocatedTagHelperAttributeIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclarePreallocatedTagHelperAttributeIntermediateNode.cs @@ -7,11 +7,11 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - internal sealed class DeclarePreallocatedTagHelperAttributeIRNode : ExtensionIRNode + internal sealed class DeclarePreallocatedTagHelperAttributeIntermediateNode : ExtensionIntermediateNode { public override RazorDiagnosticCollection Diagnostics { get; } = ReadOnlyDiagnosticCollection.Instance; - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; public override bool HasDiagnostics => false; @@ -23,14 +23,14 @@ internal sealed class DeclarePreallocatedTagHelperAttributeIRNode : ExtensionIRN public HtmlAttributeValueStyle ValueStyle { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { throw new ArgumentNullException(nameof(visitor)); } - AcceptExtensionNode(this, visitor); + AcceptExtensionNode(this, visitor); } public override void WriteNode(CodeTarget target, CSharpRenderingContext context) diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclarePreallocatedTagHelperHtmlAttributeIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode.cs similarity index 86% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclarePreallocatedTagHelperHtmlAttributeIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode.cs index 2400fb710..4470ca892 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclarePreallocatedTagHelperHtmlAttributeIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode.cs @@ -7,11 +7,11 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - internal sealed class DeclarePreallocatedTagHelperHtmlAttributeIRNode : ExtensionIRNode + internal sealed class DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode : ExtensionIntermediateNode { public override RazorDiagnosticCollection Diagnostics { get; } = ReadOnlyDiagnosticCollection.Instance; - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; public override bool HasDiagnostics => false; @@ -23,14 +23,14 @@ internal sealed class DeclarePreallocatedTagHelperHtmlAttributeIRNode : Extensio public HtmlAttributeValueStyle ValueStyle { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { throw new ArgumentNullException(nameof(visitor)); } - AcceptExtensionNode(this, visitor); + AcceptExtensionNode(this, visitor); } public override void WriteNode(CodeTarget target, CSharpRenderingContext context) diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclareTagHelperFieldsIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclareTagHelperFieldsIntermediateNode.cs similarity index 77% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclareTagHelperFieldsIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclareTagHelperFieldsIntermediateNode.cs index 5be56ec2f..66de8f9d2 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclareTagHelperFieldsIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DeclareTagHelperFieldsIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class DeclareTagHelperFieldsIRNode : RazorIRNode + public sealed class DeclareTagHelperFieldsIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -18,14 +18,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; public override SourceSpan? Source { get; set; } @@ -33,7 +33,7 @@ public override RazorDiagnosticCollection Diagnostics public ISet UsedTagHelperTypeNames { get; set; } = new HashSet(StringComparer.Ordinal); - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultIRNodeCollection.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultIntermediateNodeCollection.cs similarity index 80% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultIRNodeCollection.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultIntermediateNodeCollection.cs index 641068180..699a759df 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultIRNodeCollection.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultIntermediateNodeCollection.cs @@ -6,11 +6,11 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class DefaultIRNodeCollection : RazorIRNodeCollection + public sealed class DefaultIntermediateNodeCollection : IntermediateNodeCollection { - private readonly List _inner = new List(); + private readonly List _inner = new List(); - public override RazorIRNode this[int index] + public override IntermediateNode this[int index] { get { @@ -36,7 +36,7 @@ public override RazorIRNode this[int index] public override bool IsReadOnly => false; - public override void Add(RazorIRNode item) + public override void Add(IntermediateNode item) { if (item == null) { @@ -51,12 +51,12 @@ public override void Clear() _inner.Clear(); } - public override bool Contains(RazorIRNode item) + public override bool Contains(IntermediateNode item) { return _inner.Contains(item); } - public override void CopyTo(RazorIRNode[] array, int arrayIndex) + public override void CopyTo(IntermediateNode[] array, int arrayIndex) { if (array == null) { @@ -75,12 +75,12 @@ public override void CopyTo(RazorIRNode[] array, int arrayIndex) _inner.CopyTo(array, arrayIndex); } - public override IEnumerator GetEnumerator() + public override IEnumerator GetEnumerator() { return _inner.GetEnumerator(); } - public override int IndexOf(RazorIRNode item) + public override int IndexOf(IntermediateNode item) { if (item == null) { @@ -90,7 +90,7 @@ public override int IndexOf(RazorIRNode item) return _inner.IndexOf(item); } - public override void Insert(int index, RazorIRNode item) + public override void Insert(int index, IntermediateNode item) { if (index < 0 || index > Count) { @@ -105,7 +105,7 @@ public override void Insert(int index, RazorIRNode item) _inner.Insert(index, item); } - public override bool Remove(RazorIRNode item) + public override bool Remove(IntermediateNode item) { if (item == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultRazorIRBuilder.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultRazorIntermediateNodeBuilder.cs similarity index 75% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultRazorIRBuilder.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultRazorIntermediateNodeBuilder.cs index 012744b50..abee29797 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultRazorIRBuilder.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DefaultRazorIntermediateNodeBuilder.cs @@ -6,17 +6,17 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - internal class DefaultRazorIRBuilder : RazorIRBuilder + internal class DefaultRazorIntermediateNodeBuilder : IntermediateNodeBuilder { - private readonly List _stack; + private readonly List _stack; private int _depth; - public DefaultRazorIRBuilder() + public DefaultRazorIntermediateNodeBuilder() { - _stack = new List(); + _stack = new List(); } - public override RazorIRNode Current + public override IntermediateNode Current { get { @@ -24,7 +24,7 @@ public override RazorIRNode Current } } - public override void Add(RazorIRNode node) + public override void Add(IntermediateNode node) { if (node == null) { @@ -34,7 +34,7 @@ public override void Add(RazorIRNode node) Current.Children.Add(node); } - public override void Insert(int index, RazorIRNode node) + public override void Insert(int index, IntermediateNode node) { if (index < 0 || index - Current.Children.Count > 0) { @@ -52,9 +52,9 @@ public override void Insert(int index, RazorIRNode node) } } - public override RazorIRNode Build() + public override IntermediateNode Build() { - RazorIRNode node = null; + IntermediateNode node = null; while (_depth > 0) { node = Pop(); @@ -63,18 +63,18 @@ public override RazorIRNode Build() return node; } - public override RazorIRNode Pop() + public override IntermediateNode Pop() { if (_depth == 0) { - throw new InvalidOperationException(Resources.FormatIRBuilder_PopInvalid(nameof(Pop))); + throw new InvalidOperationException(Resources.FormatIntermediateNodeBuilder_PopInvalid(nameof(Pop))); } var node = _stack[--_depth]; return node; } - public override void Push(RazorIRNode node) + public override void Push(IntermediateNode node) { if (node == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DesignTimeDirectiveIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DesignTimeDirectiveIntermediateNode.cs similarity index 76% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/DesignTimeDirectiveIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/DesignTimeDirectiveIntermediateNode.cs index 235ac5424..e295a6a7d 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DesignTimeDirectiveIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DesignTimeDirectiveIntermediateNode.cs @@ -6,18 +6,18 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - internal sealed class DesignTimeDirectiveIRNode : ExtensionIRNode + internal sealed class DesignTimeDirectiveIntermediateNode : ExtensionIntermediateNode { - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { throw new ArgumentNullException(nameof(visitor)); } - AcceptExtensionNode(this, visitor); + AcceptExtensionNode(this, visitor); } public override void WriteNode(CodeTarget target, CSharpRenderingContext context) diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveIntermediateNode.cs similarity index 73% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveIntermediateNode.cs index 8835d9221..059321b02 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class DirectiveIRNode : RazorIRNode + public sealed class DirectiveIntermediateNode : IntermediateNode { private ItemCollection _annotations; private RazorDiagnosticCollection _diagnostics; @@ -30,14 +30,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } @@ -45,11 +45,11 @@ public override RazorDiagnosticCollection Diagnostics public string Name { get; set; } - public IEnumerable Tokens => Children.OfType(); + public IEnumerable Tokens => Children.OfType(); public DirectiveDescriptor Descriptor { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { visitor.VisitDirective(this); } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveTokenIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveTokenIntermediateNode.cs similarity index 74% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveTokenIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveTokenIntermediateNode.cs index dd6a0e502..2976704a4 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveTokenIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DirectiveTokenIntermediateNode.cs @@ -3,7 +3,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class DirectiveTokenIRNode : RazorIRNode + public sealed class DirectiveTokenIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -15,14 +15,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; public override SourceSpan? Source { get; set; } @@ -32,7 +32,7 @@ public override RazorDiagnosticCollection Diagnostics public DirectiveTokenDescriptor Descriptor { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { visitor.VisitDirectiveToken(this); } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIntermediateNode.cs similarity index 81% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIntermediateNode.cs index aa2e3be64..c4dfdbe26 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class DocumentIRNode : RazorIRNode + public sealed class DocumentIntermediateNode : IntermediateNode { private ItemCollection _annotations; private RazorDiagnosticCollection _diagnostics; @@ -30,14 +30,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public string DocumentKind { get; set; } @@ -49,7 +49,7 @@ public override RazorDiagnosticCollection Diagnostics public CodeTarget Target { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIRNodeExtensions.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIntermediateNodeExtensions.cs similarity index 59% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIRNodeExtensions.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIntermediateNodeExtensions.cs index b57a510bc..961c39e17 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIRNodeExtensions.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/DocumentIntermediateNodeExtensions.cs @@ -6,39 +6,39 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public static class DocumentIRNodeExtensions + public static class DocumentIntermediateNodeExtensions { - public static ClassDeclarationIRNode FindPrimaryClass(this DocumentIRNode node) + public static ClassDeclarationIntermediateNode FindPrimaryClass(this DocumentIntermediateNode node) { if (node == null) { throw new ArgumentNullException(nameof(node)); } - return FindWithAnnotation(node, CommonAnnotations.PrimaryClass); + return FindWithAnnotation(node, CommonAnnotations.PrimaryClass); } - public static MethodDeclarationIRNode FindPrimaryMethod(this DocumentIRNode node) + public static MethodDeclarationIntermediateNode FindPrimaryMethod(this DocumentIntermediateNode node) { if (node == null) { throw new ArgumentNullException(nameof(node)); } - return FindWithAnnotation(node, CommonAnnotations.PrimaryMethod); + return FindWithAnnotation(node, CommonAnnotations.PrimaryMethod); } - public static NamespaceDeclarationIRNode FindPrimaryNamespace(this DocumentIRNode node) + public static NamespaceDeclarationIntermediateNode FindPrimaryNamespace(this DocumentIntermediateNode node) { if (node == null) { throw new ArgumentNullException(nameof(node)); } - return FindWithAnnotation(node, CommonAnnotations.PrimaryNamespace); + return FindWithAnnotation(node, CommonAnnotations.PrimaryNamespace); } - public static IReadOnlyList FindDirectiveReferences(this DocumentIRNode node, DirectiveDescriptor directive) + public static IReadOnlyList FindDirectiveReferences(this DocumentIntermediateNode node, DirectiveDescriptor directive) { if (node == null) { @@ -55,7 +55,7 @@ public static IReadOnlyList FindDirectiveReferences(this D return visitor.Directives; } - private static T FindWithAnnotation(RazorIRNode node, object annotation) where T : RazorIRNode + private static T FindWithAnnotation(IntermediateNode node, object annotation) where T : IntermediateNode { if (node is T target && object.ReferenceEquals(target.Annotations[annotation], annotation)) { @@ -74,7 +74,7 @@ private static T FindWithAnnotation(RazorIRNode node, object annotation) wher return null; } - private class DirectiveVisitor : RazorIRNodeWalker + private class DirectiveVisitor : IntermediateNodeWalker { private readonly DirectiveDescriptor _directive; @@ -83,13 +83,13 @@ public DirectiveVisitor(DirectiveDescriptor directive) _directive = directive; } - public List Directives = new List(); + public List Directives = new List(); - public override void VisitDirective(DirectiveIRNode node) + public override void VisitDirective(DirectiveIntermediateNode node) { if (_directive == node.Descriptor) { - Directives.Add(new RazorIRNodeReference(Parent, node)); + Directives.Add(new IntermediateNodeReference(Parent, node)); } base.VisitDirective(node); diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ExtensionIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ExtensionIntermediateNode.cs similarity index 82% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/ExtensionIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/ExtensionIntermediateNode.cs index d373645ba..b49bc19d0 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ExtensionIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ExtensionIntermediateNode.cs @@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public abstract class ExtensionIRNode : RazorIRNode + public abstract class ExtensionIntermediateNode : IntermediateNode { private ItemCollection _annotations; private RazorDiagnosticCollection _diagnostics; @@ -29,7 +29,7 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; @@ -42,10 +42,10 @@ public override RazorDiagnosticCollection Diagnostics public abstract void WriteNode(CodeTarget target, CSharpRenderingContext context); - protected static void AcceptExtensionNode(TNode node, RazorIRNodeVisitor visitor) - where TNode : ExtensionIRNode + protected static void AcceptExtensionNode(TNode node, IntermediateNodeVisitor visitor) + where TNode : ExtensionIntermediateNode { - var typedVisitor = visitor as IExtensionIRNodeVisitor; + var typedVisitor = visitor as IExtensionIntermediateNodeVisitor; if (typedVisitor == null) { visitor.VisitExtension(node); diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/FieldDeclarationIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/FieldDeclarationIntermediateNode.cs similarity index 81% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/FieldDeclarationIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/FieldDeclarationIntermediateNode.cs index 81a8cab7d..0a931496b 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/FieldDeclarationIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/FieldDeclarationIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class FieldDeclarationIRNode : MemberDeclarationIRNode + public sealed class FieldDeclarationIntermediateNode : MemberDeclarationIntermediateNode { private ItemCollection _annotations; private RazorDiagnosticCollection _diagnostics; @@ -30,14 +30,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; public IList Modifiers { get; set; } = new List(); @@ -51,7 +51,7 @@ public override RazorDiagnosticCollection Diagnostics public string Type { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeIntermediateNode.cs similarity index 77% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeIntermediateNode.cs index d1fc3a10d..9cfe7e456 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeIntermediateNode.cs @@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class HtmlAttributeIRNode : RazorIRNode + public sealed class HtmlAttributeIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -17,14 +17,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } @@ -36,7 +36,7 @@ public override RazorDiagnosticCollection Diagnostics public string Suffix { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeValueIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeValueIntermediateNode.cs similarity index 76% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeValueIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeValueIntermediateNode.cs index bfa6b98a4..3c3797eb4 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeValueIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlAttributeValueIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class HtmlAttributeValueIRNode : RazorIRNode + public sealed class HtmlAttributeValueIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -18,14 +18,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } @@ -33,7 +33,7 @@ public override RazorDiagnosticCollection Diagnostics public string Prefix { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlContentIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlContentIntermediateNode.cs similarity index 75% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlContentIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlContentIntermediateNode.cs index 1f182a6d9..b47863653 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlContentIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/HtmlContentIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class HtmlContentIRNode : RazorIRNode + public sealed class HtmlContentIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -18,20 +18,20 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } public override bool HasDiagnostics => _diagnostics != null && _diagnostics.Count > 0; - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IExtensionIRNodeVisitor.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IExtensionIntermediateNodeVisitor.cs similarity index 73% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/IExtensionIRNodeVisitor.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/IExtensionIntermediateNodeVisitor.cs index dbefb56bd..817439d0b 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IExtensionIRNodeVisitor.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IExtensionIntermediateNodeVisitor.cs @@ -3,7 +3,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public interface IExtensionIRNodeVisitor where TNode : ExtensionIRNode + public interface IExtensionIntermediateNodeVisitor where TNode : ExtensionIntermediateNode { void VisitExtension(TNode node); } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNode.cs similarity index 73% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNode.cs index 1b32577bb..e7ae9847d 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNode.cs @@ -3,18 +3,18 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public abstract class RazorIRNode + public abstract class IntermediateNode { public abstract ItemCollection Annotations { get; } public abstract RazorDiagnosticCollection Diagnostics { get; } - public abstract RazorIRNodeCollection Children { get; } + public abstract IntermediateNodeCollection Children { get; } public abstract SourceSpan? Source { get; set; } public abstract bool HasDiagnostics { get; } - public abstract void Accept(RazorIRNodeVisitor visitor); + public abstract void Accept(IntermediateNodeVisitor visitor); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeBuilder.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeBuilder.cs new file mode 100644 index 000000000..7f6963991 --- /dev/null +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeBuilder.cs @@ -0,0 +1,34 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +using System; + +namespace Microsoft.AspNetCore.Razor.Language.Intermediate +{ + public abstract class IntermediateNodeBuilder + { + public static IntermediateNodeBuilder Create(IntermediateNode root) + { + if (root == null) + { + throw new ArgumentNullException(nameof(root)); + } + + var builder = new DefaultRazorIntermediateNodeBuilder(); + builder.Push(root); + return builder; + } + + public abstract IntermediateNode Current { get; } + + public abstract void Add(IntermediateNode node); + + public abstract void Insert(int index, IntermediateNode node); + + public abstract IntermediateNode Build(); + + public abstract void Push(IntermediateNode node); + + public abstract IntermediateNode Pop(); + } +} diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeCollection.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeCollection.cs new file mode 100644 index 000000000..7a200cc24 --- /dev/null +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeCollection.cs @@ -0,0 +1,40 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +using System.Collections; +using System.Collections.Generic; + +namespace Microsoft.AspNetCore.Razor.Language.Intermediate +{ + public abstract class IntermediateNodeCollection : IList + { + public abstract IntermediateNode this[int index] { get; set; } + + public abstract int Count { get; } + + public abstract bool IsReadOnly { get; } + + public abstract void Add(IntermediateNode item); + + public abstract void Clear(); + + public abstract bool Contains(IntermediateNode item); + + public abstract void CopyTo(IntermediateNode[] array, int arrayIndex); + + public abstract IEnumerator GetEnumerator(); + + public abstract int IndexOf(IntermediateNode item); + + public abstract void Insert(int index, IntermediateNode item); + + public abstract bool Remove(IntermediateNode item); + + public abstract void RemoveAt(int index); + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeExtensions.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeExtensions.cs similarity index 89% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeExtensions.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeExtensions.cs index 2483d53c5..8105133b9 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeExtensions.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeExtensions.cs @@ -7,11 +7,11 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public static class RazorIRNodeExtensions + public static class IntermediateNodeExtensions { private static readonly IReadOnlyList EmptyDiagnostics = Array.Empty(); - public static IReadOnlyList GetAllDiagnostics(this RazorIRNode node) + public static IReadOnlyList GetAllDiagnostics(this IntermediateNode node) { if (node == null) { @@ -24,7 +24,7 @@ public static IReadOnlyList GetAllDiagnostics(this RazorIRNode return diagnostics?.ToList() ?? EmptyDiagnostics; - void AddAllDiagnostics(RazorIRNode n) + void AddAllDiagnostics(IntermediateNode n) { if (n.HasDiagnostics) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeReference.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeReference.cs similarity index 67% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeReference.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeReference.cs index 7bf4e04a5..230ca1748 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeReference.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeReference.cs @@ -6,9 +6,9 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public struct RazorIRNodeReference + public struct IntermediateNodeReference { - public RazorIRNodeReference(RazorIRNode parent, RazorIRNode node) + public IntermediateNodeReference(IntermediateNode parent, IntermediateNode node) { if (parent == null) { @@ -24,17 +24,17 @@ public RazorIRNodeReference(RazorIRNode parent, RazorIRNode node) Node = node; } - public void Deconstruct(out RazorIRNode parent, out RazorIRNode node) + public void Deconstruct(out IntermediateNode parent, out IntermediateNode node) { parent = Parent; node = Node; } - public RazorIRNode Node { get; } + public IntermediateNode Node { get; } - public RazorIRNode Parent { get; } + public IntermediateNode Parent { get; } - public RazorIRNodeReference InsertAfter(RazorIRNode node) + public IntermediateNodeReference InsertAfter(IntermediateNode node) { if (node == null) { @@ -43,27 +43,27 @@ public RazorIRNodeReference InsertAfter(RazorIRNode node) if (Parent == null) { - throw new InvalidOperationException(Resources.IRNodeReference_NotInitialized); + throw new InvalidOperationException(Resources.IntermediateNodeReference_NotInitialized); } if (Parent.Children.IsReadOnly) { - throw new InvalidOperationException(Resources.FormatIRNodeReference_CollectionIsReadOnly(Parent)); + throw new InvalidOperationException(Resources.FormatIntermediateNodeReference_CollectionIsReadOnly(Parent)); } var index = Parent.Children.IndexOf(Node); if (index == -1) { - throw new InvalidOperationException(Resources.FormatIRNodeReference_NodeNotFound( + throw new InvalidOperationException(Resources.FormatIntermediateNodeReference_NodeNotFound( Node, Parent)); } Parent.Children.Insert(index + 1, node); - return new RazorIRNodeReference(Parent, node); + return new IntermediateNodeReference(Parent, node); } - public void InsertAfter(IEnumerable nodes) + public void InsertAfter(IEnumerable nodes) { if (nodes == null) { @@ -72,18 +72,18 @@ public void InsertAfter(IEnumerable nodes) if (Parent == null) { - throw new InvalidOperationException(Resources.IRNodeReference_NotInitialized); + throw new InvalidOperationException(Resources.IntermediateNodeReference_NotInitialized); } if (Parent.Children.IsReadOnly) { - throw new InvalidOperationException(Resources.FormatIRNodeReference_CollectionIsReadOnly(Parent)); + throw new InvalidOperationException(Resources.FormatIntermediateNodeReference_CollectionIsReadOnly(Parent)); } var index = Parent.Children.IndexOf(Node); if (index == -1) { - throw new InvalidOperationException(Resources.FormatIRNodeReference_NodeNotFound( + throw new InvalidOperationException(Resources.FormatIntermediateNodeReference_NodeNotFound( Node, Parent)); } @@ -94,7 +94,7 @@ public void InsertAfter(IEnumerable nodes) } } - public RazorIRNodeReference InsertBefore(RazorIRNode node) + public IntermediateNodeReference InsertBefore(IntermediateNode node) { if (node == null) { @@ -103,27 +103,27 @@ public RazorIRNodeReference InsertBefore(RazorIRNode node) if (Parent == null) { - throw new InvalidOperationException(Resources.IRNodeReference_NotInitialized); + throw new InvalidOperationException(Resources.IntermediateNodeReference_NotInitialized); } if (Parent.Children.IsReadOnly) { - throw new InvalidOperationException(Resources.FormatIRNodeReference_CollectionIsReadOnly(Parent)); + throw new InvalidOperationException(Resources.FormatIntermediateNodeReference_CollectionIsReadOnly(Parent)); } var index = Parent.Children.IndexOf(Node); if (index == -1) { - throw new InvalidOperationException(Resources.FormatIRNodeReference_NodeNotFound( + throw new InvalidOperationException(Resources.FormatIntermediateNodeReference_NodeNotFound( Node, Parent)); } Parent.Children.Insert(index, node); - return new RazorIRNodeReference(Parent, node); + return new IntermediateNodeReference(Parent, node); } - public void InsertBefore(IEnumerable nodes) + public void InsertBefore(IEnumerable nodes) { if (nodes == null) { @@ -132,18 +132,18 @@ public void InsertBefore(IEnumerable nodes) if (Parent == null) { - throw new InvalidOperationException(Resources.IRNodeReference_NotInitialized); + throw new InvalidOperationException(Resources.IntermediateNodeReference_NotInitialized); } if (Parent.Children.IsReadOnly) { - throw new InvalidOperationException(Resources.FormatIRNodeReference_CollectionIsReadOnly(Parent)); + throw new InvalidOperationException(Resources.FormatIntermediateNodeReference_CollectionIsReadOnly(Parent)); } var index = Parent.Children.IndexOf(Node); if (index == -1) { - throw new InvalidOperationException(Resources.FormatIRNodeReference_NodeNotFound( + throw new InvalidOperationException(Resources.FormatIntermediateNodeReference_NodeNotFound( Node, Parent)); } @@ -158,18 +158,18 @@ public void Remove() { if (Parent == null) { - throw new InvalidOperationException(Resources.IRNodeReference_NotInitialized); + throw new InvalidOperationException(Resources.IntermediateNodeReference_NotInitialized); } if (Parent.Children.IsReadOnly) { - throw new InvalidOperationException(Resources.FormatIRNodeReference_CollectionIsReadOnly(Parent)); + throw new InvalidOperationException(Resources.FormatIntermediateNodeReference_CollectionIsReadOnly(Parent)); } var index = Parent.Children.IndexOf(Node); if (index == -1) { - throw new InvalidOperationException(Resources.FormatIRNodeReference_NodeNotFound( + throw new InvalidOperationException(Resources.FormatIntermediateNodeReference_NodeNotFound( Node, Parent)); } @@ -177,7 +177,7 @@ public void Remove() Parent.Children.RemoveAt(index); } - public RazorIRNodeReference Replace(RazorIRNode node) + public IntermediateNodeReference Replace(IntermediateNode node) { if (node == null) { @@ -186,24 +186,24 @@ public RazorIRNodeReference Replace(RazorIRNode node) if (Parent == null) { - throw new InvalidOperationException(Resources.IRNodeReference_NotInitialized); + throw new InvalidOperationException(Resources.IntermediateNodeReference_NotInitialized); } if (Parent.Children.IsReadOnly) { - throw new InvalidOperationException(Resources.FormatIRNodeReference_CollectionIsReadOnly(Parent)); + throw new InvalidOperationException(Resources.FormatIntermediateNodeReference_CollectionIsReadOnly(Parent)); } var index = Parent.Children.IndexOf(Node); if (index == -1) { - throw new InvalidOperationException(Resources.FormatIRNodeReference_NodeNotFound( + throw new InvalidOperationException(Resources.FormatIntermediateNodeReference_NodeNotFound( Node, Parent)); } Parent.Children[index] = node; - return new RazorIRNodeReference(Parent, node); + return new IntermediateNodeReference(Parent, node); } } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeVisitor.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeVisitor.cs similarity index 64% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeVisitor.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeVisitor.cs index 8e9736370..351f045bc 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeVisitor.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeVisitor.cs @@ -3,138 +3,138 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public abstract class RazorIRNodeVisitor + public abstract class IntermediateNodeVisitor { - public virtual void Visit(RazorIRNode node) + public virtual void Visit(IntermediateNode node) { node.Accept(this); } - public virtual void VisitDefault(RazorIRNode node) + public virtual void VisitDefault(IntermediateNode node) { } - public virtual void VisitToken(RazorIRToken node) + public virtual void VisitToken(IntermediateToken node) { VisitDefault(node); } - public virtual void VisitDirectiveToken(DirectiveTokenIRNode node) + public virtual void VisitDirectiveToken(DirectiveTokenIntermediateNode node) { VisitDefault(node); } - public virtual void VisitDirective(DirectiveIRNode node) + public virtual void VisitDirective(DirectiveIntermediateNode node) { VisitDefault(node); } - public virtual void VisitMalformedDirective(MalformedDirectiveIRNode node) + public virtual void VisitMalformedDirective(MalformedDirectiveIntermediateNode node) { VisitDefault(node); } - public virtual void VisitExtension(ExtensionIRNode node) + public virtual void VisitExtension(ExtensionIntermediateNode node) { VisitDefault(node); } - public virtual void VisitCSharpCode(CSharpCodeIRNode node) + public virtual void VisitCSharpCode(CSharpCodeIntermediateNode node) { VisitDefault(node); } - public virtual void VisitCSharpExpression(CSharpExpressionIRNode node) + public virtual void VisitCSharpExpression(CSharpExpressionIntermediateNode node) { VisitDefault(node); } - public virtual void VisitHtmlAttributeValue(HtmlAttributeValueIRNode node) + public virtual void VisitHtmlAttributeValue(HtmlAttributeValueIntermediateNode node) { VisitDefault(node); } - public virtual void VisitCSharpExpressionAttributeValue(CSharpExpressionAttributeValueIRNode node) + public virtual void VisitCSharpExpressionAttributeValue(CSharpExpressionAttributeValueIntermediateNode node) { VisitDefault(node); } - public virtual void VisitCSharpCodeAttributeValue(CSharpCodeAttributeValueIRNode node) + public virtual void VisitCSharpCodeAttributeValue(CSharpCodeAttributeValueIntermediateNode node) { VisitDefault(node); } - public virtual void VisitHtmlAttribute(HtmlAttributeIRNode node) + public virtual void VisitHtmlAttribute(HtmlAttributeIntermediateNode node) { VisitDefault(node); } - public virtual void VisitClassDeclaration(ClassDeclarationIRNode node) + public virtual void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { VisitDefault(node); } - public virtual void VisitMethodDeclaration(MethodDeclarationIRNode node) + public virtual void VisitMethodDeclaration(MethodDeclarationIntermediateNode node) { VisitDefault(node); } - public virtual void VisitFieldDeclaration(FieldDeclarationIRNode node) + public virtual void VisitFieldDeclaration(FieldDeclarationIntermediateNode node) { VisitDefault(node); } - public virtual void VisitPropertyDeclaration(PropertyDeclarationIRNode node) + public virtual void VisitPropertyDeclaration(PropertyDeclarationIntermediateNode node) { VisitDefault(node); } - public virtual void VisitDocument(DocumentIRNode node) + public virtual void VisitDocument(DocumentIntermediateNode node) { VisitDefault(node); } - public virtual void VisitHtml(HtmlContentIRNode node) + public virtual void VisitHtml(HtmlContentIntermediateNode node) { VisitDefault(node); } - public virtual void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) + public virtual void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) { VisitDefault(node); } - public virtual void VisitUsingStatement(UsingStatementIRNode node) + public virtual void VisitUsingStatement(UsingStatementIntermediateNode node) { VisitDefault(node); } - public virtual void VisitDeclareTagHelperFields(DeclareTagHelperFieldsIRNode node) + public virtual void VisitDeclareTagHelperFields(DeclareTagHelperFieldsIntermediateNode node) { VisitDefault(node); } - public virtual void VisitTagHelper(TagHelperIRNode node) + public virtual void VisitTagHelper(TagHelperIntermediateNode node) { VisitDefault(node); } - public virtual void VisitTagHelperBody(TagHelperBodyIRNode node) + public virtual void VisitTagHelperBody(TagHelperBodyIntermediateNode node) { VisitDefault(node); } - public virtual void VisitCreateTagHelper(CreateTagHelperIRNode node) + public virtual void VisitCreateTagHelper(CreateTagHelperIntermediateNode node) { VisitDefault(node); } - public virtual void VisitSetTagHelperProperty(SetTagHelperPropertyIRNode node) + public virtual void VisitSetTagHelperProperty(SetTagHelperPropertyIntermediateNode node) { VisitDefault(node); } - public virtual void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIRNode node) + public virtual void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIntermediateNode node) { VisitDefault(node); } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeWalker.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeWalker.cs similarity index 66% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeWalker.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeWalker.cs index 9cb437110..b333bda1d 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeWalker.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateNodeWalker.cs @@ -5,15 +5,15 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public abstract class RazorIRNodeWalker : RazorIRNodeVisitor + public abstract class IntermediateNodeWalker : IntermediateNodeVisitor { - private readonly Stack _ancestors = new Stack(); + private readonly Stack _ancestors = new Stack(); - protected IEnumerable Ancestors => _ancestors; + protected IEnumerable Ancestors => _ancestors; - protected RazorIRNode Parent => _ancestors.Count > 0 ? _ancestors.Peek() : null; + protected IntermediateNode Parent => _ancestors.Count > 0 ? _ancestors.Peek() : null; - public override void VisitDefault(RazorIRNode node) + public override void VisitDefault(IntermediateNode node) { var children = node.Children; if (node.Children.Count == 0) diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRToken.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateToken.cs similarity index 80% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRToken.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateToken.cs index 0111ed3b5..28609be54 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRToken.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/IntermediateToken.cs @@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class RazorIRToken : RazorIRNode + public sealed class IntermediateToken : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -17,14 +17,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; public string Content { get; set; } @@ -38,7 +38,7 @@ public override RazorDiagnosticCollection Diagnostics public override bool HasDiagnostics => _diagnostics != null && _diagnostics.Count > 0; - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MalformedDirectiveIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MalformedDirectiveIntermediateNode.cs similarity index 68% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/MalformedDirectiveIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/MalformedDirectiveIntermediateNode.cs index 4d21e4dca..3dd07c2e7 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MalformedDirectiveIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MalformedDirectiveIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class MalformedDirectiveIRNode : RazorIRNode + public sealed class MalformedDirectiveIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -18,14 +18,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } @@ -33,11 +33,11 @@ public override RazorDiagnosticCollection Diagnostics public string Name { get; set; } - public IEnumerable Tokens => Children.OfType(); + public IEnumerable Tokens => Children.OfType(); public DirectiveDescriptor Descriptor { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { visitor.VisitMalformedDirective(this); } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MemberDeclarationIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MemberDeclarationIntermediateNode.cs similarity index 75% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/MemberDeclarationIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/MemberDeclarationIntermediateNode.cs index 754a22284..b506fec61 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MemberDeclarationIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MemberDeclarationIntermediateNode.cs @@ -3,7 +3,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public abstract class MemberDeclarationIRNode : RazorIRNode + public abstract class MemberDeclarationIntermediateNode : IntermediateNode { } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIntermediateNode.cs similarity index 81% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIntermediateNode.cs index 150daeac9..c427085e7 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/MethodDeclarationIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class MethodDeclarationIRNode : MemberDeclarationIRNode + public sealed class MethodDeclarationIntermediateNode : MemberDeclarationIntermediateNode { private ItemCollection _annotations; private RazorDiagnosticCollection _diagnostics; @@ -30,14 +30,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } @@ -51,7 +51,7 @@ public override RazorDiagnosticCollection Diagnostics public string ReturnType { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/NamespaceDeclarationIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/NamespaceDeclarationIntermediateNode.cs similarity index 79% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/NamespaceDeclarationIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/NamespaceDeclarationIntermediateNode.cs index 1613afccd..080431a4d 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/NamespaceDeclarationIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/NamespaceDeclarationIntermediateNode.cs @@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class NamespaceDeclarationIRNode : RazorIRNode + public sealed class NamespaceDeclarationIntermediateNode : IntermediateNode { private ItemCollection _annotations; private RazorDiagnosticCollection _diagnostics; @@ -29,14 +29,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } @@ -44,7 +44,7 @@ public override RazorDiagnosticCollection Diagnostics public string Content { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/PropertyDeclarationIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/PropertyDeclarationIntermediateNode.cs similarity index 81% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/PropertyDeclarationIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/PropertyDeclarationIntermediateNode.cs index 068f02f80..8437fbc30 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/PropertyDeclarationIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/PropertyDeclarationIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class PropertyDeclarationIRNode : MemberDeclarationIRNode + public sealed class PropertyDeclarationIntermediateNode : MemberDeclarationIntermediateNode { private ItemCollection _annotations; private RazorDiagnosticCollection _diagnostics; @@ -30,14 +30,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; public IList Modifiers { get; set; } = new List(); @@ -51,7 +51,7 @@ public override RazorDiagnosticCollection Diagnostics public string Type { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRBuilder.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRBuilder.cs deleted file mode 100644 index 6be8e90f8..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRBuilder.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; - -namespace Microsoft.AspNetCore.Razor.Language.Intermediate -{ - public abstract class RazorIRBuilder - { - public static RazorIRBuilder Create(RazorIRNode root) - { - if (root == null) - { - throw new ArgumentNullException(nameof(root)); - } - - var builder = new DefaultRazorIRBuilder(); - builder.Push(root); - return builder; - } - - public abstract RazorIRNode Current { get; } - - public abstract void Add(RazorIRNode node); - - public abstract void Insert(int index, RazorIRNode node); - - public abstract RazorIRNode Build(); - - public abstract void Push(RazorIRNode node); - - public abstract RazorIRNode Pop(); - } -} diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeCollection.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeCollection.cs deleted file mode 100644 index 898f064f8..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorIRNodeCollection.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System.Collections; -using System.Collections.Generic; - -namespace Microsoft.AspNetCore.Razor.Language.Intermediate -{ - public abstract class RazorIRNodeCollection : IList - { - public abstract RazorIRNode this[int index] { get; set; } - - public abstract int Count { get; } - - public abstract bool IsReadOnly { get; } - - public abstract void Add(RazorIRNode item); - - public abstract void Clear(); - - public abstract bool Contains(RazorIRNode item); - - public abstract void CopyTo(RazorIRNode[] array, int arrayIndex); - - public abstract IEnumerator GetEnumerator(); - - public abstract int IndexOf(RazorIRNode item); - - public abstract void Insert(int index, RazorIRNode item); - - public abstract bool Remove(RazorIRNode item); - - public abstract void RemoveAt(int index); - - IEnumerator IEnumerable.GetEnumerator() - { - return GetEnumerator(); - } - } -} diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ReadOnlyIRNodeCollection.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ReadOnlyIntermediateNodeCollection.cs similarity index 76% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/ReadOnlyIRNodeCollection.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/ReadOnlyIntermediateNodeCollection.cs index 1cd5f8e79..b46a0eaae 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ReadOnlyIRNodeCollection.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ReadOnlyIntermediateNodeCollection.cs @@ -7,15 +7,15 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class ReadOnlyIRNodeCollection : RazorIRNodeCollection + public sealed class ReadOnlyIntermediateNodeCollection : IntermediateNodeCollection { - public static readonly ReadOnlyIRNodeCollection Instance = new ReadOnlyIRNodeCollection(); + public static readonly ReadOnlyIntermediateNodeCollection Instance = new ReadOnlyIntermediateNodeCollection(); - private ReadOnlyIRNodeCollection() + private ReadOnlyIntermediateNodeCollection() { } - public override RazorIRNode this[int index] + public override IntermediateNode this[int index] { get { @@ -41,7 +41,7 @@ public override RazorIRNode this[int index] public override bool IsReadOnly => true; - public override void Add(RazorIRNode item) + public override void Add(IntermediateNode item) { if (item == null) { @@ -56,12 +56,12 @@ public override void Clear() throw new NotSupportedException(); } - public override bool Contains(RazorIRNode item) + public override bool Contains(IntermediateNode item) { return false; } - public override void CopyTo(RazorIRNode[] array, int arrayIndex) + public override void CopyTo(IntermediateNode[] array, int arrayIndex) { if (array == null) { @@ -80,12 +80,12 @@ public override void CopyTo(RazorIRNode[] array, int arrayIndex) throw new NotSupportedException(); } - public override IEnumerator GetEnumerator() + public override IEnumerator GetEnumerator() { - return Enumerable.Empty().GetEnumerator(); + return Enumerable.Empty().GetEnumerator(); } - public override int IndexOf(RazorIRNode item) + public override int IndexOf(IntermediateNode item) { if (item == null) { @@ -95,7 +95,7 @@ public override int IndexOf(RazorIRNode item) return -1; } - public override void Insert(int index, RazorIRNode item) + public override void Insert(int index, IntermediateNode item) { if (index < 0 || index > Count) { @@ -110,7 +110,7 @@ public override void Insert(int index, RazorIRNode item) throw new NotSupportedException(); } - public override bool Remove(RazorIRNode item) + public override bool Remove(IntermediateNode item) { if (item == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetPreallocatedTagHelperPropertyIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetPreallocatedTagHelperPropertyIntermediateNode.cs similarity index 85% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetPreallocatedTagHelperPropertyIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetPreallocatedTagHelperPropertyIntermediateNode.cs index 140350090..caa1d6a76 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetPreallocatedTagHelperPropertyIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetPreallocatedTagHelperPropertyIntermediateNode.cs @@ -6,11 +6,11 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - internal sealed class SetPreallocatedTagHelperPropertyIRNode : ExtensionIRNode + internal sealed class SetPreallocatedTagHelperPropertyIntermediateNode : ExtensionIntermediateNode { public override RazorDiagnosticCollection Diagnostics => ReadOnlyDiagnosticCollection.Instance; - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; public override bool HasDiagnostics => false; @@ -28,14 +28,14 @@ internal sealed class SetPreallocatedTagHelperPropertyIRNode : ExtensionIRNode public bool IsIndexerNameMatch { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { throw new ArgumentNullException(nameof(visitor)); } - AcceptExtensionNode(this, visitor); + AcceptExtensionNode(this, visitor); } public override void WriteNode(CodeTarget target, CSharpRenderingContext context) diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetTagHelperPropertyIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetTagHelperPropertyIntermediateNode.cs similarity index 81% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetTagHelperPropertyIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetTagHelperPropertyIntermediateNode.cs index f097f83f0..695521858 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetTagHelperPropertyIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/SetTagHelperPropertyIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class SetTagHelperPropertyIRNode : RazorIRNode + public sealed class SetTagHelperPropertyIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -18,14 +18,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } @@ -45,7 +45,7 @@ public override RazorDiagnosticCollection Diagnostics public bool IsIndexerNameMatch { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperBodyIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperBodyIntermediateNode.cs similarity index 75% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperBodyIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperBodyIntermediateNode.cs index 54c71b2f9..140d4dfa0 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperBodyIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperBodyIntermediateNode.cs @@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class TagHelperBodyIRNode : RazorIRNode + public sealed class TagHelperBodyIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -17,20 +17,20 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } public override bool HasDiagnostics => _diagnostics != null && _diagnostics.Count > 0; - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperIntermediateNode.cs similarity index 81% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperIntermediateNode.cs index db6abda2a..42dd5167c 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/TagHelperIntermediateNode.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class TagHelperIRNode : RazorIRNode + public sealed class TagHelperIntermediateNode : IntermediateNode { private ItemCollection _annotations; private RazorDiagnosticCollection _diagnostics; @@ -30,14 +30,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } @@ -49,7 +49,7 @@ public override RazorDiagnosticCollection Diagnostics public ICollection TagHelpers { get; } = new List(); - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/UsingStatementIRNode.cs b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/UsingStatementIntermediateNode.cs similarity index 76% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/UsingStatementIRNode.cs rename to src/Microsoft.AspNetCore.Razor.Language/Intermediate/UsingStatementIntermediateNode.cs index 11ae8f999..0d78def44 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/UsingStatementIRNode.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Intermediate/UsingStatementIntermediateNode.cs @@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public sealed class UsingStatementIRNode : RazorIRNode + public sealed class UsingStatementIntermediateNode : IntermediateNode { private RazorDiagnosticCollection _diagnostics; @@ -17,14 +17,14 @@ public override RazorDiagnosticCollection Diagnostics { if (_diagnostics == null) { - _diagnostics = new DefaultDiagnosticCollection(); + _diagnostics = new DefaultRazorDiagnosticCollection(); } return _diagnostics; } } - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; public override SourceSpan? Source { get; set; } @@ -32,7 +32,7 @@ public override RazorDiagnosticCollection Diagnostics public string Content { get; set; } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/RazorIRPassBase.cs b/src/Microsoft.AspNetCore.Razor.Language/IntermediateNodePassBase.cs similarity index 81% rename from src/Microsoft.AspNetCore.Razor.Language/RazorIRPassBase.cs rename to src/Microsoft.AspNetCore.Razor.Language/IntermediateNodePassBase.cs index bfa5ded76..c9024fea5 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/RazorIRPassBase.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/IntermediateNodePassBase.cs @@ -6,7 +6,7 @@ namespace Microsoft.AspNetCore.Razor.Language { - public abstract class RazorIRPassBase : RazorEngineFeatureBase + public abstract class IntermediateNodePassBase : RazorEngineFeatureBase { /// /// The default implementation of the s that run in a @@ -20,16 +20,16 @@ public abstract class RazorIRPassBase : RazorEngineFeatureBase public virtual int Order { get; } - public void Execute(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + public void Execute(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { if (codeDocument == null) { throw new ArgumentNullException(nameof(codeDocument)); } - if (irDocument == null) + if (documentNode == null) { - throw new ArgumentNullException(nameof(irDocument)); + throw new ArgumentNullException(nameof(documentNode)); } if (Engine == null) @@ -37,9 +37,9 @@ public void Execute(RazorCodeDocument codeDocument, DocumentIRNode irDocument) throw new InvalidOperationException(Resources.FormatPhaseMustBeInitialized(nameof(Engine))); } - ExecuteCore(codeDocument, irDocument); + ExecuteCore(codeDocument, documentNode); } - protected abstract void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument); + protected abstract void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode); } } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Properties/Resources.Designer.cs b/src/Microsoft.AspNetCore.Razor.Language/Properties/Resources.Designer.cs index a04156355..602d0627a 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Properties/Resources.Designer.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/Properties/Resources.Designer.cs @@ -69,16 +69,16 @@ internal static string FormatInvalidTagHelperPrefixValue(object p0, object p1, o /// /// The '{0}' operation is not valid when the builder is empty. /// - internal static string IRBuilder_PopInvalid + internal static string IntermediateNodeBuilder_PopInvalid { - get => GetString("IRBuilder_PopInvalid"); + get => GetString("IntermediateNodeBuilder_PopInvalid"); } /// /// The '{0}' operation is not valid when the builder is empty. /// - internal static string FormatIRBuilder_PopInvalid(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("IRBuilder_PopInvalid"), p0); + internal static string FormatIntermediateNodeBuilder_PopInvalid(object p0) + => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodeBuilder_PopInvalid"), p0); /// /// The specified encoding '{0}' does not match the content's encoding '{1}'. @@ -475,44 +475,44 @@ internal static string FormatKeyMustNotBeNull() /// /// The reference is invalid. The node '{0}' could not be found as a child of '{1}'. /// - internal static string IRNodeReference_NodeNotFound + internal static string IntermediateNodeReference_NodeNotFound { - get => GetString("IRNodeReference_NodeNotFound"); + get => GetString("IntermediateNodeReference_NodeNotFound"); } /// /// The reference is invalid. The node '{0}' could not be found as a child of '{1}'. /// - internal static string FormatIRNodeReference_NodeNotFound(object p0, object p1) - => string.Format(CultureInfo.CurrentCulture, GetString("IRNodeReference_NodeNotFound"), p0, p1); + internal static string FormatIntermediateNodeReference_NodeNotFound(object p0, object p1) + => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodeReference_NodeNotFound"), p0, p1); /// /// The reference is invalid. References initialized with the default constructor cannot modify nodes. /// - internal static string IRNodeReference_NotInitialized + internal static string IntermediateNodeReference_NotInitialized { - get => GetString("IRNodeReference_NotInitialized"); + get => GetString("IntermediateNodeReference_NotInitialized"); } /// /// The reference is invalid. References initialized with the default constructor cannot modify nodes. /// - internal static string FormatIRNodeReference_NotInitialized() - => GetString("IRNodeReference_NotInitialized"); + internal static string FormatIntermediateNodeReference_NotInitialized() + => GetString("IntermediateNodeReference_NotInitialized"); /// /// The node '{0}' has a read-only child collection and cannot be modified. /// - internal static string IRNodeReference_CollectionIsReadOnly + internal static string IntermediateNodeReference_CollectionIsReadOnly { - get => GetString("IRNodeReference_CollectionIsReadOnly"); + get => GetString("IntermediateNodeReference_CollectionIsReadOnly"); } /// /// The node '{0}' has a read-only child collection and cannot be modified. /// - internal static string FormatIRNodeReference_CollectionIsReadOnly(object p0) - => string.Format(CultureInfo.CurrentCulture, GetString("IRNodeReference_CollectionIsReadOnly"), p0); + internal static string FormatIntermediateNodeReference_CollectionIsReadOnly(object p0) + => string.Format(CultureInfo.CurrentCulture, GetString("IntermediateNodeReference_CollectionIsReadOnly"), p0); private static string GetString(string name, params string[] formatterNames) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/RazorCodeDocumentExtensions.cs b/src/Microsoft.AspNetCore.Razor.Language/RazorCodeDocumentExtensions.cs index c870869f3..6cee701d3 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/RazorCodeDocumentExtensions.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/RazorCodeDocumentExtensions.cs @@ -71,24 +71,24 @@ public static void SetImportSyntaxTrees(this RazorCodeDocument document, IReadOn document.Items[typeof(ImportSyntaxTreesHolder)] = new ImportSyntaxTreesHolder(syntaxTrees); } - public static DocumentIRNode GetIRDocument(this RazorCodeDocument document) + public static DocumentIntermediateNode GetDocumentIntermediateNode(this RazorCodeDocument document) { if (document == null) { throw new ArgumentNullException(nameof(document)); } - return document.Items[typeof(DocumentIRNode)] as DocumentIRNode; + return document.Items[typeof(DocumentIntermediateNode)] as DocumentIntermediateNode; } - public static void SetIRDocument(this RazorCodeDocument document, DocumentIRNode irDocument) + public static void SetDocumentIntermediateNode(this RazorCodeDocument document, DocumentIntermediateNode documentNode) { if (document == null) { throw new ArgumentNullException(nameof(document)); } - document.Items[typeof(DocumentIRNode)] = irDocument; + document.Items[typeof(DocumentIntermediateNode)] = documentNode; } public static RazorCSharpDocument GetCSharpDocument(this RazorCodeDocument document) diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorDiagnosticCollection.cs b/src/Microsoft.AspNetCore.Razor.Language/RazorDiagnosticCollection.cs similarity index 95% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorDiagnosticCollection.cs rename to src/Microsoft.AspNetCore.Razor.Language/RazorDiagnosticCollection.cs index 369ca43b5..24e7d8b1d 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/RazorDiagnosticCollection.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/RazorDiagnosticCollection.cs @@ -4,7 +4,7 @@ using System.Collections; using System.Collections.Generic; -namespace Microsoft.AspNetCore.Razor.Language.Intermediate +namespace Microsoft.AspNetCore.Razor.Language { public abstract class RazorDiagnosticCollection : IList { diff --git a/src/Microsoft.AspNetCore.Razor.Language/RazorEngine.cs b/src/Microsoft.AspNetCore.Razor.Language/RazorEngine.cs index 25781c98c..62eeefdb3 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/RazorEngine.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/RazorEngine.cs @@ -54,10 +54,10 @@ internal static void AddDefaults(IRazorEngineBuilder builder) builder.Phases.Add(new DefaultRazorParsingPhase()); builder.Phases.Add(new DefaultRazorSyntaxTreePhase()); builder.Phases.Add(new DefaultRazorTagHelperBinderPhase()); - builder.Phases.Add(new DefaultRazorIRLoweringPhase()); + builder.Phases.Add(new DefaultRazorIntermediateNodeLoweringPhase()); builder.Phases.Add(new DefaultRazorDocumentClassifierPhase()); builder.Phases.Add(new DefaultRazorDirectiveClassifierPhase()); - builder.Phases.Add(new DefaultRazorIROptimizationPhase()); + builder.Phases.Add(new DefaultRazorOptimizationPhase()); builder.Phases.Add(new DefaultRazorCSharpLoweringPhase()); // General extensibility @@ -68,9 +68,9 @@ internal static void AddDefaults(IRazorEngineBuilder builder) builder.Features.Add(new DefaultDirectiveSyntaxTreePass()); builder.Features.Add(new HtmlNodeOptimizationPass()); - // IR Passes + // Intermediate Node Passes builder.Features.Add(new DefaultDocumentClassifierPass()); - builder.Features.Add(new DirectiveRemovalIROptimizationPass()); + builder.Features.Add(new DirectiveRemovalOptimizationPass()); // Default Runtime Targets builder.AddTargetExtension(new PreallocatedAttributeTargetExtension()); @@ -109,8 +109,8 @@ internal static void AddDesignTimeDefaults(IRazorEngineBuilder builder) // Configure options builder.Features.Add(new DesignTimeOptionsFeature()); - // IR Passes - builder.Features.Add(new RazorDesignTimeIRPass()); + // Intermediate Node Passes + builder.Features.Add(new DesignTimeDirectivePass()); // DesignTime Runtime Targets builder.AddTargetExtension(new DesignTimeDirectiveTargetExtension()); diff --git a/src/Microsoft.AspNetCore.Razor.Language/RazorEngineBuilderExtensions.cs b/src/Microsoft.AspNetCore.Razor.Language/RazorEngineBuilderExtensions.cs index 9b9511e29..3bc9c27ec 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/RazorEngineBuilderExtensions.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/RazorEngineBuilderExtensions.cs @@ -84,11 +84,11 @@ public static IRazorEngineBuilder SetBaseType(this IRazorEngineBuilder builder, /// /// The . /// invoked to configure - /// during code generation. + /// during code generation. /// The . public static IRazorEngineBuilder ConfigureClass( this IRazorEngineBuilder builder, - Action configureClass) + Action configureClass) { if (builder == null) { diff --git a/src/Microsoft.AspNetCore.Razor.Language/RazorPreallocatedTagHelperAttributeOptimizationPass.cs b/src/Microsoft.AspNetCore.Razor.Language/RazorPreallocatedTagHelperAttributeOptimizationPass.cs index 64609d070..7f6b8540c 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/RazorPreallocatedTagHelperAttributeOptimizationPass.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/RazorPreallocatedTagHelperAttributeOptimizationPass.cs @@ -8,25 +8,25 @@ namespace Microsoft.AspNetCore.Razor.Language { - internal class RazorPreallocatedTagHelperAttributeOptimizationPass : RazorIRPassBase, IRazorIROptimizationPass + internal class RazorPreallocatedTagHelperAttributeOptimizationPass : IntermediateNodePassBase, IRazorOptimizationPass { public override int Order => DefaultFeatureOrder; - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { var walker = new PreallocatedTagHelperWalker(); - walker.VisitDocument(irDocument); + walker.VisitDocument(documentNode); } - internal class PreallocatedTagHelperWalker : RazorIRNodeWalker + internal class PreallocatedTagHelperWalker : IntermediateNodeWalker { private const string PreAllocatedAttributeVariablePrefix = "__tagHelperAttribute_"; - private ClassDeclarationIRNode _classDeclaration; + private ClassDeclarationIntermediateNode _classDeclaration; private int _variableCountOffset; private int _preallocatedDeclarationCount = 0; - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { _classDeclaration = node; _variableCountOffset = node.Children.Count; @@ -34,23 +34,23 @@ public override void VisitClassDeclaration(ClassDeclarationIRNode node) VisitDefault(node); } - public override void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIRNode node) + public override void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIntermediateNode node) { - if (node.Children.Count != 1 || !(node.Children.First() is HtmlContentIRNode)) + if (node.Children.Count != 1 || !(node.Children.First() is HtmlContentIntermediateNode)) { return; } - var htmlContentNode = node.Children.First() as HtmlContentIRNode; + var htmlContentNode = node.Children.First() as HtmlContentIntermediateNode; var plainTextValue = GetContent(htmlContentNode); - DeclarePreallocatedTagHelperHtmlAttributeIRNode declaration = null; + DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode declaration = null; for (var i = 0; i < _classDeclaration.Children.Count; i++) { var current = _classDeclaration.Children[i]; - if (current is DeclarePreallocatedTagHelperHtmlAttributeIRNode existingDeclaration) + if (current is DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode existingDeclaration) { if (string.Equals(existingDeclaration.Name, node.Name, StringComparison.Ordinal) && string.Equals(existingDeclaration.Value, plainTextValue, StringComparison.Ordinal) && @@ -66,7 +66,7 @@ public override void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIRN { var variableCount = _classDeclaration.Children.Count - _variableCountOffset; var preAllocatedAttributeVariableName = PreAllocatedAttributeVariablePrefix + variableCount; - declaration = new DeclarePreallocatedTagHelperHtmlAttributeIRNode + declaration = new DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode { VariableName = preAllocatedAttributeVariableName, Name = node.Name, @@ -76,7 +76,7 @@ public override void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIRN _classDeclaration.Children.Insert(_preallocatedDeclarationCount++, declaration); } - var addPreAllocatedAttribute = new AddPreallocatedTagHelperHtmlAttributeIRNode + var addPreAllocatedAttribute = new AddPreallocatedTagHelperHtmlAttributeIntermediateNode { VariableName = declaration.VariableName, }; @@ -85,25 +85,25 @@ public override void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIRN Parent.Children[nodeIndex] = addPreAllocatedAttribute; } - public override void VisitSetTagHelperProperty(SetTagHelperPropertyIRNode node) + public override void VisitSetTagHelperProperty(SetTagHelperPropertyIntermediateNode node) { if (!(node.Descriptor.IsStringProperty || (node.IsIndexerNameMatch && node.Descriptor.IsIndexerStringProperty)) || node.Children.Count != 1 || - !(node.Children.First() is HtmlContentIRNode)) + !(node.Children.First() is HtmlContentIntermediateNode)) { return; } - var htmlContentNode = node.Children.First() as HtmlContentIRNode; + var htmlContentNode = node.Children.First() as HtmlContentIntermediateNode; var plainTextValue = GetContent(htmlContentNode); - DeclarePreallocatedTagHelperAttributeIRNode declaration = null; + DeclarePreallocatedTagHelperAttributeIntermediateNode declaration = null; for (var i = 0; i < _classDeclaration.Children.Count; i++) { var current = _classDeclaration.Children[i]; - if (current is DeclarePreallocatedTagHelperAttributeIRNode existingDeclaration) + if (current is DeclarePreallocatedTagHelperAttributeIntermediateNode existingDeclaration) { if (string.Equals(existingDeclaration.Name, node.AttributeName, StringComparison.Ordinal) && string.Equals(existingDeclaration.Value, plainTextValue, StringComparison.Ordinal) && @@ -119,7 +119,7 @@ public override void VisitSetTagHelperProperty(SetTagHelperPropertyIRNode node) { var variableCount = _classDeclaration.Children.Count - _variableCountOffset; var preAllocatedAttributeVariableName = PreAllocatedAttributeVariablePrefix + variableCount; - declaration = new DeclarePreallocatedTagHelperAttributeIRNode + declaration = new DeclarePreallocatedTagHelperAttributeIntermediateNode { VariableName = preAllocatedAttributeVariableName, Name = node.AttributeName, @@ -129,7 +129,7 @@ public override void VisitSetTagHelperProperty(SetTagHelperPropertyIRNode node) _classDeclaration.Children.Insert(_preallocatedDeclarationCount++, declaration); } - var setPreallocatedProperty = new SetPreallocatedTagHelperPropertyIRNode + var setPreallocatedProperty = new SetPreallocatedTagHelperPropertyIntermediateNode { VariableName = declaration.VariableName, AttributeName = node.AttributeName, @@ -144,12 +144,12 @@ public override void VisitSetTagHelperProperty(SetTagHelperPropertyIRNode node) Parent.Children[nodeIndex] = setPreallocatedProperty; } - private string GetContent(HtmlContentIRNode node) + private string GetContent(HtmlContentIntermediateNode node) { var builder = new StringBuilder(); for (var i = 0; i < node.Children.Count; i++) { - if (node.Children[i] is RazorIRToken token && token.IsHtml) + if (node.Children[i] is IntermediateToken token && token.IsHtml) { builder.Append(token.Content); } diff --git a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ReadOnlyDiagnosticCollection.cs b/src/Microsoft.AspNetCore.Razor.Language/ReadOnlyDiagnosticCollection.cs similarity index 98% rename from src/Microsoft.AspNetCore.Razor.Language/Intermediate/ReadOnlyDiagnosticCollection.cs rename to src/Microsoft.AspNetCore.Razor.Language/ReadOnlyDiagnosticCollection.cs index ab50f9be4..775ef49a9 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Intermediate/ReadOnlyDiagnosticCollection.cs +++ b/src/Microsoft.AspNetCore.Razor.Language/ReadOnlyDiagnosticCollection.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; using System.Linq; -namespace Microsoft.AspNetCore.Razor.Language.Intermediate +namespace Microsoft.AspNetCore.Razor.Language { public sealed class ReadOnlyDiagnosticCollection : RazorDiagnosticCollection { diff --git a/src/Microsoft.AspNetCore.Razor.Language/Resources.resx b/src/Microsoft.AspNetCore.Razor.Language/Resources.resx index 5f1f9562d..f1ab0f067 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/Resources.resx +++ b/src/Microsoft.AspNetCore.Razor.Language/Resources.resx @@ -129,7 +129,7 @@ Invalid tag helper directive '{0}' value. '{1}' is not allowed in prefix '{2}'. - + The '{0}' operation is not valid when the builder is empty. @@ -216,13 +216,13 @@ The key must not be null. - + The reference is invalid. The node '{0}' could not be found as a child of '{1}'. - + The reference is invalid. References initialized with the default constructor cannot modify nodes. - + The node '{0}' has a read-only child collection and cannot be modified. \ No newline at end of file diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/AssemblyAttributeInjectionPassTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/AssemblyAttributeInjectionPassTest.cs index d6ed09c90..0aa174b3b 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/AssemblyAttributeInjectionPassTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/AssemblyAttributeInjectionPassTest.cs @@ -13,7 +13,7 @@ public class AssemblyAttributeInjectionPassTest public void Execute_NoOps_IfNamespaceNodeIsMissing() { // Arrange - var irDocument = new DocumentIRNode(); + var irDocument = new DocumentIntermediateNode(); var pass = new AssemblyAttributeInjectionPass { Engine = RazorEngine.Create(), @@ -30,9 +30,9 @@ public void Execute_NoOps_IfNamespaceNodeIsMissing() public void Execute_NoOps_IfNamespaceNodeHasEmptyContent() { // Arrange - var irDocument = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIRNode() { Content = string.Empty }; + var irDocument = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(irDocument); + var @namespace = new NamespaceDeclarationIntermediateNode() { Content = string.Empty }; @namespace.Annotations[CommonAnnotations.PrimaryNamespace] = CommonAnnotations.PrimaryNamespace; builder.Push(@namespace); @@ -53,9 +53,9 @@ public void Execute_NoOps_IfNamespaceNodeHasEmptyContent() public void Execute_NoOps_IfClassNameNodeIsMissing() { // Arrange - var irDocument = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIRNode() { Content = "SomeNamespace" }; + var irDocument = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(irDocument); + var @namespace = new NamespaceDeclarationIntermediateNode() { Content = "SomeNamespace" }; builder.Push(@namespace); var pass = new AssemblyAttributeInjectionPass @@ -75,9 +75,9 @@ public void Execute_NoOps_IfClassNameNodeIsMissing() public void Execute_NoOps_IfClassNameIsEmpty() { // Arrange - var irDocument = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIRNode + var irDocument = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(irDocument); + var @namespace = new NamespaceDeclarationIntermediateNode { Content = "SomeNamespace", Annotations = @@ -86,7 +86,7 @@ public void Execute_NoOps_IfClassNameIsEmpty() }, }; builder.Push(@namespace); - var @class = new ClassDeclarationIRNode + var @class = new ClassDeclarationIntermediateNode { Annotations = { @@ -112,14 +112,14 @@ public void Execute_NoOps_IfClassNameIsEmpty() public void Execute_NoOps_IfDocumentIsNotViewOrPage() { // Arrange - var irDocument = new DocumentIRNode + var irDocument = new DocumentIntermediateNode { DocumentKind = "Default", }; - var builder = RazorIRBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIRNode() { Content = "SomeNamespace" }; + var builder = IntermediateNodeBuilder.Create(irDocument); + var @namespace = new NamespaceDeclarationIntermediateNode() { Content = "SomeNamespace" }; builder.Push(@namespace); - var @class = new ClassDeclarationIRNode + var @class = new ClassDeclarationIntermediateNode { Name = "SomeName", Annotations = @@ -147,12 +147,12 @@ public void Execute_AddsRazorViewAttribute_ToViews() { // Arrange var expectedAttribute = "[assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(@\"/Views/Index.cshtml\", typeof(SomeNamespace.SomeName))]"; - var irDocument = new DocumentIRNode + var irDocument = new DocumentIntermediateNode { DocumentKind = MvcViewDocumentClassifierPass.MvcViewDocumentKind, }; - var builder = RazorIRBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIRNode + var builder = IntermediateNodeBuilder.Create(irDocument); + var @namespace = new NamespaceDeclarationIntermediateNode { Content = "SomeNamespace", Annotations = @@ -161,7 +161,7 @@ public void Execute_AddsRazorViewAttribute_ToViews() }, }; builder.Push(@namespace); - var @class = new ClassDeclarationIRNode + var @class = new ClassDeclarationIntermediateNode { Name = "SomeName", Annotations = @@ -185,9 +185,9 @@ public void Execute_AddsRazorViewAttribute_ToViews() Assert.Collection(irDocument.Children, node => { - var csharpCode = Assert.IsType(node); - var token = Assert.IsType(Assert.Single(csharpCode.Children)); - Assert.Equal(RazorIRToken.TokenKind.CSharp, token.Kind); + var csharpCode = Assert.IsType(node); + var token = Assert.IsType(Assert.Single(csharpCode.Children)); + Assert.Equal(IntermediateToken.TokenKind.CSharp, token.Kind); Assert.Equal(expectedAttribute, token.Content); }, node => Assert.Same(@namespace, node)); @@ -198,12 +198,12 @@ public void Execute_EscapesViewPathWhenAddingAttributeToViews() { // Arrange var expectedAttribute = "[assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(@\"\\test\\\"\"Index.cshtml\", typeof(SomeNamespace.SomeName))]"; - var irDocument = new DocumentIRNode + var irDocument = new DocumentIntermediateNode { DocumentKind = MvcViewDocumentClassifierPass.MvcViewDocumentKind, }; - var builder = RazorIRBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIRNode + var builder = IntermediateNodeBuilder.Create(irDocument); + var @namespace = new NamespaceDeclarationIntermediateNode { Content = "SomeNamespace", Annotations = @@ -212,7 +212,7 @@ public void Execute_EscapesViewPathWhenAddingAttributeToViews() }, }; builder.Push(@namespace); - var @class = new ClassDeclarationIRNode + var @class = new ClassDeclarationIntermediateNode { Name = "SomeName", Annotations = @@ -236,9 +236,9 @@ public void Execute_EscapesViewPathWhenAddingAttributeToViews() Assert.Collection(irDocument.Children, node => { - var csharpCode = Assert.IsType(node); - var token = Assert.IsType(Assert.Single(csharpCode.Children)); - Assert.Equal(RazorIRToken.TokenKind.CSharp, token.Kind); + var csharpCode = Assert.IsType(node); + var token = Assert.IsType(Assert.Single(csharpCode.Children)); + Assert.Equal(IntermediateToken.TokenKind.CSharp, token.Kind); Assert.Equal(expectedAttribute, token.Content); }, node => Assert.Same(@namespace, node)); @@ -249,18 +249,18 @@ public void Execute_AddsRazorPagettribute_ToPage() { // Arrange var expectedAttribute = "[assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(@\"/Views/Index.cshtml\", typeof(SomeNamespace.SomeName), null)]"; - var irDocument = new DocumentIRNode + var irDocument = new DocumentIntermediateNode { DocumentKind = RazorPageDocumentClassifierPass.RazorPageDocumentKind, }; - var builder = RazorIRBuilder.Create(irDocument); - var pageDirective = new DirectiveIRNode + var builder = IntermediateNodeBuilder.Create(irDocument); + var pageDirective = new DirectiveIntermediateNode { Descriptor = PageDirective.Directive, }; builder.Add(pageDirective); - var @namespace = new NamespaceDeclarationIRNode + var @namespace = new NamespaceDeclarationIntermediateNode { Content = "SomeNamespace", Annotations = @@ -269,7 +269,7 @@ public void Execute_AddsRazorPagettribute_ToPage() }, }; builder.Push(@namespace); - var @class = new ClassDeclarationIRNode + var @class = new ClassDeclarationIntermediateNode { Name = "SomeName", Annotations = @@ -294,9 +294,9 @@ public void Execute_AddsRazorPagettribute_ToPage() node => Assert.Same(pageDirective, node), node => { - var csharpCode = Assert.IsType(node); - var token = Assert.IsType(Assert.Single(csharpCode.Children)); - Assert.Equal(RazorIRToken.TokenKind.CSharp, token.Kind); + var csharpCode = Assert.IsType(node); + var token = Assert.IsType(Assert.Single(csharpCode.Children)); + Assert.Equal(IntermediateToken.TokenKind.CSharp, token.Kind); Assert.Equal(expectedAttribute, token.Content); }, node => Assert.Same(@namespace, node)); @@ -307,12 +307,12 @@ public void Execute_EscapesViewPathAndRouteWhenAddingAttributeToPage() { // Arrange var expectedAttribute = "[assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(@\"\\test\\\"\"Index.cshtml\", typeof(SomeNamespace.SomeName))]"; - var irDocument = new DocumentIRNode + var irDocument = new DocumentIntermediateNode { DocumentKind = MvcViewDocumentClassifierPass.MvcViewDocumentKind, }; - var builder = RazorIRBuilder.Create(irDocument); - var @namespace = new NamespaceDeclarationIRNode + var builder = IntermediateNodeBuilder.Create(irDocument); + var @namespace = new NamespaceDeclarationIntermediateNode { Content = "SomeNamespace", Annotations = @@ -321,7 +321,7 @@ public void Execute_EscapesViewPathAndRouteWhenAddingAttributeToPage() }, }; builder.Push(@namespace); - var @class = new ClassDeclarationIRNode + var @class = new ClassDeclarationIntermediateNode { Name = "SomeName", Annotations = @@ -346,9 +346,9 @@ public void Execute_EscapesViewPathAndRouteWhenAddingAttributeToPage() Assert.Collection(irDocument.Children, node => { - var csharpCode = Assert.IsType(node); - var token = Assert.IsType(Assert.Single(csharpCode.Children)); - Assert.Equal(RazorIRToken.TokenKind.CSharp, token.Kind); + var csharpCode = Assert.IsType(node); + var token = Assert.IsType(Assert.Single(csharpCode.Children)); + Assert.Equal(IntermediateToken.TokenKind.CSharp, token.Kind); Assert.Equal(expectedAttribute, token.Content); }, node => Assert.Same(@namespace, node)); @@ -363,7 +363,7 @@ private RazorEngine CreateEngine() }); } - private DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) + private DocumentIntermediateNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) { for (var i = 0; i < engine.Phases.Count; i++) { @@ -376,7 +376,7 @@ private DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument co } } - return codeDocument.GetIRDocument(); + return codeDocument.GetDocumentIntermediateNode(); } } } diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InjectDirectiveTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InjectDirectiveTest.cs index 74aff230e..e58f34065 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InjectDirectiveTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InjectDirectiveTest.cs @@ -34,7 +34,7 @@ @inject PropertyType PropertyName Assert.NotNull(@class); Assert.Equal(2, @class.Children.Count); - var node = Assert.IsType(@class.Children[1]); + var node = Assert.IsType(@class.Children[1]); Assert.Equal("PropertyType", node.TypeName); Assert.Equal("PropertyName", node.MemberName); } @@ -64,7 +64,7 @@ @inject PropertyType2 PropertyName Assert.NotNull(@class); Assert.Equal(2, @class.Children.Count); - var node = Assert.IsType(@class.Children[1]); + var node = Assert.IsType(@class.Children[1]); Assert.Equal("PropertyType2", node.TypeName); Assert.Equal("PropertyName", node.MemberName); } @@ -93,7 +93,7 @@ @inject PropertyType PropertyName Assert.NotNull(@class); Assert.Equal(2, @class.Children.Count); - var node = Assert.IsType(@class.Children[1]); + var node = Assert.IsType(@class.Children[1]); Assert.Equal("PropertyType", node.TypeName); Assert.Equal("PropertyName", node.MemberName); } @@ -123,7 +123,7 @@ @inject PropertyType PropertyName Assert.NotNull(@class); Assert.Equal(2, @class.Children.Count); - var node = Assert.IsType(@class.Children[1]); + var node = Assert.IsType(@class.Children[1]); Assert.Equal("PropertyType", node.TypeName); Assert.Equal("PropertyName", node.MemberName); } @@ -153,7 +153,7 @@ @model ModelType Assert.NotNull(@class); Assert.Equal(2, @class.Children.Count); - var node = Assert.IsType(@class.Children[1]); + var node = Assert.IsType(@class.Children[1]); Assert.Equal("PropertyType", node.TypeName); Assert.Equal("PropertyName", node.MemberName); } @@ -164,7 +164,7 @@ private RazorCodeDocument CreateDocument(string content) return RazorCodeDocument.Create(source); } - private ClassDeclarationIRNode FindClassNode(RazorIRNode node) + private ClassDeclarationIntermediateNode FindClassNode(IntermediateNode node) { var visitor = new ClassNodeVisitor(); visitor.Visit(node); @@ -181,7 +181,7 @@ private RazorEngine CreateEngine() }); } - private DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) + private DocumentIntermediateNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) { for (var i = 0; i < engine.Phases.Count; i++) { @@ -194,16 +194,16 @@ private DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument co } } - return codeDocument.GetIRDocument(); + return codeDocument.GetDocumentIntermediateNode(); } - private string GetCSharpContent(RazorIRNode node) + private string GetCSharpContent(IntermediateNode node) { var builder = new StringBuilder(); for (var i = 0; i < node.Children.Count; i++) { - var child = node.Children[i] as RazorIRToken; - if (child.Kind == RazorIRToken.TokenKind.CSharp) + var child = node.Children[i] as IntermediateToken; + if (child.Kind == IntermediateToken.TokenKind.CSharp) { builder.Append(child.Content); } @@ -212,11 +212,11 @@ private string GetCSharpContent(RazorIRNode node) return builder.ToString(); } - private class ClassNodeVisitor : RazorIRNodeWalker + private class ClassNodeVisitor : IntermediateNodeWalker { - public ClassDeclarationIRNode Node { get; set; } + public ClassDeclarationIntermediateNode Node { get; set; } - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { Node = node; } diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InjectDirectiveTargetExtensionTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InjectTargetExtensionTest.cs similarity index 89% rename from test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InjectDirectiveTargetExtensionTest.cs rename to test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InjectTargetExtensionTest.cs index 6ddc38b89..99e27e068 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InjectDirectiveTargetExtensionTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InjectTargetExtensionTest.cs @@ -9,15 +9,15 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { - public class InjectDirectiveTargetExtensionTest + public class InjectTargetExtensionTest { [Fact] public void InjectDirectiveTargetExtension_WritesProperty() { // Arrange var context = GetRenderingContext(); - var target = new InjectDirectiveTargetExtension(); - var node = new InjectDirectiveIRNode() + var target = new InjectTargetExtension(); + var node = new InjectIntermediateNode() { TypeName = "PropertyType", MemberName = "PropertyName", @@ -38,8 +38,8 @@ public void InjectDirectiveTargetExtension_WritesPropertyWithLinePragma_WhenSour { // Arrange var context = GetRenderingContext(); - var target = new InjectDirectiveTargetExtension(); - var node = new InjectDirectiveIRNode() + var target = new InjectTargetExtension(); + var node = new InjectIntermediateNode() { TypeName = "PropertyType", MemberName = "PropertyName", diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InstrumentationPassTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InstrumentationPassTest.cs index 96fcbd57a..a18fd2b5a 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InstrumentationPassTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/InstrumentationPassTest.cs @@ -4,7 +4,7 @@ using Microsoft.AspNetCore.Razor.Language; using Microsoft.AspNetCore.Razor.Language.Intermediate; using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.RazorIRAssert; +using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; namespace Microsoft.AspNetCore.Mvc.Razor.Extensions { @@ -14,17 +14,17 @@ public class InstrumentationPassTest public void InstrumentationPass_InstrumentsHtml() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); - builder.Push(new HtmlContentIRNode() + builder.Push(new HtmlContentIntermediateNode() { Source = CreateSource(1), }); - builder.Add(new RazorIRToken() + builder.Add(new IntermediateToken() { Content = "Hi", - Kind = RazorIRToken.TokenKind.Html, + Kind = IntermediateToken.TokenKind.Html, Source = CreateSource(1) }); builder.Pop(); @@ -41,7 +41,7 @@ public void InstrumentationPass_InstrumentsHtml() Children( document, n => BeginInstrumentation("1, 1, true", n), - n => RazorIRAssert.Html("Hi", n), + n => IntermediateNodeAssert.Html("Hi", n), n => EndInstrumentation(n)); } @@ -49,13 +49,13 @@ public void InstrumentationPass_InstrumentsHtml() public void InstrumentationPass_SkipsHtml_WithoutLocation() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); - builder.Push(new HtmlContentIRNode()); - builder.Add(new RazorIRToken() + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); + builder.Push(new HtmlContentIntermediateNode()); + builder.Add(new IntermediateToken() { Content = "Hi", - Kind = RazorIRToken.TokenKind.Html, + Kind = IntermediateToken.TokenKind.Html, }); builder.Pop(); @@ -70,23 +70,23 @@ public void InstrumentationPass_SkipsHtml_WithoutLocation() // Assert Children( document, - n => RazorIRAssert.Html("Hi", n)); + n => IntermediateNodeAssert.Html("Hi", n)); } [Fact] public void InstrumentationPass_InstrumentsCSharpExpression() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); - builder.Push(new CSharpExpressionIRNode() + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); + builder.Push(new CSharpExpressionIntermediateNode() { Source = CreateSource(2), }); - builder.Add(new RazorIRToken() + builder.Add(new IntermediateToken() { Content = "Hi", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); var pass = new InstrumentationPass() @@ -109,13 +109,13 @@ public void InstrumentationPass_InstrumentsCSharpExpression() public void InstrumentationPass_SkipsCSharpExpression_WithoutLocation() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); - builder.Push(new CSharpExpressionIRNode()); - builder.Add(new RazorIRToken() + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); + builder.Push(new CSharpExpressionIntermediateNode()); + builder.Add(new IntermediateToken() { Content = "Hi", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); var pass = new InstrumentationPass() @@ -136,21 +136,21 @@ public void InstrumentationPass_SkipsCSharpExpression_WithoutLocation() public void InstrumentationPass_SkipsCSharpExpression_InsideTagHelperAttribute() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); - builder.Push(new TagHelperIRNode()); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); + builder.Push(new TagHelperIntermediateNode()); - builder.Push(new AddTagHelperHtmlAttributeIRNode()); + builder.Push(new AddTagHelperHtmlAttributeIntermediateNode()); - builder.Push(new CSharpExpressionIRNode() + builder.Push(new CSharpExpressionIntermediateNode() { Source = CreateSource(5) }); - builder.Add(new RazorIRToken() + builder.Add(new IntermediateToken() { Content = "Hi", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); var pass = new InstrumentationPass() @@ -166,12 +166,12 @@ public void InstrumentationPass_SkipsCSharpExpression_InsideTagHelperAttribute() document, n => { - Assert.IsType(n); + Assert.IsType(n); Children( n, c => { - Assert.IsType(c); + Assert.IsType(c); Children( c, s => CSharpExpression("Hi", s)); @@ -183,21 +183,21 @@ public void InstrumentationPass_SkipsCSharpExpression_InsideTagHelperAttribute() public void InstrumentationPass_SkipsCSharpExpression_InsideTagHelperProperty() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); - builder.Push(new TagHelperIRNode()); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); + builder.Push(new TagHelperIntermediateNode()); - builder.Push(new SetTagHelperPropertyIRNode()); + builder.Push(new SetTagHelperPropertyIntermediateNode()); - builder.Push(new CSharpExpressionIRNode() + builder.Push(new CSharpExpressionIntermediateNode() { Source = CreateSource(5) }); - builder.Add(new RazorIRToken() + builder.Add(new IntermediateToken() { Content = "Hi", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); var pass = new InstrumentationPass() @@ -213,12 +213,12 @@ public void InstrumentationPass_SkipsCSharpExpression_InsideTagHelperProperty() document, n => { - Assert.IsType(n); + Assert.IsType(n); Children( n, c => { - Assert.IsType(c); + Assert.IsType(c); Children( c, s => CSharpExpression("Hi", s)); @@ -230,9 +230,9 @@ public void InstrumentationPass_SkipsCSharpExpression_InsideTagHelperProperty() public void InstrumentationPass_InstrumentsTagHelper() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); - builder.Add(new TagHelperIRNode() + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); + builder.Add(new TagHelperIntermediateNode() { Source = CreateSource(3), }); @@ -249,7 +249,7 @@ public void InstrumentationPass_InstrumentsTagHelper() Children( document, n => BeginInstrumentation("3, 3, false", n), - n => Assert.IsType(n), + n => Assert.IsType(n), n => EndInstrumentation(n)); } @@ -257,9 +257,9 @@ public void InstrumentationPass_InstrumentsTagHelper() public void InstrumentationPass_SkipsTagHelper_WithoutLocation() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); - builder.Push(new TagHelperIRNode()); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); + builder.Push(new TagHelperIntermediateNode()); var pass = new InstrumentationPass() { @@ -272,7 +272,7 @@ public void InstrumentationPass_SkipsTagHelper_WithoutLocation() // Assert Children( document, - n => Assert.IsType(n)); + n => Assert.IsType(n)); } private SourceSpan CreateSource(int number) diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/IntegrationTests/CodeGenerationIntegrationTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/IntegrationTests/CodeGenerationIntegrationTest.cs index d8a93ef06..9dde781d7 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/IntegrationTests/CodeGenerationIntegrationTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/IntegrationTests/CodeGenerationIntegrationTest.cs @@ -513,7 +513,7 @@ private void RunRuntimeTest( engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument()); AssertDocumentCompiles(document, compilationReferences, expectedErrors); } @@ -530,7 +530,7 @@ private void RunDesignTimeTest( engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument()); AssertLineMappingsMatchBaseline(document); AssertDocumentCompiles(document, compilationReferences, expectedErrors); diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/IntegrationTests/InstrumentationPassIntegrationTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/IntegrationTests/InstrumentationPassIntegrationTest.cs index 5d7bf3ed1..505986989 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/IntegrationTests/InstrumentationPassIntegrationTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/IntegrationTests/InstrumentationPassIntegrationTest.cs @@ -58,7 +58,7 @@ public void BasicTest() engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); var csharpDocument = document.GetCSharpDocument(); AssertCSharpDocumentMatchesBaseline(csharpDocument); diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelDirectiveTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelDirectiveTest.cs index f2369e2cf..97b0767de 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelDirectiveTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelDirectiveTest.cs @@ -180,7 +180,7 @@ @inherits BaseType Assert.Equal("BaseType", @class.BaseType); var @namespace = FindNamespaceNode(irDocument); - var usingNode = Assert.IsType(@namespace.Children[0]); + var usingNode = Assert.IsType(@namespace.Children[0]); Assert.Equal($"TModel = global::{typeof(object).FullName}", usingNode.Content); } @@ -210,7 +210,7 @@ @model SomeType Assert.Equal("BaseType", @class.BaseType); var @namespace = FindNamespaceNode(irDocument); - var usingNode = Assert.IsType(@namespace.Children[0]); + var usingNode = Assert.IsType(@namespace.Children[0]); Assert.Equal($"TModel = global::System.Object", usingNode.Content); } @@ -220,14 +220,14 @@ private RazorCodeDocument CreateDocument(string content) return RazorCodeDocument.Create(source); } - private ClassDeclarationIRNode FindClassNode(RazorIRNode node) + private ClassDeclarationIntermediateNode FindClassNode(IntermediateNode node) { var visitor = new ClassNodeVisitor(); visitor.Visit(node); return visitor.Node; } - private NamespaceDeclarationIRNode FindNamespaceNode(RazorIRNode node) + private NamespaceDeclarationIntermediateNode FindNamespaceNode(IntermediateNode node) { var visitor = new NamespaceNodeVisitor(); visitor.Visit(node); @@ -246,7 +246,7 @@ private RazorEngine CreateEngine() }); } - private DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) + private DocumentIntermediateNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) { for (var i = 0; i < engine.Phases.Count; i++) { @@ -259,16 +259,16 @@ private DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument co } } - return codeDocument.GetIRDocument(); + return codeDocument.GetDocumentIntermediateNode(); } - private string GetCSharpContent(RazorIRNode node) + private string GetCSharpContent(IntermediateNode node) { var builder = new StringBuilder(); for (var i = 0; i < node.Children.Count; i++) { - var child = node.Children[i] as RazorIRToken; - if (child.Kind == RazorIRToken.TokenKind.CSharp) + var child = node.Children[i] as IntermediateToken; + if (child.Kind == IntermediateToken.TokenKind.CSharp) { builder.Append(child.Content); } @@ -277,21 +277,21 @@ private string GetCSharpContent(RazorIRNode node) return builder.ToString(); } - private class ClassNodeVisitor : RazorIRNodeWalker + private class ClassNodeVisitor : IntermediateNodeWalker { - public ClassDeclarationIRNode Node { get; set; } + public ClassDeclarationIntermediateNode Node { get; set; } - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { Node = node; } } - private class NamespaceNodeVisitor : RazorIRNodeWalker + private class NamespaceNodeVisitor : IntermediateNodeWalker { - public NamespaceDeclarationIRNode Node { get; set; } + public NamespaceDeclarationIntermediateNode Node { get; set; } - public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) + public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) { Node = node; } diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelExpressionPassTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelExpressionPassTest.cs index 1aaa9066d..b44515e3a 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelExpressionPassTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ModelExpressionPassTest.cs @@ -46,9 +46,9 @@ public void ModelExpressionPass_NonModelExpressionProperty_Ignored() // Assert var tagHelper = FindTagHelperNode(irDocument); - var setProperty = tagHelper.Children.OfType().Single(); + var setProperty = tagHelper.Children.OfType().Single(); - var token = Assert.IsType(Assert.Single(setProperty.Children)); + var token = Assert.IsType(Assert.Single(setProperty.Children)); Assert.True(token.IsCSharp); Assert.Equal("17", token.Content); } @@ -87,13 +87,13 @@ public void ModelExpressionPass_ModelExpressionProperty_SimpleExpression() // Assert var tagHelper = FindTagHelperNode(irDocument); - var setProperty = tagHelper.Children.OfType().Single(); + var setProperty = tagHelper.Children.OfType().Single(); - var expression = Assert.IsType(Assert.Single(setProperty.Children)); + var expression = Assert.IsType(Assert.Single(setProperty.Children)); Assert.Equal("ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Bar)", GetCSharpContent(expression)); - var originalNode = Assert.IsType(expression.Children[2]); - Assert.Equal(RazorIRToken.TokenKind.CSharp, originalNode.Kind); + var originalNode = Assert.IsType(expression.Children[2]); + Assert.Equal(IntermediateToken.TokenKind.CSharp, originalNode.Kind); Assert.Equal("Bar", originalNode.Content); Assert.Equal(new SourceSpan("test.cshtml", 51, 1, 8, 3), originalNode.Source.Value); } @@ -132,13 +132,13 @@ public void ModelExpressionPass_ModelExpressionProperty_ComplexExpression() // Assert var tagHelper = FindTagHelperNode(irDocument); - var setProperty = tagHelper.Children.OfType().Single(); + var setProperty = tagHelper.Children.OfType().Single(); - var expression = Assert.IsType(Assert.Single(setProperty.Children)); + var expression = Assert.IsType(Assert.Single(setProperty.Children)); Assert.Equal("ModelExpressionProvider.CreateModelExpression(ViewData, __model => Bar)", GetCSharpContent(expression)); - var originalNode = Assert.IsType(expression.Children[1]); - Assert.Equal(RazorIRToken.TokenKind.CSharp, originalNode.Kind); + var originalNode = Assert.IsType(expression.Children[1]); + Assert.Equal(IntermediateToken.TokenKind.CSharp, originalNode.Kind); Assert.Equal("Bar", originalNode.Content); Assert.Equal(new SourceSpan("test.cshtml", 52, 1, 9, 3), originalNode.Source.Value); } @@ -157,7 +157,7 @@ private RazorEngine CreateEngine(params TagHelperDescriptor[] tagHelpers) }); } - private DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) + private DocumentIntermediateNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) { for (var i = 0; i < engine.Phases.Count; i++) { @@ -170,23 +170,23 @@ private DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument co } } - return codeDocument.GetIRDocument(); + return codeDocument.GetDocumentIntermediateNode(); } - private TagHelperIRNode FindTagHelperNode(RazorIRNode node) + private TagHelperIntermediateNode FindTagHelperNode(IntermediateNode node) { var visitor = new TagHelperNodeVisitor(); visitor.Visit(node); return visitor.Node; } - private string GetCSharpContent(RazorIRNode node) + private string GetCSharpContent(IntermediateNode node) { var builder = new StringBuilder(); for (var i = 0; i < node.Children.Count; i++) { - var child = node.Children[i] as RazorIRToken; - if (child.Kind == RazorIRToken.TokenKind.CSharp) + var child = node.Children[i] as IntermediateToken; + if (child.Kind == IntermediateToken.TokenKind.CSharp) { builder.Append(child.Content); } @@ -195,11 +195,11 @@ private string GetCSharpContent(RazorIRNode node) return builder.ToString(); } - private class TagHelperNodeVisitor : RazorIRNodeWalker + private class TagHelperNodeVisitor : IntermediateNodeWalker { - public TagHelperIRNode Node { get; set; } + public TagHelperIntermediateNode Node { get; set; } - public override void VisitTagHelper(TagHelperIRNode node) + public override void VisitTagHelper(TagHelperIntermediateNode node) { Node = node; } diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs index 4180601bb..4183e772c 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/MvcViewDocumentClassifierPassTest.cs @@ -198,42 +198,42 @@ private static RazorCodeDocument CreateDocument(string content, string filePath private static RazorEngine CreateEngine() => RazorEngine.Create(); - private static DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) + private static DocumentIntermediateNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) { for (var i = 0; i < engine.Phases.Count; i++) { var phase = engine.Phases[i]; phase.Execute(codeDocument); - if (phase is IRazorIRLoweringPhase) + if (phase is IRazorIntermediateNodeLoweringPhase) { break; } } - return codeDocument.GetIRDocument(); + return codeDocument.GetDocumentIntermediateNode(); } - private class Visitor : RazorIRNodeWalker + private class Visitor : IntermediateNodeWalker { - public NamespaceDeclarationIRNode Namespace { get; private set; } + public NamespaceDeclarationIntermediateNode Namespace { get; private set; } - public ClassDeclarationIRNode Class { get; private set; } + public ClassDeclarationIntermediateNode Class { get; private set; } - public MethodDeclarationIRNode Method { get; private set; } + public MethodDeclarationIntermediateNode Method { get; private set; } - public override void VisitMethodDeclaration(MethodDeclarationIRNode node) + public override void VisitMethodDeclaration(MethodDeclarationIntermediateNode node) { Method = node; } - public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) + public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) { Namespace = node; base.VisitNamespaceDeclaration(node); } - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { Class = node; base.VisitClassDeclaration(node); diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/NamespaceDirectiveTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/NamespaceDirectiveTest.cs index 0a578de34..fcde9715c 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/NamespaceDirectiveTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/NamespaceDirectiveTest.cs @@ -15,7 +15,7 @@ public void TryComputeNamespace_IncompleteDirective_UsesEmptyNamespace() // Arrange var source = "c:\\foo\\bar\\bleh.cshtml"; var imports = "c:\\foo\\baz\\bleh.cshtml"; - var node = new DirectiveIRNode() + var node = new DirectiveIntermediateNode() { Descriptor = NamespaceDirective.Directive, Source = new SourceSpan(imports, 0, 0, 0, 0), @@ -35,12 +35,12 @@ public void TryComputeNamespace_EmptyDirective_UsesEmptyNamespace() // Arrange var source = "c:\\foo\\bar\\bleh.cshtml"; var imports = "c:\\foo\\baz\\bleh.cshtml"; - var node = new DirectiveIRNode() + var node = new DirectiveIntermediateNode() { Descriptor = NamespaceDirective.Directive, Source = new SourceSpan(imports, 0, 0, 0, 0), }; - node.Children.Add(new DirectiveTokenIRNode() { Content = string.Empty }); + node.Children.Add(new DirectiveTokenIntermediateNode() { Content = string.Empty }); // Act var computed = NamespaceDirective.TryComputeNamespace(source, node, out var @namespace); @@ -63,13 +63,13 @@ public void TryComputeNamespace_EmptyDirective_UsesEmptyNamespace() public void TryComputeNamespace_ForNonRelatedFiles_UsesNamespaceVerbatim(string source, string imports) { // Arrange - var node = new DirectiveIRNode() + var node = new DirectiveIntermediateNode() { Descriptor = NamespaceDirective.Directive, Source = new SourceSpan(imports, 0, 0, 0, 0), }; - node.Children.Add(new DirectiveTokenIRNode() { Content = "Base" }); + node.Children.Add(new DirectiveTokenIntermediateNode() { Content = "Base" }); // Act var computed = NamespaceDirective.TryComputeNamespace(source, node, out var @namespace); @@ -93,13 +93,13 @@ public void TryComputeNamespace_ForNonRelatedFiles_UsesNamespaceVerbatim(string public void TryComputeNamespace_ForRelatedFiles_ComputesNamespaceWithSuffix(string source, string imports, string expected) { // Arrange - var node = new DirectiveIRNode() + var node = new DirectiveIntermediateNode() { Descriptor = NamespaceDirective.Directive, Source = new SourceSpan(imports, 0, 0, 0, 0), }; - node.Children.Add(new DirectiveTokenIRNode() { Content = "Base" }); + node.Children.Add(new DirectiveTokenIntermediateNode() { Content = "Base" }); // Act var computed = NamespaceDirective.TryComputeNamespace(source, node, out var @namespace); @@ -114,21 +114,21 @@ public void TryComputeNamespace_ForRelatedFiles_ComputesNamespaceWithSuffix(stri public void Pass_SetsNamespaceAndClassName_ComputedFromImports() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); - builder.Push(new DirectiveIRNode() + builder.Push(new DirectiveIntermediateNode() { Descriptor = NamespaceDirective.Directive, Source = new SourceSpan("/Account/_ViewImports.cshtml", 0, 0, 0, 0), }); - builder.Add(new DirectiveTokenIRNode() { Content = "WebApplication.Account" }); + builder.Add(new DirectiveTokenIntermediateNode() { Content = "WebApplication.Account" }); builder.Pop(); - var @namespace = new NamespaceDeclarationIRNode() { Content = "default" }; + var @namespace = new NamespaceDeclarationIntermediateNode() { Content = "default" }; builder.Push(@namespace); - var @class = new ClassDeclarationIRNode() { Name = "default" }; + var @class = new ClassDeclarationIntermediateNode() { Name = "default" }; builder.Add(@class); document.DocumentKind = RazorPageDocumentClassifierPass.RazorPageDocumentKind; @@ -151,31 +151,31 @@ public void Pass_SetsNamespaceAndClassName_ComputedFromImports() public void Pass_SetsNamespaceAndClassName_ComputedFromSource() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); // This will be ignored. - builder.Push(new DirectiveIRNode() + builder.Push(new DirectiveIntermediateNode() { Descriptor = NamespaceDirective.Directive, Source = new SourceSpan("/Account/_ViewImports.cshtml", 0, 0, 0, 0), }); - builder.Add(new DirectiveTokenIRNode() { Content = "ignored" }); + builder.Add(new DirectiveTokenIntermediateNode() { Content = "ignored" }); builder.Pop(); // This will be used. - builder.Push(new DirectiveIRNode() + builder.Push(new DirectiveIntermediateNode() { Descriptor = NamespaceDirective.Directive, Source = new SourceSpan("/Account/Manage/AddUser.cshtml", 0, 0, 0, 0), }); - builder.Add(new DirectiveTokenIRNode() { Content = "WebApplication.Account.Manage" }); + builder.Add(new DirectiveTokenIntermediateNode() { Content = "WebApplication.Account.Manage" }); builder.Pop(); - var @namespace = new NamespaceDeclarationIRNode() { Content = "default" }; + var @namespace = new NamespaceDeclarationIntermediateNode() { Content = "default" }; builder.Push(@namespace); - var @class = new ClassDeclarationIRNode() { Name = "default" }; + var @class = new ClassDeclarationIntermediateNode() { Name = "default" }; builder.Add(@class); document.DocumentKind = RazorPageDocumentClassifierPass.RazorPageDocumentKind; @@ -199,21 +199,21 @@ public void Pass_SetsNamespaceAndClassName_ComputedFromSource() public void Pass_SetsNamespaceAndClassName_SanitizesClassAndNamespace() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); - builder.Push(new DirectiveIRNode() + builder.Push(new DirectiveIntermediateNode() { Descriptor = NamespaceDirective.Directive, Source = new SourceSpan("/Account/_ViewImports.cshtml", 0, 0, 0, 0), }); - builder.Add(new DirectiveTokenIRNode() { Content = "WebApplication.Account" }); + builder.Add(new DirectiveTokenIntermediateNode() { Content = "WebApplication.Account" }); builder.Pop(); - var @namespace = new NamespaceDeclarationIRNode() { Content = "default" }; + var @namespace = new NamespaceDeclarationIntermediateNode() { Content = "default" }; builder.Push(@namespace); - var @class = new ClassDeclarationIRNode() { Name = "default" }; + var @class = new ClassDeclarationIntermediateNode() { Name = "default" }; builder.Add(@class); document.DocumentKind = RazorPageDocumentClassifierPass.RazorPageDocumentKind; @@ -236,31 +236,31 @@ public void Pass_SetsNamespaceAndClassName_SanitizesClassAndNamespace() public void Pass_SetsNamespaceAndClassName_ComputedFromSource_ForView() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); // This will be ignored. - builder.Push(new DirectiveIRNode() + builder.Push(new DirectiveIntermediateNode() { Descriptor = NamespaceDirective.Directive, Source = new SourceSpan("/Account/_ViewImports.cshtml", 0, 0, 0, 0), }); - builder.Add(new DirectiveTokenIRNode() { Content = "ignored" }); + builder.Add(new DirectiveTokenIntermediateNode() { Content = "ignored" }); builder.Pop(); // This will be used. - builder.Push(new DirectiveIRNode() + builder.Push(new DirectiveIntermediateNode() { Descriptor = NamespaceDirective.Directive, Source = new SourceSpan("/Account/Manage/AddUser.cshtml", 0, 0, 0, 0), }); - builder.Add(new DirectiveTokenIRNode() { Content = "WebApplication.Account.Manage" }); + builder.Add(new DirectiveTokenIntermediateNode() { Content = "WebApplication.Account.Manage" }); builder.Pop(); - var @namespace = new NamespaceDeclarationIRNode() { Content = "default" }; + var @namespace = new NamespaceDeclarationIntermediateNode() { Content = "default" }; builder.Push(@namespace); - var @class = new ClassDeclarationIRNode() { Name = "default" }; + var @class = new ClassDeclarationIntermediateNode() { Name = "default" }; builder.Add(@class); document.DocumentKind = MvcViewDocumentClassifierPass.MvcViewDocumentKind; @@ -284,21 +284,21 @@ public void Pass_SetsNamespaceAndClassName_ComputedFromSource_ForView() public void Pass_SetsNamespaceButNotClassName_VerbatimFromImports() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); - builder.Push(new DirectiveIRNode() + builder.Push(new DirectiveIntermediateNode() { Descriptor = NamespaceDirective.Directive, Source = new SourceSpan(null, 0, 0, 0, 0), }); - builder.Add(new DirectiveTokenIRNode() { Content = "WebApplication.Account" }); + builder.Add(new DirectiveTokenIntermediateNode() { Content = "WebApplication.Account" }); builder.Pop(); - var @namespace = new NamespaceDeclarationIRNode() { Content = "default" }; + var @namespace = new NamespaceDeclarationIntermediateNode() { Content = "default" }; builder.Push(@namespace); - var @class = new ClassDeclarationIRNode() { Name = "default" }; + var @class = new ClassDeclarationIntermediateNode() { Name = "default" }; builder.Add(@class); document.DocumentKind = RazorPageDocumentClassifierPass.RazorPageDocumentKind; @@ -320,21 +320,21 @@ public void Pass_SetsNamespaceButNotClassName_VerbatimFromImports() public void Pass_DoesNothing_ForUnknownDocumentKind() { // Arrange - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); - builder.Push(new DirectiveIRNode() + builder.Push(new DirectiveIntermediateNode() { Descriptor = NamespaceDirective.Directive, Source = new SourceSpan(null, 0, 0, 0, 0), }); - builder.Add(new DirectiveTokenIRNode() { Content = "WebApplication.Account" }); + builder.Add(new DirectiveTokenIntermediateNode() { Content = "WebApplication.Account" }); builder.Pop(); - var @namespace = new NamespaceDeclarationIRNode() { Content = "default" }; + var @namespace = new NamespaceDeclarationIntermediateNode() { Content = "default" }; builder.Push(@namespace); - var @class = new ClassDeclarationIRNode() { Name = "default" }; + var @class = new ClassDeclarationIntermediateNode() { Name = "default" }; builder.Add(@class); document.DocumentKind = null; diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/PageDirectiveTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/PageDirectiveTest.cs index 8380727b3..3a3d97c88 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/PageDirectiveTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/PageDirectiveTest.cs @@ -90,7 +90,7 @@ private RazorEngine CreateEngine() }); } - private DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) + private DocumentIntermediateNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) { for (var i = 0; i < engine.Phases.Count; i++) { @@ -103,7 +103,7 @@ private DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument co } } - return codeDocument.GetIRDocument(); + return codeDocument.GetDocumentIntermediateNode(); } } } diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs index f7a9f1e1b..5c48e0681 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/RazorPageDocumentClassifierPassTest.cs @@ -224,42 +224,42 @@ private static RazorEngine CreateEngine() }); } - private static DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) + private static DocumentIntermediateNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) { for (var i = 0; i < engine.Phases.Count; i++) { var phase = engine.Phases[i]; phase.Execute(codeDocument); - if (phase is IRazorIRLoweringPhase) + if (phase is IRazorIntermediateNodeLoweringPhase) { break; } } - return codeDocument.GetIRDocument(); + return codeDocument.GetDocumentIntermediateNode(); } - private class Visitor : RazorIRNodeWalker + private class Visitor : IntermediateNodeWalker { - public NamespaceDeclarationIRNode Namespace { get; private set; } + public NamespaceDeclarationIntermediateNode Namespace { get; private set; } - public ClassDeclarationIRNode Class { get; private set; } + public ClassDeclarationIntermediateNode Class { get; private set; } - public MethodDeclarationIRNode Method { get; private set; } + public MethodDeclarationIntermediateNode Method { get; private set; } - public override void VisitMethodDeclaration(MethodDeclarationIRNode node) + public override void VisitMethodDeclaration(MethodDeclarationIntermediateNode node) { Method = node; } - public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) + public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) { Namespace = node; base.VisitNamespaceDeclaration(node); } - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { Class = node; base.VisitClassDeclaration(node); diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.ir.txt index fb917f748..724cae09b 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -26,37 +26,37 @@ Document - DirectiveToken - (729:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper, Microsoft.AspNetCore.Mvc.Razor DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [4] Basic.cshtml) - RazorIRToken - (0:0,0 [4] Basic.cshtml) - Html -
- RazorIRToken - (30:0,30 [23] Basic.cshtml) - Html - \n Hello world\n + IntermediateToken - (29:0,29 [1] Basic.cshtml) - Html - > + IntermediateToken - (30:0,30 [23] Basic.cshtml) - Html - \n Hello world\n CSharpExpression - (54:2,5 [29] Basic.cshtml) - RazorIRToken - (54:2,5 [29] Basic.cshtml) - CSharp - string.Format("{0}", "Hello") + IntermediateToken - (54:2,5 [29] Basic.cshtml) - CSharp - string.Format("{0}", "Hello") HtmlContent - (83:2,34 [10] Basic.cshtml) - RazorIRToken - (83:2,34 [2] Basic.cshtml) - Html - \n - RazorIRToken - (85:3,0 [6] Basic.cshtml) - Html -
- RazorIRToken - (91:3,6 [2] Basic.cshtml) - Html - \n + IntermediateToken - (83:2,34 [2] Basic.cshtml) - Html - \n + IntermediateToken - (85:3,0 [6] Basic.cshtml) - Html - + IntermediateToken - (91:3,6 [2] Basic.cshtml) - Html - \n CSharpCode - (95:4,2 [25] Basic.cshtml) - RazorIRToken - (95:4,2 [25] Basic.cshtml) - CSharp - \n var cls = "foo";\n + IntermediateToken - (95:4,2 [25] Basic.cshtml) - CSharp - \n var cls = "foo";\n HtmlContent - (123:7,0 [2] Basic.cshtml) - RazorIRToken - (123:7,0 [2] Basic.cshtml) - Html -

- RazorIRToken - (162:7,39 [2] Basic.cshtml) - Html - \n - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (159:7,36 [3] Basic.cshtml) - Html - /> + IntermediateToken - (162:7,39 [2] Basic.cshtml) - Html - \n + Inject - + Inject - + Inject - + Inject - + Inject - diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.ir.txt b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.ir.txt index 04f1b8ca0..a211132fb 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.ir.txt @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -12,63 +12,63 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic_cshtml - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - - RazorIRToken - - CSharp - BeginContext(0, 4, true); + IntermediateToken - - CSharp - BeginContext(0, 4, true); HtmlContent - (0:0,0 [4] Basic.cshtml) - RazorIRToken - (0:0,0 [4] Basic.cshtml) - Html -

- RazorIRToken - (30:0,30 [19] Basic.cshtml) - Html - \n Hello world\n - RazorIRToken - (49:2,0 [4] Basic.cshtml) - Html - + IntermediateToken - (29:0,29 [1] Basic.cshtml) - Html - > + IntermediateToken - (30:0,30 [19] Basic.cshtml) - Html - \n Hello world\n + IntermediateToken - (49:2,0 [4] Basic.cshtml) - Html - CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(54, 29, false); + IntermediateToken - - CSharp - BeginContext(54, 29, false); CSharpExpression - (54:2,5 [29] Basic.cshtml) - RazorIRToken - (54:2,5 [29] Basic.cshtml) - CSharp - string.Format("{0}", "Hello") + IntermediateToken - (54:2,5 [29] Basic.cshtml) - CSharp - string.Format("{0}", "Hello") CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(83, 10, true); + IntermediateToken - - CSharp - BeginContext(83, 10, true); HtmlContent - (83:2,34 [10] Basic.cshtml) - RazorIRToken - (83:2,34 [2] Basic.cshtml) - Html - \n - RazorIRToken - (85:3,0 [6] Basic.cshtml) - Html -
- RazorIRToken - (91:3,6 [2] Basic.cshtml) - Html - \n + IntermediateToken - (83:2,34 [2] Basic.cshtml) - Html - \n + IntermediateToken - (85:3,0 [6] Basic.cshtml) - Html - + IntermediateToken - (91:3,6 [2] Basic.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - (95:4,2 [25] Basic.cshtml) - RazorIRToken - (95:4,2 [25] Basic.cshtml) - CSharp - \n var cls = "foo";\n + IntermediateToken - (95:4,2 [25] Basic.cshtml) - CSharp - \n var cls = "foo";\n CSharpCode - - RazorIRToken - - CSharp - BeginContext(123, 2, true); + IntermediateToken - - CSharp - BeginContext(123, 2, true); HtmlContent - (123:7,0 [2] Basic.cshtml) - RazorIRToken - (123:7,0 [2] Basic.cshtml) - Html -

- RazorIRToken - (162:7,39 [2] Basic.cshtml) - Html - \n + IntermediateToken - (159:7,36 [3] Basic.cshtml) - Html - /> + IntermediateToken - (162:7,39 [2] Basic.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - - CSharp - EndContext(); + Inject - + Inject - + Inject - + Inject - + Inject - 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 968878a06..81dd8118c 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_cshtml), null)] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_cshtml), null)] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -27,41 +27,41 @@ Document - DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor DirectiveToken - (159:11,8 [17] IncompleteDirectives.cshtml) - MyService CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (83:0,83 [4] IncompleteDirectives.cshtml) - RazorIRToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (102:4,0 [6] IncompleteDirectives.cshtml) HtmlContent - (108:4,6 [5] IncompleteDirectives.cshtml) - RazorIRToken - (108:4,6 [5] IncompleteDirectives.cshtml) - Html - "\n\n + IntermediateToken - (108:4,6 [5] IncompleteDirectives.cshtml) - Html - "\n\n MalformedDirective - (113:6,0 [6] IncompleteDirectives.cshtml) HtmlContent - (119:6,6 [2] IncompleteDirectives.cshtml) - RazorIRToken - (119:6,6 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (119:6,6 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (121:7,0 [7] IncompleteDirectives.cshtml) HtmlContent - (128:7,7 [4] IncompleteDirectives.cshtml) - RazorIRToken - (128:7,7 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (128:7,7 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (132:9,0 [7] IncompleteDirectives.cshtml) HtmlContent - (139:9,7 [2] IncompleteDirectives.cshtml) - RazorIRToken - (139:9,7 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (139:9,7 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (141:10,0 [8] IncompleteDirectives.cshtml) HtmlContent - (149:10,8 [2] IncompleteDirectives.cshtml) - RazorIRToken - (149:10,8 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (149:10,8 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (151:11,0 [25] IncompleteDirectives.cshtml) DirectiveToken - (159:11,8 [17] IncompleteDirectives.cshtml) - MyService HtmlContent - (176:11,25 [4] IncompleteDirectives.cshtml) - RazorIRToken - (176:11,25 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (176:11,25 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (180:13,0 [10] IncompleteDirectives.cshtml) HtmlContent - (190:13,10 [2] IncompleteDirectives.cshtml) - RazorIRToken - (190:13,10 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (190:13,10 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (192:14,0 [11] IncompleteDirectives.cshtml) HtmlContent - (203:14,11 [2] IncompleteDirectives.cshtml) - RazorIRToken - (203:14,11 [2] IncompleteDirectives.cshtml) - Html - \n - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (203:14,11 [2] IncompleteDirectives.cshtml) - Html - \n + Inject - + Inject - + Inject - + Inject - + Inject - CSharpCode - - RazorIRToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; + IntermediateToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; CSharpCode - - RazorIRToken - - CSharp - public TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_cshtml Model => ViewData.Model; + IntermediateToken - - CSharp - public TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_cshtml Model => ViewData.Model; 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 8256aa1e4..63f002a0a 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_cshtml), null)] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_cshtml), null)] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -12,74 +12,74 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_cshtml - global::Microsoft.AspNetCore.Mvc.RazorPages.Page - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - - RazorIRToken - - CSharp - BeginContext(83, 4, true); + IntermediateToken - - CSharp - BeginContext(83, 4, true); HtmlContent - (83:0,83 [4] IncompleteDirectives.cshtml) - RazorIRToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); MalformedDirective - (102:4,0 [6] IncompleteDirectives.cshtml) CSharpCode - - RazorIRToken - - CSharp - BeginContext(108, 5, true); + IntermediateToken - - CSharp - BeginContext(108, 5, true); HtmlContent - (108:4,6 [5] IncompleteDirectives.cshtml) - RazorIRToken - (108:4,6 [5] IncompleteDirectives.cshtml) - Html - "\n\n + IntermediateToken - (108:4,6 [5] IncompleteDirectives.cshtml) - Html - "\n\n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); MalformedDirective - (113:6,0 [6] IncompleteDirectives.cshtml) CSharpCode - - RazorIRToken - - CSharp - BeginContext(119, 2, true); + IntermediateToken - - CSharp - BeginContext(119, 2, true); HtmlContent - (119:6,6 [2] IncompleteDirectives.cshtml) - RazorIRToken - (119:6,6 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (119:6,6 [2] IncompleteDirectives.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); MalformedDirective - (121:7,0 [7] IncompleteDirectives.cshtml) CSharpCode - - RazorIRToken - - CSharp - BeginContext(128, 4, true); + IntermediateToken - - CSharp - BeginContext(128, 4, true); HtmlContent - (128:7,7 [4] IncompleteDirectives.cshtml) - RazorIRToken - (128:7,7 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (128:7,7 [4] IncompleteDirectives.cshtml) - Html - \n\n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); MalformedDirective - (132:9,0 [7] IncompleteDirectives.cshtml) CSharpCode - - RazorIRToken - - CSharp - BeginContext(139, 2, true); + IntermediateToken - - CSharp - BeginContext(139, 2, true); HtmlContent - (139:9,7 [2] IncompleteDirectives.cshtml) - RazorIRToken - (139:9,7 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (139:9,7 [2] IncompleteDirectives.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); MalformedDirective - (141:10,0 [8] IncompleteDirectives.cshtml) CSharpCode - - RazorIRToken - - CSharp - BeginContext(149, 2, true); + IntermediateToken - - CSharp - BeginContext(149, 2, true); HtmlContent - (149:10,8 [2] IncompleteDirectives.cshtml) - RazorIRToken - (149:10,8 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (149:10,8 [2] IncompleteDirectives.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); MalformedDirective - (151:11,0 [25] IncompleteDirectives.cshtml) DirectiveToken - (159:11,8 [17] IncompleteDirectives.cshtml) - MyService CSharpCode - - RazorIRToken - - CSharp - BeginContext(176, 4, true); + IntermediateToken - - CSharp - BeginContext(176, 4, true); HtmlContent - (176:11,25 [4] IncompleteDirectives.cshtml) - RazorIRToken - (176:11,25 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (176:11,25 [4] IncompleteDirectives.cshtml) - Html - \n\n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); MalformedDirective - (180:13,0 [10] IncompleteDirectives.cshtml) CSharpCode - - RazorIRToken - - CSharp - BeginContext(190, 2, true); + IntermediateToken - - CSharp - BeginContext(190, 2, true); HtmlContent - (190:13,10 [2] IncompleteDirectives.cshtml) - RazorIRToken - (190:13,10 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (190:13,10 [2] IncompleteDirectives.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); MalformedDirective - (192:14,0 [11] IncompleteDirectives.cshtml) CSharpCode - - RazorIRToken - - CSharp - BeginContext(203, 2, true); + IntermediateToken - - CSharp - BeginContext(203, 2, true); HtmlContent - (203:14,11 [2] IncompleteDirectives.cshtml) - RazorIRToken - (203:14,11 [2] IncompleteDirectives.cshtml) - Html - \n - CSharpCode - - RazorIRToken - - CSharp - EndContext(); - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (203:14,11 [2] IncompleteDirectives.cshtml) - Html - \n + CSharpCode - + IntermediateToken - - CSharp - EndContext(); + Inject - + Inject - + Inject - + Inject - + Inject - CSharpCode - - RazorIRToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; + IntermediateToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; CSharpCode - - RazorIRToken - - CSharp - public TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_cshtml Model => ViewData.Model; + IntermediateToken - - CSharp - public TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_cshtml Model => ViewData.Model; 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 79ef65fd2..7eb94be27 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsViewModel_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsViewModel_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -28,10 +28,10 @@ Document - DirectiveToken - (10:0,10 [26] InheritsViewModel.cshtml) - MyBasePageForViews DirectiveToken - (45:1,7 [7] InheritsViewModel.cshtml) - MyModel CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + 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 d20687bc0..c53824773 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_Runtime.ir.txt @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsViewModel_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsViewModel_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -11,8 +11,8 @@ Document - 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 - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + 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 3c98d2507..60e3ee580 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsWithViewImports_cshtml), null)] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsWithViewImports_cshtml), null)] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -28,14 +28,14 @@ Document - DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor DirectiveToken - (14:1,7 [7] InheritsWithViewImports.cshtml) - MyModel CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + Inject - + Inject - + Inject - CSharpCode - - RazorIRToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; + IntermediateToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; CSharpCode - - RazorIRToken - - CSharp - public MyModel Model => ViewData.Model; + IntermediateToken - - CSharp - public MyModel Model => ViewData.Model; 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 d203c9ed4..33cb55c24 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_Runtime.ir.txt @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsWithViewImports_cshtml), null)] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsWithViewImports_cshtml), null)] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -11,12 +11,12 @@ Document - 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 - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + Inject - + Inject - + Inject - CSharpCode - - RazorIRToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; + IntermediateToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; CSharpCode - - RazorIRToken - - CSharp - public MyModel Model => ViewData.Model; + IntermediateToken - - CSharp - public MyModel Model => ViewData.Model; 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 40187a979..85bbf8873 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithModel_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithModel_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -31,11 +31,11 @@ Document - DirectiveToken - (54:2,8 [17] InjectWithModel.cshtml) - MyService DirectiveToken - (72:2,26 [4] InjectWithModel.cshtml) - Html CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + Inject - + 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 2d3179aef..0e5fbcaa9 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithModel_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithModel_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -11,9 +11,9 @@ Document - 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 - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + Inject - + 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 1bec3b390..803a8146f 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithSemicolon_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithSemicolon_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -35,13 +35,13 @@ Document - DirectiveToken - (129:4,8 [17] InjectWithSemicolon.cshtml) - MyService DirectiveToken - (147:4,26 [5] InjectWithSemicolon.cshtml) - Html2 CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + Inject - + Inject - + Inject - + 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 21ff70c97..a75939567 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithSemicolon_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWithSemicolon_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -11,11 +11,11 @@ Document - 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 - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + Inject - + Inject - + Inject - + 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 80c9299e4..c12ec9cab 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inject_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inject_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -28,11 +28,11 @@ Document - DirectiveToken - (8:0,8 [5] Inject.cshtml) - MyApp DirectiveToken - (14:0,14 [14] Inject.cshtml) - MyPropertyName CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + Inject - + 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 ec3ccc924..640df6d2b 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inject_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inject_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -11,9 +11,9 @@ Document - 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 - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + Inject - + 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 4bd04cdb6..d9d9a4ff5 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InvalidNamespaceAtEOF_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InvalidNamespaceAtEOF_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -26,13 +26,13 @@ Document - DirectiveToken - (729:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper, Microsoft.AspNetCore.Mvc.Razor DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync MalformedDirective - (0:0,0 [11] InvalidNamespaceAtEOF.cshtml) HtmlContent - (11:0,11 [5] InvalidNamespaceAtEOF.cshtml) - RazorIRToken - (11:0,11 [5] InvalidNamespaceAtEOF.cshtml) - Html - Test. - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (11:0,11 [5] InvalidNamespaceAtEOF.cshtml) - Html - Test. + Inject - + Inject - + Inject - + Inject - + Inject - 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 9b586b65a..e4b265273 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InvalidNamespaceAtEOF_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InvalidNamespaceAtEOF_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -13,13 +13,13 @@ Document - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync MalformedDirective - (0:0,0 [11] InvalidNamespaceAtEOF.cshtml) CSharpCode - - RazorIRToken - - CSharp - BeginContext(11, 5, true); + IntermediateToken - - CSharp - BeginContext(11, 5, true); HtmlContent - (11:0,11 [5] InvalidNamespaceAtEOF.cshtml) - RazorIRToken - (11:0,11 [5] InvalidNamespaceAtEOF.cshtml) - Html - Test. + IntermediateToken - (11:0,11 [5] InvalidNamespaceAtEOF.cshtml) - Html - Test. CSharpCode - - RazorIRToken - - CSharp - EndContext(); - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - - CSharp - EndContext(); + Inject - + Inject - + Inject - + Inject - + Inject - 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 838720eff..ffbd256ac 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MalformedPageDirective_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MalformedPageDirective_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -26,20 +26,20 @@ Document - DirectiveToken - (729:13,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.HeadTagHelper, Microsoft.AspNetCore.Mvc.Razor DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync MalformedDirective - (0:0,0 [6] MalformedPageDirective.cshtml) HtmlContent - (6:0,6 [49] MalformedPageDirective.cshtml) - RazorIRToken - (6:0,6 [8] MalformedPageDirective.cshtml) - Html - "foo\n\n - RazorIRToken - (14:2,0 [4] MalformedPageDirective.cshtml) - Html -

- RazorIRToken - (18:2,4 [8] MalformedPageDirective.cshtml) - Html - About Us - RazorIRToken - (26:2,12 [5] MalformedPageDirective.cshtml) - Html -

- RazorIRToken - (31:2,17 [2] MalformedPageDirective.cshtml) - Html - \n - RazorIRToken - (33:3,0 [3] MalformedPageDirective.cshtml) - Html -

- RazorIRToken - (36:3,3 [15] MalformedPageDirective.cshtml) - Html - We are awesome. - RazorIRToken - (51:3,18 [4] MalformedPageDirective.cshtml) - Html -

- InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (6:0,6 [8] MalformedPageDirective.cshtml) - Html - "foo\n\n + IntermediateToken - (14:2,0 [4] MalformedPageDirective.cshtml) - Html -

+ IntermediateToken - (18:2,4 [8] MalformedPageDirective.cshtml) - Html - About Us + IntermediateToken - (26:2,12 [5] MalformedPageDirective.cshtml) - Html -

+ IntermediateToken - (31:2,17 [2] MalformedPageDirective.cshtml) - Html - \n + IntermediateToken - (33:3,0 [3] MalformedPageDirective.cshtml) - Html -

+ IntermediateToken - (36:3,3 [15] MalformedPageDirective.cshtml) - Html - We are awesome. + IntermediateToken - (51:3,18 [4] MalformedPageDirective.cshtml) - Html -

+ Inject - + Inject - + Inject - + Inject - + Inject - 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 fecda65a8..83e749ae8 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MalformedPageDirective_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MalformedPageDirective_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -13,20 +13,20 @@ Document - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync MalformedDirective - (0:0,0 [6] MalformedPageDirective.cshtml) CSharpCode - - RazorIRToken - - CSharp - BeginContext(6, 49, true); + IntermediateToken - - CSharp - BeginContext(6, 49, true); HtmlContent - (6:0,6 [49] MalformedPageDirective.cshtml) - RazorIRToken - (6:0,6 [8] MalformedPageDirective.cshtml) - Html - "foo\n\n - RazorIRToken - (14:2,0 [4] MalformedPageDirective.cshtml) - Html -

- RazorIRToken - (18:2,4 [8] MalformedPageDirective.cshtml) - Html - About Us - RazorIRToken - (26:2,12 [5] MalformedPageDirective.cshtml) - Html -

- RazorIRToken - (31:2,17 [2] MalformedPageDirective.cshtml) - Html - \n - RazorIRToken - (33:3,0 [3] MalformedPageDirective.cshtml) - Html -

- RazorIRToken - (36:3,3 [15] MalformedPageDirective.cshtml) - Html - We are awesome. - RazorIRToken - (51:3,18 [4] MalformedPageDirective.cshtml) - Html -

+ IntermediateToken - (6:0,6 [8] MalformedPageDirective.cshtml) - Html - "foo\n\n + IntermediateToken - (14:2,0 [4] MalformedPageDirective.cshtml) - Html -

+ IntermediateToken - (18:2,4 [8] MalformedPageDirective.cshtml) - Html - About Us + IntermediateToken - (26:2,12 [5] MalformedPageDirective.cshtml) - Html -

+ IntermediateToken - (31:2,17 [2] MalformedPageDirective.cshtml) - Html - \n + IntermediateToken - (33:3,0 [3] MalformedPageDirective.cshtml) - Html -

+ IntermediateToken - (36:3,3 [15] MalformedPageDirective.cshtml) - Html - We are awesome. + IntermediateToken - (51:3,18 [4] MalformedPageDirective.cshtml) - Html -

CSharpCode - - RazorIRToken - - CSharp - EndContext(); - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - - CSharp - EndContext(); + Inject - + Inject - + Inject - + Inject - + Inject - 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 d47601efd..238c7f6f1 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ModelExpressionTagHelper_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ModelExpressionTagHelper_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -28,36 +28,36 @@ Document - DirectiveToken - (7:0,7 [8] ModelExpressionTagHelper.cshtml) - DateTime DirectiveToken - (33:2,14 [29] ModelExpressionTagHelper.cshtml) - "InputTestTagHelper, AppCode" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - InputTestTagHelper MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (17:1,0 [2] ModelExpressionTagHelper.cshtml) - RazorIRToken - (17:1,0 [2] ModelExpressionTagHelper.cshtml) - Html - \n + IntermediateToken - (17:1,0 [2] ModelExpressionTagHelper.cshtml) - Html - \n HtmlContent - (62:2,43 [4] ModelExpressionTagHelper.cshtml) - RazorIRToken - (62:2,43 [4] ModelExpressionTagHelper.cshtml) - Html - \n\n + IntermediateToken - (62:2,43 [4] ModelExpressionTagHelper.cshtml) - Html - \n\n TagHelper - (66:4,0 [25] ModelExpressionTagHelper.cshtml) - input-test - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTestTagHelper SetTagHelperProperty - (83:4,17 [4] ModelExpressionTagHelper.cshtml) - for - For - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - - RazorIRToken - - CSharp - ModelExpressionProvider.CreateModelExpression(ViewData, __model => - RazorIRToken - - CSharp - __model. - RazorIRToken - (83:4,17 [4] ModelExpressionTagHelper.cshtml) - CSharp - Date - RazorIRToken - - CSharp - ) + IntermediateToken - - CSharp - ModelExpressionProvider.CreateModelExpression(ViewData, __model => + IntermediateToken - - CSharp - __model. + IntermediateToken - (83:4,17 [4] ModelExpressionTagHelper.cshtml) - CSharp - Date + IntermediateToken - - CSharp - ) HtmlContent - (91:4,25 [2] ModelExpressionTagHelper.cshtml) - RazorIRToken - (91:4,25 [2] ModelExpressionTagHelper.cshtml) - Html - \n + IntermediateToken - (91:4,25 [2] ModelExpressionTagHelper.cshtml) - Html - \n TagHelper - (93:5,0 [27] ModelExpressionTagHelper.cshtml) - input-test - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTestTagHelper SetTagHelperProperty - (110:5,17 [6] ModelExpressionTagHelper.cshtml) - for - For - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - - RazorIRToken - - CSharp - ModelExpressionProvider.CreateModelExpression(ViewData, __model => - RazorIRToken - (111:5,18 [5] ModelExpressionTagHelper.cshtml) - CSharp - Model - RazorIRToken - - CSharp - ) + IntermediateToken - - CSharp - ModelExpressionProvider.CreateModelExpression(ViewData, __model => + IntermediateToken - (111:5,18 [5] ModelExpressionTagHelper.cshtml) - CSharp - Model + IntermediateToken - - CSharp - ) HtmlContent - (120:5,27 [2] ModelExpressionTagHelper.cshtml) - RazorIRToken - (120:5,27 [2] ModelExpressionTagHelper.cshtml) - Html - \n - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (120:5,27 [2] ModelExpressionTagHelper.cshtml) - Html - \n + Inject - + Inject - + Inject - + Inject - + Inject - 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 c45cb9b70..784f105c2 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ModelExpressionTagHelper_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ModelExpressionTagHelper_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -13,56 +13,56 @@ Document - DeclareTagHelperFields - - InputTestTagHelper MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - - RazorIRToken - - CSharp - BeginContext(17, 2, true); + IntermediateToken - - CSharp - BeginContext(17, 2, true); HtmlContent - (17:1,0 [2] ModelExpressionTagHelper.cshtml) - RazorIRToken - (17:1,0 [2] ModelExpressionTagHelper.cshtml) - Html - \n + IntermediateToken - (17:1,0 [2] ModelExpressionTagHelper.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(64, 2, true); + IntermediateToken - - CSharp - BeginContext(64, 2, true); HtmlContent - (64:3,0 [2] ModelExpressionTagHelper.cshtml) - RazorIRToken - (64:3,0 [2] ModelExpressionTagHelper.cshtml) - Html - \n + IntermediateToken - (64:3,0 [2] ModelExpressionTagHelper.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(66, 25, false); + IntermediateToken - - CSharp - BeginContext(66, 25, false); TagHelper - (66:4,0 [25] ModelExpressionTagHelper.cshtml) - input-test - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTestTagHelper SetTagHelperProperty - (83:4,17 [4] ModelExpressionTagHelper.cshtml) - for - For - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - - RazorIRToken - - CSharp - ModelExpressionProvider.CreateModelExpression(ViewData, __model => - RazorIRToken - - CSharp - __model. - RazorIRToken - (83:4,17 [4] ModelExpressionTagHelper.cshtml) - CSharp - Date - RazorIRToken - - CSharp - ) + IntermediateToken - - CSharp - ModelExpressionProvider.CreateModelExpression(ViewData, __model => + IntermediateToken - - CSharp - __model. + IntermediateToken - (83:4,17 [4] ModelExpressionTagHelper.cshtml) - CSharp - Date + IntermediateToken - - CSharp - ) CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(91, 2, true); + IntermediateToken - - CSharp - BeginContext(91, 2, true); HtmlContent - (91:4,25 [2] ModelExpressionTagHelper.cshtml) - RazorIRToken - (91:4,25 [2] ModelExpressionTagHelper.cshtml) - Html - \n + IntermediateToken - (91:4,25 [2] ModelExpressionTagHelper.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(93, 27, false); + IntermediateToken - - CSharp - BeginContext(93, 27, false); TagHelper - (93:5,0 [27] ModelExpressionTagHelper.cshtml) - input-test - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTestTagHelper SetTagHelperProperty - (110:5,17 [6] ModelExpressionTagHelper.cshtml) - for - For - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - - RazorIRToken - - CSharp - ModelExpressionProvider.CreateModelExpression(ViewData, __model => - RazorIRToken - (111:5,18 [5] ModelExpressionTagHelper.cshtml) - CSharp - Model - RazorIRToken - - CSharp - ) + IntermediateToken - - CSharp - ModelExpressionProvider.CreateModelExpression(ViewData, __model => + IntermediateToken - (111:5,18 [5] ModelExpressionTagHelper.cshtml) - CSharp - Model + IntermediateToken - - CSharp - ) CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(120, 2, true); + IntermediateToken - - CSharp - BeginContext(120, 2, true); HtmlContent - (120:5,27 [2] ModelExpressionTagHelper.cshtml) - RazorIRToken - (120:5,27 [2] ModelExpressionTagHelper.cshtml) - Html - \n + IntermediateToken - (120:5,27 [2] ModelExpressionTagHelper.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - - CSharp - EndContext(); + Inject - + Inject - + Inject - + Inject - + Inject - 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 064ae9cfd..5b8d28425 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Model_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Model_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -27,10 +27,10 @@ Document - DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor DirectiveToken - (7:0,7 [30] Model.cshtml) - System.Collections.IEnumerable CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + 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 155eb6f3d..a31365b0e 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Model_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Model_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -11,8 +11,8 @@ Document - 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 - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + 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 8d5a5377f..eeb337d0b 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MultipleModels_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MultipleModels_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -28,10 +28,10 @@ Document - DirectiveToken - (7:0,7 [21] MultipleModels.cshtml) - ThisShouldBeGenerated DirectiveToken - (37:1,7 [30] MultipleModels.cshtml) - System.Collections.IEnumerable CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + 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 d2efdc1af..49f769c13 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(Test.Namespace.PageWithNamespace_Page), null)] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(Test.Namespace.PageWithNamespace_Page), null)] NamespaceDeclaration - - Test.Namespace UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -27,19 +27,19 @@ Document - DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor DirectiveToken - (18:1,11 [14] PageWithNamespace.cshtml) - Test.Namespace CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (34:2,0 [20] PageWithNamespace.cshtml) - RazorIRToken - (34:2,0 [4] PageWithNamespace.cshtml) - Html -

- RazorIRToken - (38:2,4 [9] PageWithNamespace.cshtml) - Html - Hi There! - RazorIRToken - (47:2,13 [5] PageWithNamespace.cshtml) - Html -

- RazorIRToken - (52:2,18 [2] PageWithNamespace.cshtml) - Html - \n - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (34:2,0 [4] PageWithNamespace.cshtml) - Html -

+ IntermediateToken - (38:2,4 [9] PageWithNamespace.cshtml) - Html - Hi There! + IntermediateToken - (47:2,13 [5] PageWithNamespace.cshtml) - Html -

+ IntermediateToken - (52:2,18 [2] PageWithNamespace.cshtml) - Html - \n + Inject - + Inject - + Inject - + Inject - + Inject - CSharpCode - - RazorIRToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; + IntermediateToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; CSharpCode - - RazorIRToken - - CSharp - public PageWithNamespace_Page Model => ViewData.Model; + IntermediateToken - - CSharp - public PageWithNamespace_Page Model => ViewData.Model; 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 1e68f077b..03b181755 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(Test.Namespace.PageWithNamespace_Page), null)] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(Test.Namespace.PageWithNamespace_Page), null)] NamespaceDeclaration - - Test.Namespace UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -12,20 +12,20 @@ Document - ClassDeclaration - - public - PageWithNamespace_Page - global::Microsoft.AspNetCore.Mvc.RazorPages.Page - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - - RazorIRToken - - CSharp - BeginContext(34, 20, true); + IntermediateToken - - CSharp - BeginContext(34, 20, true); HtmlContent - (34:2,0 [20] PageWithNamespace.cshtml) - RazorIRToken - (34:2,0 [4] PageWithNamespace.cshtml) - Html -

- RazorIRToken - (38:2,4 [9] PageWithNamespace.cshtml) - Html - Hi There! - RazorIRToken - (47:2,13 [5] PageWithNamespace.cshtml) - Html -

- RazorIRToken - (52:2,18 [2] PageWithNamespace.cshtml) - Html - \n + IntermediateToken - (34:2,0 [4] PageWithNamespace.cshtml) - Html -

+ IntermediateToken - (38:2,4 [9] PageWithNamespace.cshtml) - Html - Hi There! + IntermediateToken - (47:2,13 [5] PageWithNamespace.cshtml) - Html -

+ IntermediateToken - (52:2,18 [2] PageWithNamespace.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - - CSharp - EndContext(); + Inject - + Inject - + Inject - + Inject - + Inject - CSharpCode - - RazorIRToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; + IntermediateToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; CSharpCode - - RazorIRToken - - CSharp - public PageWithNamespace_Page Model => ViewData.Model; + IntermediateToken - - CSharp - public PageWithNamespace_Page Model => ViewData.Model; 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 051064d75..793a6467b 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPagesWithoutModel_cshtml), null)] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPagesWithoutModel_cshtml), null)] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -28,108 +28,108 @@ Document - DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor DirectiveToken - (23:2,14 [12] RazorPagesWithoutModel.cshtml) - "*, AppCode" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - DivTagHelper MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (7:1,0 [2] RazorPagesWithoutModel.cshtml) - RazorIRToken - (7:1,0 [2] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (7:1,0 [2] RazorPagesWithoutModel.cshtml) - Html - \n HtmlContent - (35:2,26 [2] RazorPagesWithoutModel.cshtml) - RazorIRToken - (35:2,26 [2] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (35:2,26 [2] RazorPagesWithoutModel.cshtml) - Html - \n HtmlContent - (79:3,42 [4] RazorPagesWithoutModel.cshtml) - RazorIRToken - (79:3,42 [4] RazorPagesWithoutModel.cshtml) - Html - \n\n + IntermediateToken - (79:3,42 [4] RazorPagesWithoutModel.cshtml) - Html - \n\n HtmlContent - (379:18,1 [77] RazorPagesWithoutModel.cshtml) - RazorIRToken - (379:18,1 [4] RazorPagesWithoutModel.cshtml) - Html - \n\n - RazorIRToken - (383:20,0 [4] RazorPagesWithoutModel.cshtml) - Html -

- RazorIRToken - (387:20,4 [12] RazorPagesWithoutModel.cshtml) - Html - New Customer - RazorIRToken - (399:20,16 [5] RazorPagesWithoutModel.cshtml) - Html -

- RazorIRToken - (404:20,21 [2] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (406:21,0 [5] RazorPagesWithoutModel.cshtml) - Html -
- RazorIRToken - (450:21,44 [6] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (379:18,1 [4] RazorPagesWithoutModel.cshtml) - Html - \n\n + IntermediateToken - (383:20,0 [4] RazorPagesWithoutModel.cshtml) - Html -

+ IntermediateToken - (387:20,4 [12] RazorPagesWithoutModel.cshtml) - Html - New Customer + IntermediateToken - (399:20,16 [5] RazorPagesWithoutModel.cshtml) - Html -

+ IntermediateToken - (404:20,21 [2] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (406:21,0 [5] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (450:21,44 [6] RazorPagesWithoutModel.cshtml) - Html - \n TagHelper - (456:22,4 [31] RazorPagesWithoutModel.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - DivTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (468:22,16 [11] RazorPagesWithoutModel.cshtml) - RazorIRToken - (468:22,16 [11] RazorPagesWithoutModel.cshtml) - Html - text-danger + IntermediateToken - (468:22,16 [11] RazorPagesWithoutModel.cshtml) - Html - text-danger HtmlContent - (487:22,35 [6] RazorPagesWithoutModel.cshtml) - RazorIRToken - (487:22,35 [6] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (487:22,35 [6] RazorPagesWithoutModel.cshtml) - Html - \n TagHelper - (493:23,4 [237] RazorPagesWithoutModel.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (517:23,28 [48] RazorPagesWithoutModel.cshtml) - RazorIRToken - (517:23,28 [10] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (527:24,8 [6] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (578:24,59 [10] RazorPagesWithoutModel.cshtml) - Html - \n TagHelper - (588:25,8 [130] RazorPagesWithoutModel.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (611:25,31 [101] RazorPagesWithoutModel.cshtml) - RazorIRToken - (611:25,31 [14] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (625:26,12 [6] RazorPagesWithoutModel.cshtml) - Html - - RazorIRToken - (655:26,42 [14] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (669:27,12 [5] RazorPagesWithoutModel.cshtml) - Html - - RazorIRToken - (695:27,38 [7] RazorPagesWithoutModel.cshtml) - Html - - RazorIRToken - (702:27,45 [10] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (611:25,31 [14] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (625:26,12 [6] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (655:26,42 [14] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (669:27,12 [5] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (695:27,38 [7] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (702:27,45 [10] RazorPagesWithoutModel.cshtml) - Html - \n CreateTagHelper - - DivTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (600:25,20 [9] RazorPagesWithoutModel.cshtml) - RazorIRToken - (600:25,20 [9] RazorPagesWithoutModel.cshtml) - Html - col-md-10 + IntermediateToken - (600:25,20 [9] RazorPagesWithoutModel.cshtml) - Html - col-md-10 HtmlContent - (718:28,14 [6] RazorPagesWithoutModel.cshtml) - RazorIRToken - (718:28,14 [6] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (718:28,14 [6] RazorPagesWithoutModel.cshtml) - Html - \n CreateTagHelper - - DivTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (505:23,16 [10] RazorPagesWithoutModel.cshtml) - RazorIRToken - (505:23,16 [10] RazorPagesWithoutModel.cshtml) - Html - form-group + IntermediateToken - (505:23,16 [10] RazorPagesWithoutModel.cshtml) - Html - form-group HtmlContent - (730:29,10 [6] RazorPagesWithoutModel.cshtml) - RazorIRToken - (730:29,10 [6] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (730:29,10 [6] RazorPagesWithoutModel.cshtml) - Html - \n TagHelper - (736:30,4 [174] RazorPagesWithoutModel.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (760:30,28 [10] RazorPagesWithoutModel.cshtml) - RazorIRToken - (760:30,28 [10] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (760:30,28 [10] RazorPagesWithoutModel.cshtml) - Html - \n TagHelper - (770:31,8 [128] RazorPagesWithoutModel.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (809:31,47 [83] RazorPagesWithoutModel.cshtml) - RazorIRToken - (809:31,47 [14] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (823:32,12 [7] RazorPagesWithoutModel.cshtml) - Html - - RazorIRToken - (882:32,71 [10] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (809:31,47 [14] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (823:32,12 [7] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (882:32,71 [10] RazorPagesWithoutModel.cshtml) - Html - \n CreateTagHelper - - DivTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (782:31,20 [25] RazorPagesWithoutModel.cshtml) - RazorIRToken - (782:31,20 [25] RazorPagesWithoutModel.cshtml) - Html - col-md-offset-2 col-md-10 + IntermediateToken - (782:31,20 [25] RazorPagesWithoutModel.cshtml) - Html - col-md-offset-2 col-md-10 HtmlContent - (898:33,14 [6] RazorPagesWithoutModel.cshtml) - RazorIRToken - (898:33,14 [6] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (898:33,14 [6] RazorPagesWithoutModel.cshtml) - Html - \n CreateTagHelper - - DivTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (748:30,16 [10] RazorPagesWithoutModel.cshtml) - RazorIRToken - (748:30,16 [10] RazorPagesWithoutModel.cshtml) - Html - form-group + IntermediateToken - (748:30,16 [10] RazorPagesWithoutModel.cshtml) - Html - form-group HtmlContent - (910:34,10 [11] RazorPagesWithoutModel.cshtml) - RazorIRToken - (910:34,10 [2] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (912:35,0 [7] RazorPagesWithoutModel.cshtml) - Html -
- RazorIRToken - (919:35,7 [2] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (910:34,10 [2] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (912:35,0 [7] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (919:35,7 [2] RazorPagesWithoutModel.cshtml) - Html - \n CSharpCode - (95:5,12 [283] RazorPagesWithoutModel.cshtml) - RazorIRToken - (95:5,12 [283] RazorPagesWithoutModel.cshtml) - CSharp - \n public IActionResult OnPost(Customer customer)\n {\n Name = customer.Name;\n return Redirect("~/customers/inlinepagemodels/");\n }\n\n public string Name { get; set; }\n\n public class Customer\n {\n public string Name { get; set; }\n }\n - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (95:5,12 [283] RazorPagesWithoutModel.cshtml) - CSharp - \n public IActionResult OnPost(Customer customer)\n {\n Name = customer.Name;\n return Redirect("~/customers/inlinepagemodels/");\n }\n\n public string Name { get; set; }\n\n public class Customer\n {\n public string Name { get; set; }\n }\n + Inject - + Inject - + Inject - + Inject - + Inject - CSharpCode - - RazorIRToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; + IntermediateToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; CSharpCode - - RazorIRToken - - CSharp - public TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPagesWithoutModel_cshtml Model => ViewData.Model; + IntermediateToken - - CSharp - public TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPagesWithoutModel_cshtml Model => ViewData.Model; 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 e9dd22531..4477be908 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPagesWithoutModel_cshtml), null)] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPagesWithoutModel_cshtml), null)] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -18,168 +18,168 @@ Document - DeclareTagHelperFields - - DivTagHelper MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - - RazorIRToken - - CSharp - BeginContext(7, 2, true); + IntermediateToken - - CSharp - BeginContext(7, 2, true); HtmlContent - (7:1,0 [2] RazorPagesWithoutModel.cshtml) - RazorIRToken - (7:1,0 [2] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (7:1,0 [2] RazorPagesWithoutModel.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(81, 2, true); + IntermediateToken - - CSharp - BeginContext(81, 2, true); HtmlContent - (81:4,0 [2] RazorPagesWithoutModel.cshtml) - RazorIRToken - (81:4,0 [2] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (81:4,0 [2] RazorPagesWithoutModel.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(381, 75, true); + IntermediateToken - - CSharp - BeginContext(381, 75, true); HtmlContent - (381:19,0 [75] RazorPagesWithoutModel.cshtml) - RazorIRToken - (381:19,0 [2] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (383:20,0 [4] RazorPagesWithoutModel.cshtml) - Html -

- RazorIRToken - (387:20,4 [12] RazorPagesWithoutModel.cshtml) - Html - New Customer - RazorIRToken - (399:20,16 [5] RazorPagesWithoutModel.cshtml) - Html -

- RazorIRToken - (404:20,21 [2] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (406:21,0 [5] RazorPagesWithoutModel.cshtml) - Html -
- RazorIRToken - (450:21,44 [6] RazorPagesWithoutModel.cshtml) - Html - \n - CSharpCode - - RazorIRToken - - CSharp - EndContext(); - CSharpCode - - RazorIRToken - - CSharp - BeginContext(456, 31, false); + IntermediateToken - (381:19,0 [2] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (383:20,0 [4] RazorPagesWithoutModel.cshtml) - Html -

+ IntermediateToken - (387:20,4 [12] RazorPagesWithoutModel.cshtml) - Html - New Customer + IntermediateToken - (399:20,16 [5] RazorPagesWithoutModel.cshtml) - Html -

+ IntermediateToken - (404:20,21 [2] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (406:21,0 [5] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (450:21,44 [6] RazorPagesWithoutModel.cshtml) - Html - \n + CSharpCode - + IntermediateToken - - CSharp - EndContext(); + CSharpCode - + IntermediateToken - - CSharp - BeginContext(456, 31, false); TagHelper - (456:22,4 [31] RazorPagesWithoutModel.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - DivTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(487, 6, true); + IntermediateToken - - CSharp - BeginContext(487, 6, true); HtmlContent - (487:22,35 [6] RazorPagesWithoutModel.cshtml) - RazorIRToken - (487:22,35 [6] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (487:22,35 [6] RazorPagesWithoutModel.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(493, 237, false); + IntermediateToken - - CSharp - BeginContext(493, 237, false); TagHelper - (493:23,4 [237] RazorPagesWithoutModel.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CSharpCode - - RazorIRToken - - CSharp - BeginContext(517, 48, true); + IntermediateToken - - CSharp - BeginContext(517, 48, true); HtmlContent - (517:23,28 [48] RazorPagesWithoutModel.cshtml) - RazorIRToken - (517:23,28 [10] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (527:24,8 [6] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (578:24,59 [10] RazorPagesWithoutModel.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(588, 130, false); + IntermediateToken - - CSharp - BeginContext(588, 130, false); TagHelper - (588:25,8 [130] RazorPagesWithoutModel.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CSharpCode - - RazorIRToken - - CSharp - BeginContext(611, 101, true); + IntermediateToken - - CSharp - BeginContext(611, 101, true); HtmlContent - (611:25,31 [101] RazorPagesWithoutModel.cshtml) - RazorIRToken - (611:25,31 [14] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (625:26,12 [6] RazorPagesWithoutModel.cshtml) - Html - - RazorIRToken - (655:26,42 [14] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (669:27,12 [5] RazorPagesWithoutModel.cshtml) - Html - - RazorIRToken - (695:27,38 [7] RazorPagesWithoutModel.cshtml) - Html - - RazorIRToken - (702:27,45 [10] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (611:25,31 [14] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (625:26,12 [6] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (655:26,42 [14] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (669:27,12 [5] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (695:27,38 [7] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (702:27,45 [10] RazorPagesWithoutModel.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CreateTagHelper - - DivTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(718, 6, true); + IntermediateToken - - CSharp - BeginContext(718, 6, true); HtmlContent - (718:28,14 [6] RazorPagesWithoutModel.cshtml) - RazorIRToken - (718:28,14 [6] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (718:28,14 [6] RazorPagesWithoutModel.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CreateTagHelper - - DivTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(730, 6, true); + IntermediateToken - - CSharp - BeginContext(730, 6, true); HtmlContent - (730:29,10 [6] RazorPagesWithoutModel.cshtml) - RazorIRToken - (730:29,10 [6] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (730:29,10 [6] RazorPagesWithoutModel.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(736, 174, false); + IntermediateToken - - CSharp - BeginContext(736, 174, false); TagHelper - (736:30,4 [174] RazorPagesWithoutModel.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CSharpCode - - RazorIRToken - - CSharp - BeginContext(760, 10, true); + IntermediateToken - - CSharp - BeginContext(760, 10, true); HtmlContent - (760:30,28 [10] RazorPagesWithoutModel.cshtml) - RazorIRToken - (760:30,28 [10] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (760:30,28 [10] RazorPagesWithoutModel.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(770, 128, false); + IntermediateToken - - CSharp - BeginContext(770, 128, false); TagHelper - (770:31,8 [128] RazorPagesWithoutModel.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CSharpCode - - RazorIRToken - - CSharp - BeginContext(809, 83, true); + IntermediateToken - - CSharp - BeginContext(809, 83, true); HtmlContent - (809:31,47 [83] RazorPagesWithoutModel.cshtml) - RazorIRToken - (809:31,47 [14] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (823:32,12 [7] RazorPagesWithoutModel.cshtml) - Html - - RazorIRToken - (882:32,71 [10] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (809:31,47 [14] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (823:32,12 [7] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (882:32,71 [10] RazorPagesWithoutModel.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CreateTagHelper - - DivTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(898, 6, true); + IntermediateToken - - CSharp - BeginContext(898, 6, true); HtmlContent - (898:33,14 [6] RazorPagesWithoutModel.cshtml) - RazorIRToken - (898:33,14 [6] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (898:33,14 [6] RazorPagesWithoutModel.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CreateTagHelper - - DivTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(910, 11, true); + IntermediateToken - - CSharp - BeginContext(910, 11, true); HtmlContent - (910:34,10 [11] RazorPagesWithoutModel.cshtml) - RazorIRToken - (910:34,10 [2] RazorPagesWithoutModel.cshtml) - Html - \n - RazorIRToken - (912:35,0 [7] RazorPagesWithoutModel.cshtml) - Html -
- RazorIRToken - (919:35,7 [2] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (910:34,10 [2] RazorPagesWithoutModel.cshtml) - Html - \n + IntermediateToken - (912:35,0 [7] RazorPagesWithoutModel.cshtml) - Html - + IntermediateToken - (919:35,7 [2] RazorPagesWithoutModel.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - (95:5,12 [283] RazorPagesWithoutModel.cshtml) - RazorIRToken - (95:5,12 [283] RazorPagesWithoutModel.cshtml) - CSharp - \n public IActionResult OnPost(Customer customer)\n {\n Name = customer.Name;\n return Redirect("~/customers/inlinepagemodels/");\n }\n\n public string Name { get; set; }\n\n public class Customer\n {\n public string Name { get; set; }\n }\n - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (95:5,12 [283] RazorPagesWithoutModel.cshtml) - CSharp - \n public IActionResult OnPost(Customer customer)\n {\n Name = customer.Name;\n return Redirect("~/customers/inlinepagemodels/");\n }\n\n public string Name { get; set; }\n\n public class Customer\n {\n public string Name { get; set; }\n }\n + Inject - + Inject - + Inject - + Inject - + Inject - CSharpCode - - RazorIRToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; + IntermediateToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; CSharpCode - - RazorIRToken - - CSharp - public TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPagesWithoutModel_cshtml Model => ViewData.Model; + IntermediateToken - - CSharp - public TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPagesWithoutModel_cshtml Model => ViewData.Model; 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 311ef3b78..92feeae41 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages_cshtml), null)] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages_cshtml), null)] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -29,108 +29,108 @@ Document - DirectiveToken - (16:2,7 [8] RazorPages.cshtml) - NewModel DirectiveToken - (40:3,14 [12] RazorPages.cshtml) - "*, AppCode" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - DivTagHelper MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (7:1,0 [2] RazorPages.cshtml) - RazorIRToken - (7:1,0 [2] RazorPages.cshtml) - Html - \n + IntermediateToken - (7:1,0 [2] RazorPages.cshtml) - Html - \n HtmlContent - (52:3,26 [2] RazorPages.cshtml) - RazorIRToken - (52:3,26 [2] RazorPages.cshtml) - Html - \n + IntermediateToken - (52:3,26 [2] RazorPages.cshtml) - Html - \n HtmlContent - (96:4,42 [4] RazorPages.cshtml) - RazorIRToken - (96:4,42 [4] RazorPages.cshtml) - Html - \n\n + IntermediateToken - (96:4,42 [4] RazorPages.cshtml) - Html - \n\n HtmlContent - (473:22,1 [78] RazorPages.cshtml) - RazorIRToken - (473:22,1 [4] RazorPages.cshtml) - Html - \n\n - RazorIRToken - (477:24,0 [4] RazorPages.cshtml) - Html -

- RazorIRToken - (481:24,4 [12] RazorPages.cshtml) - Html - New Customer - RazorIRToken - (493:24,16 [5] RazorPages.cshtml) - Html -

- RazorIRToken - (498:24,21 [2] RazorPages.cshtml) - Html - \n - RazorIRToken - (500:25,0 [5] RazorPages.cshtml) - Html -
- RazorIRToken - (545:25,45 [6] RazorPages.cshtml) - Html - \n + IntermediateToken - (473:22,1 [4] RazorPages.cshtml) - Html - \n\n + IntermediateToken - (477:24,0 [4] RazorPages.cshtml) - Html -

+ IntermediateToken - (481:24,4 [12] RazorPages.cshtml) - Html - New Customer + IntermediateToken - (493:24,16 [5] RazorPages.cshtml) - Html -

+ IntermediateToken - (498:24,21 [2] RazorPages.cshtml) - Html - \n + IntermediateToken - (500:25,0 [5] RazorPages.cshtml) - Html - + IntermediateToken - (545:25,45 [6] RazorPages.cshtml) - Html - \n TagHelper - (551:26,4 [31] RazorPages.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - DivTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (563:26,16 [11] RazorPages.cshtml) - RazorIRToken - (563:26,16 [11] RazorPages.cshtml) - Html - text-danger + IntermediateToken - (563:26,16 [11] RazorPages.cshtml) - Html - text-danger HtmlContent - (582:26,35 [6] RazorPages.cshtml) - RazorIRToken - (582:26,35 [6] RazorPages.cshtml) - Html - \n + IntermediateToken - (582:26,35 [6] RazorPages.cshtml) - Html - \n TagHelper - (588:27,4 [243] RazorPages.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (612:27,28 [48] RazorPages.cshtml) - RazorIRToken - (612:27,28 [10] RazorPages.cshtml) - Html - \n - RazorIRToken - (622:28,8 [6] RazorPages.cshtml) - Html - + IntermediateToken - (679:28,65 [10] RazorPages.cshtml) - Html - \n TagHelper - (689:29,8 [130] RazorPages.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (712:29,31 [101] RazorPages.cshtml) - RazorIRToken - (712:29,31 [14] RazorPages.cshtml) - Html - \n - RazorIRToken - (726:30,12 [6] RazorPages.cshtml) - Html - - RazorIRToken - (756:30,42 [14] RazorPages.cshtml) - Html - \n - RazorIRToken - (770:31,12 [5] RazorPages.cshtml) - Html - - RazorIRToken - (796:31,38 [7] RazorPages.cshtml) - Html - - RazorIRToken - (803:31,45 [10] RazorPages.cshtml) - Html - \n + IntermediateToken - (712:29,31 [14] RazorPages.cshtml) - Html - \n + IntermediateToken - (726:30,12 [6] RazorPages.cshtml) - Html - + IntermediateToken - (756:30,42 [14] RazorPages.cshtml) - Html - \n + IntermediateToken - (770:31,12 [5] RazorPages.cshtml) - Html - + IntermediateToken - (796:31,38 [7] RazorPages.cshtml) - Html - + IntermediateToken - (803:31,45 [10] RazorPages.cshtml) - Html - \n CreateTagHelper - - DivTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (701:29,20 [9] RazorPages.cshtml) - RazorIRToken - (701:29,20 [9] RazorPages.cshtml) - Html - col-md-10 + IntermediateToken - (701:29,20 [9] RazorPages.cshtml) - Html - col-md-10 HtmlContent - (819:32,14 [6] RazorPages.cshtml) - RazorIRToken - (819:32,14 [6] RazorPages.cshtml) - Html - \n + IntermediateToken - (819:32,14 [6] RazorPages.cshtml) - Html - \n CreateTagHelper - - DivTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (600:27,16 [10] RazorPages.cshtml) - RazorIRToken - (600:27,16 [10] RazorPages.cshtml) - Html - form-group + IntermediateToken - (600:27,16 [10] RazorPages.cshtml) - Html - form-group HtmlContent - (831:33,10 [6] RazorPages.cshtml) - RazorIRToken - (831:33,10 [6] RazorPages.cshtml) - Html - \n + IntermediateToken - (831:33,10 [6] RazorPages.cshtml) - Html - \n TagHelper - (837:34,4 [174] RazorPages.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (861:34,28 [10] RazorPages.cshtml) - RazorIRToken - (861:34,28 [10] RazorPages.cshtml) - Html - \n + IntermediateToken - (861:34,28 [10] RazorPages.cshtml) - Html - \n TagHelper - (871:35,8 [128] RazorPages.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (910:35,47 [83] RazorPages.cshtml) - RazorIRToken - (910:35,47 [14] RazorPages.cshtml) - Html - \n - RazorIRToken - (924:36,12 [7] RazorPages.cshtml) - Html - - RazorIRToken - (983:36,71 [10] RazorPages.cshtml) - Html - \n + IntermediateToken - (910:35,47 [14] RazorPages.cshtml) - Html - \n + IntermediateToken - (924:36,12 [7] RazorPages.cshtml) - Html - + IntermediateToken - (983:36,71 [10] RazorPages.cshtml) - Html - \n CreateTagHelper - - DivTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (883:35,20 [25] RazorPages.cshtml) - RazorIRToken - (883:35,20 [25] RazorPages.cshtml) - Html - col-md-offset-2 col-md-10 + IntermediateToken - (883:35,20 [25] RazorPages.cshtml) - Html - col-md-offset-2 col-md-10 HtmlContent - (999:37,14 [6] RazorPages.cshtml) - RazorIRToken - (999:37,14 [6] RazorPages.cshtml) - Html - \n + IntermediateToken - (999:37,14 [6] RazorPages.cshtml) - Html - \n CreateTagHelper - - DivTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (849:34,16 [10] RazorPages.cshtml) - RazorIRToken - (849:34,16 [10] RazorPages.cshtml) - Html - form-group + IntermediateToken - (849:34,16 [10] RazorPages.cshtml) - Html - form-group HtmlContent - (1011:38,10 [11] RazorPages.cshtml) - RazorIRToken - (1011:38,10 [2] RazorPages.cshtml) - Html - \n - RazorIRToken - (1013:39,0 [7] RazorPages.cshtml) - Html -
- RazorIRToken - (1020:39,7 [2] RazorPages.cshtml) - Html - \n + IntermediateToken - (1011:38,10 [2] RazorPages.cshtml) - Html - \n + IntermediateToken - (1013:39,0 [7] RazorPages.cshtml) - Html - + IntermediateToken - (1020:39,7 [2] RazorPages.cshtml) - Html - \n CSharpCode - (112:6,12 [360] RazorPages.cshtml) - RazorIRToken - (112:6,12 [360] RazorPages.cshtml) - CSharp - \n public class NewModel : PageModel\n {\n public IActionResult OnPost(Customer customer)\n {\n Name = customer.Name;\n return Redirect("~/customers/inlinepagemodels/");\n }\n\n public string Name { get; set; }\n }\n\n public class Customer\n {\n public string Name { get; set; }\n }\n - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (112:6,12 [360] RazorPages.cshtml) - CSharp - \n public class NewModel : PageModel\n {\n public IActionResult OnPost(Customer customer)\n {\n Name = customer.Name;\n return Redirect("~/customers/inlinepagemodels/");\n }\n\n public string Name { get; set; }\n }\n\n public class Customer\n {\n public string Name { get; set; }\n }\n + Inject - + Inject - + Inject - + Inject - + Inject - CSharpCode - - RazorIRToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; + IntermediateToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; CSharpCode - - RazorIRToken - - CSharp - public NewModel Model => ViewData.Model; + IntermediateToken - - CSharp - public NewModel Model => ViewData.Model; 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 eff52b7c4..def2df08f 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages_cshtml), null)] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.RazorPageAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages_cshtml), null)] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -18,168 +18,168 @@ Document - DeclareTagHelperFields - - DivTagHelper MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - - RazorIRToken - - CSharp - BeginContext(7, 2, true); + IntermediateToken - - CSharp - BeginContext(7, 2, true); HtmlContent - (7:1,0 [2] RazorPages.cshtml) - RazorIRToken - (7:1,0 [2] RazorPages.cshtml) - Html - \n + IntermediateToken - (7:1,0 [2] RazorPages.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(98, 2, true); + IntermediateToken - - CSharp - BeginContext(98, 2, true); HtmlContent - (98:5,0 [2] RazorPages.cshtml) - RazorIRToken - (98:5,0 [2] RazorPages.cshtml) - Html - \n + IntermediateToken - (98:5,0 [2] RazorPages.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(475, 76, true); + IntermediateToken - - CSharp - BeginContext(475, 76, true); HtmlContent - (475:23,0 [76] RazorPages.cshtml) - RazorIRToken - (475:23,0 [2] RazorPages.cshtml) - Html - \n - RazorIRToken - (477:24,0 [4] RazorPages.cshtml) - Html -

- RazorIRToken - (481:24,4 [12] RazorPages.cshtml) - Html - New Customer - RazorIRToken - (493:24,16 [5] RazorPages.cshtml) - Html -

- RazorIRToken - (498:24,21 [2] RazorPages.cshtml) - Html - \n - RazorIRToken - (500:25,0 [5] RazorPages.cshtml) - Html -
- RazorIRToken - (545:25,45 [6] RazorPages.cshtml) - Html - \n - CSharpCode - - RazorIRToken - - CSharp - EndContext(); - CSharpCode - - RazorIRToken - - CSharp - BeginContext(551, 31, false); + IntermediateToken - (475:23,0 [2] RazorPages.cshtml) - Html - \n + IntermediateToken - (477:24,0 [4] RazorPages.cshtml) - Html -

+ IntermediateToken - (481:24,4 [12] RazorPages.cshtml) - Html - New Customer + IntermediateToken - (493:24,16 [5] RazorPages.cshtml) - Html -

+ IntermediateToken - (498:24,21 [2] RazorPages.cshtml) - Html - \n + IntermediateToken - (500:25,0 [5] RazorPages.cshtml) - Html - + IntermediateToken - (545:25,45 [6] RazorPages.cshtml) - Html - \n + CSharpCode - + IntermediateToken - - CSharp - EndContext(); + CSharpCode - + IntermediateToken - - CSharp - BeginContext(551, 31, false); TagHelper - (551:26,4 [31] RazorPages.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - DivTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(582, 6, true); + IntermediateToken - - CSharp - BeginContext(582, 6, true); HtmlContent - (582:26,35 [6] RazorPages.cshtml) - RazorIRToken - (582:26,35 [6] RazorPages.cshtml) - Html - \n + IntermediateToken - (582:26,35 [6] RazorPages.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(588, 243, false); + IntermediateToken - - CSharp - BeginContext(588, 243, false); TagHelper - (588:27,4 [243] RazorPages.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CSharpCode - - RazorIRToken - - CSharp - BeginContext(612, 48, true); + IntermediateToken - - CSharp - BeginContext(612, 48, true); HtmlContent - (612:27,28 [48] RazorPages.cshtml) - RazorIRToken - (612:27,28 [10] RazorPages.cshtml) - Html - \n - RazorIRToken - (622:28,8 [6] RazorPages.cshtml) - Html - + IntermediateToken - (679:28,65 [10] RazorPages.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(689, 130, false); + IntermediateToken - - CSharp - BeginContext(689, 130, false); TagHelper - (689:29,8 [130] RazorPages.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CSharpCode - - RazorIRToken - - CSharp - BeginContext(712, 101, true); + IntermediateToken - - CSharp - BeginContext(712, 101, true); HtmlContent - (712:29,31 [101] RazorPages.cshtml) - RazorIRToken - (712:29,31 [14] RazorPages.cshtml) - Html - \n - RazorIRToken - (726:30,12 [6] RazorPages.cshtml) - Html - - RazorIRToken - (756:30,42 [14] RazorPages.cshtml) - Html - \n - RazorIRToken - (770:31,12 [5] RazorPages.cshtml) - Html - - RazorIRToken - (796:31,38 [7] RazorPages.cshtml) - Html - - RazorIRToken - (803:31,45 [10] RazorPages.cshtml) - Html - \n + IntermediateToken - (712:29,31 [14] RazorPages.cshtml) - Html - \n + IntermediateToken - (726:30,12 [6] RazorPages.cshtml) - Html - + IntermediateToken - (756:30,42 [14] RazorPages.cshtml) - Html - \n + IntermediateToken - (770:31,12 [5] RazorPages.cshtml) - Html - + IntermediateToken - (796:31,38 [7] RazorPages.cshtml) - Html - + IntermediateToken - (803:31,45 [10] RazorPages.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CreateTagHelper - - DivTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(819, 6, true); + IntermediateToken - - CSharp - BeginContext(819, 6, true); HtmlContent - (819:32,14 [6] RazorPages.cshtml) - RazorIRToken - (819:32,14 [6] RazorPages.cshtml) - Html - \n + IntermediateToken - (819:32,14 [6] RazorPages.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CreateTagHelper - - DivTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(831, 6, true); + IntermediateToken - - CSharp - BeginContext(831, 6, true); HtmlContent - (831:33,10 [6] RazorPages.cshtml) - RazorIRToken - (831:33,10 [6] RazorPages.cshtml) - Html - \n + IntermediateToken - (831:33,10 [6] RazorPages.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(837, 174, false); + IntermediateToken - - CSharp - BeginContext(837, 174, false); TagHelper - (837:34,4 [174] RazorPages.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CSharpCode - - RazorIRToken - - CSharp - BeginContext(861, 10, true); + IntermediateToken - - CSharp - BeginContext(861, 10, true); HtmlContent - (861:34,28 [10] RazorPages.cshtml) - RazorIRToken - (861:34,28 [10] RazorPages.cshtml) - Html - \n + IntermediateToken - (861:34,28 [10] RazorPages.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(871, 128, false); + IntermediateToken - - CSharp - BeginContext(871, 128, false); TagHelper - (871:35,8 [128] RazorPages.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CSharpCode - - RazorIRToken - - CSharp - BeginContext(910, 83, true); + IntermediateToken - - CSharp - BeginContext(910, 83, true); HtmlContent - (910:35,47 [83] RazorPages.cshtml) - RazorIRToken - (910:35,47 [14] RazorPages.cshtml) - Html - \n - RazorIRToken - (924:36,12 [7] RazorPages.cshtml) - Html - - RazorIRToken - (983:36,71 [10] RazorPages.cshtml) - Html - \n + IntermediateToken - (910:35,47 [14] RazorPages.cshtml) - Html - \n + IntermediateToken - (924:36,12 [7] RazorPages.cshtml) - Html - + IntermediateToken - (983:36,71 [10] RazorPages.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CreateTagHelper - - DivTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(999, 6, true); + IntermediateToken - - CSharp - BeginContext(999, 6, true); HtmlContent - (999:37,14 [6] RazorPages.cshtml) - RazorIRToken - (999:37,14 [6] RazorPages.cshtml) - Html - \n + IntermediateToken - (999:37,14 [6] RazorPages.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CreateTagHelper - - DivTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(1011, 11, true); + IntermediateToken - - CSharp - BeginContext(1011, 11, true); HtmlContent - (1011:38,10 [11] RazorPages.cshtml) - RazorIRToken - (1011:38,10 [2] RazorPages.cshtml) - Html - \n - RazorIRToken - (1013:39,0 [7] RazorPages.cshtml) - Html -
- RazorIRToken - (1020:39,7 [2] RazorPages.cshtml) - Html - \n + IntermediateToken - (1011:38,10 [2] RazorPages.cshtml) - Html - \n + IntermediateToken - (1013:39,0 [7] RazorPages.cshtml) - Html - + IntermediateToken - (1020:39,7 [2] RazorPages.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - (112:6,12 [360] RazorPages.cshtml) - RazorIRToken - (112:6,12 [360] RazorPages.cshtml) - CSharp - \n public class NewModel : PageModel\n {\n public IActionResult OnPost(Customer customer)\n {\n Name = customer.Name;\n return Redirect("~/customers/inlinepagemodels/");\n }\n\n public string Name { get; set; }\n }\n\n public class Customer\n {\n public string Name { get; set; }\n }\n - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (112:6,12 [360] RazorPages.cshtml) - CSharp - \n public class NewModel : PageModel\n {\n public IActionResult OnPost(Customer customer)\n {\n Name = customer.Name;\n return Redirect("~/customers/inlinepagemodels/");\n }\n\n public string Name { get; set; }\n }\n\n public class Customer\n {\n public string Name { get; set; }\n }\n + Inject - + Inject - + Inject - + Inject - + Inject - CSharpCode - - RazorIRToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; + IntermediateToken - - CSharp - public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary)PageContext?.ViewData; CSharpCode - - RazorIRToken - - CSharp - public NewModel Model => ViewData.Model; + IntermediateToken - - CSharp - public NewModel Model => ViewData.Model; 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 2cdad2c34..450ddb331 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewComponentTagHelper_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewComponentTagHelper_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -27,29 +27,29 @@ Document - DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor DirectiveToken - (14:0,14 [12] ViewComponentTagHelper.cshtml) - "*, AppCode" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + 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 HtmlContent - (26:0,26 [2] ViewComponentTagHelper.cshtml) - RazorIRToken - (26:0,26 [2] ViewComponentTagHelper.cshtml) - Html - \n + IntermediateToken - (26:0,26 [2] ViewComponentTagHelper.cshtml) - Html - \n CSharpCode - (30:1,2 [26] ViewComponentTagHelper.cshtml) - RazorIRToken - (30:1,2 [26] ViewComponentTagHelper.cshtml) - CSharp - \n var foo = "Hello";\n + IntermediateToken - (30:1,2 [26] ViewComponentTagHelper.cshtml) - CSharp - \n var foo = "Hello";\n HtmlContent - (59:4,0 [2] ViewComponentTagHelper.cshtml) - RazorIRToken - (59:4,0 [2] ViewComponentTagHelper.cshtml) - Html - \n + IntermediateToken - (59:4,0 [2] ViewComponentTagHelper.cshtml) - Html - \n TagHelper - (61:5,0 [50] ViewComponentTagHelper.cshtml) - vc:test - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewComponentTagHelper_cshtml.__Generated__TestViewComponentTagHelper CreateTagHelper - - AllTagHelper SetTagHelperProperty - (82:5,21 [4] ViewComponentTagHelper.cshtml) - first-name - firstName - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (83:5,22 [3] ViewComponentTagHelper.cshtml) - RazorIRToken - (83:5,22 [3] ViewComponentTagHelper.cshtml) - CSharp - foo + IntermediateToken - (83:5,22 [3] ViewComponentTagHelper.cshtml) - CSharp - foo SetTagHelperProperty - (93:5,32 [6] ViewComponentTagHelper.cshtml) - bar - Bar - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (93:5,32 [6] ViewComponentTagHelper.cshtml) - RazorIRToken - (93:5,32 [6] ViewComponentTagHelper.cshtml) - Html - World - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (93:5,32 [6] ViewComponentTagHelper.cshtml) - Html - World + Inject - + Inject - + Inject - + Inject - + Inject - CSharpCode - - RazorIRToken - - CSharp - [Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute("vc:test")]\npublic class __Generated__TestViewComponentTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper\n{\n private readonly global::Microsoft.AspNetCore.Mvc.IViewComponentHelper _helper = null;\n public __Generated__TestViewComponentTagHelper(global::Microsoft.AspNetCore.Mvc.IViewComponentHelper helper)\n {\n _helper = helper;\n }\n [Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeNotBoundAttribute, global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewContextAttribute]\n public global::Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get; set; }\n public System.String firstName { get; set; }\n public override async global::System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output)\n {\n (_helper as global::Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware)?.Contextualize(ViewContext);\n var content = await _helper.InvokeAsync("Test", new { firstName });\n output.TagName = null;\n output.Content.SetHtmlContent(content);\n }\n}\n + IntermediateToken - - CSharp - [Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute("vc:test")]\npublic class __Generated__TestViewComponentTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper\n{\n private readonly global::Microsoft.AspNetCore.Mvc.IViewComponentHelper _helper = null;\n public __Generated__TestViewComponentTagHelper(global::Microsoft.AspNetCore.Mvc.IViewComponentHelper helper)\n {\n _helper = helper;\n }\n [Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeNotBoundAttribute, global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewContextAttribute]\n public global::Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get; set; }\n public System.String firstName { get; set; }\n public override async global::System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output)\n {\n (_helper as global::Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware)?.Contextualize(ViewContext);\n var content = await _helper.InvokeAsync("Test", new { firstName });\n output.TagName = null;\n output.Content.SetHtmlContent(content);\n }\n}\n 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 48f0fe14b..3494e6df6 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewComponentTagHelper_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewComponentTagHelper_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -14,29 +14,29 @@ Document - DeclareTagHelperFields - - AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewComponentTagHelper_cshtml.__Generated__TestViewComponentTagHelper - AllTagHelper MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (30:1,2 [26] ViewComponentTagHelper.cshtml) - RazorIRToken - (30:1,2 [26] ViewComponentTagHelper.cshtml) - CSharp - \n var foo = "Hello";\n + IntermediateToken - (30:1,2 [26] ViewComponentTagHelper.cshtml) - CSharp - \n var foo = "Hello";\n CSharpCode - - RazorIRToken - - CSharp - BeginContext(59, 2, true); + IntermediateToken - - CSharp - BeginContext(59, 2, true); HtmlContent - (59:4,0 [2] ViewComponentTagHelper.cshtml) - RazorIRToken - (59:4,0 [2] ViewComponentTagHelper.cshtml) - Html - \n + IntermediateToken - (59:4,0 [2] ViewComponentTagHelper.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(61, 50, false); + IntermediateToken - - CSharp - BeginContext(61, 50, false); TagHelper - (61:5,0 [50] ViewComponentTagHelper.cshtml) - vc:test - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewComponentTagHelper_cshtml.__Generated__TestViewComponentTagHelper CreateTagHelper - - AllTagHelper SetTagHelperProperty - (82:5,21 [4] ViewComponentTagHelper.cshtml) - first-name - firstName - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (83:5,22 [3] ViewComponentTagHelper.cshtml) - RazorIRToken - (83:5,22 [3] ViewComponentTagHelper.cshtml) - CSharp - foo + IntermediateToken - (83:5,22 [3] ViewComponentTagHelper.cshtml) - CSharp - foo SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - bar - Bar CSharpCode - - RazorIRToken - - CSharp - EndContext(); - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - - CSharp - EndContext(); + Inject - + Inject - + Inject - + Inject - + Inject - CSharpCode - - RazorIRToken - - CSharp - [Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute("vc:test")]\npublic class __Generated__TestViewComponentTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper\n{\n private readonly global::Microsoft.AspNetCore.Mvc.IViewComponentHelper _helper = null;\n public __Generated__TestViewComponentTagHelper(global::Microsoft.AspNetCore.Mvc.IViewComponentHelper helper)\n {\n _helper = helper;\n }\n [Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeNotBoundAttribute, global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewContextAttribute]\n public global::Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get; set; }\n public System.String firstName { get; set; }\n public override async global::System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output)\n {\n (_helper as global::Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware)?.Contextualize(ViewContext);\n var content = await _helper.InvokeAsync("Test", new { firstName });\n output.TagName = null;\n output.Content.SetHtmlContent(content);\n }\n}\n + IntermediateToken - - CSharp - [Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute("vc:test")]\npublic class __Generated__TestViewComponentTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper\n{\n private readonly global::Microsoft.AspNetCore.Mvc.IViewComponentHelper _helper = null;\n public __Generated__TestViewComponentTagHelper(global::Microsoft.AspNetCore.Mvc.IViewComponentHelper helper)\n {\n _helper = helper;\n }\n [Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeNotBoundAttribute, global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewContextAttribute]\n public global::Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get; set; }\n public System.String firstName { get; set; }\n public override async global::System.Threading.Tasks.Task ProcessAsync(Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContext context, Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput output)\n {\n (_helper as global::Microsoft.AspNetCore.Mvc.ViewFeatures.IViewContextAware)?.Contextualize(ViewContext);\n var content = await _helper.InvokeAsync("Test", new { firstName });\n output.TagName = null;\n output.Content.SetHtmlContent(content);\n }\n}\n 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 25002e857..031cc1bf9 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(Test.Namespace.ViewWithNamespace_View))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(Test.Namespace.ViewWithNamespace_View))] NamespaceDeclaration - - Test.Namespace UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -27,15 +27,15 @@ Document - DirectiveToken - (832:14,14 [87] ) - Microsoft.AspNetCore.Mvc.Razor.TagHelpers.BodyTagHelper, Microsoft.AspNetCore.Mvc.Razor DirectiveToken - (11:0,11 [14] ViewWithNamespace.cshtml) - Test.Namespace CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (27:1,0 [20] ViewWithNamespace.cshtml) - RazorIRToken - (27:1,0 [4] ViewWithNamespace.cshtml) - Html -

- RazorIRToken - (31:1,4 [9] ViewWithNamespace.cshtml) - Html - Hi There! - RazorIRToken - (40:1,13 [5] ViewWithNamespace.cshtml) - Html -

- RazorIRToken - (45:1,18 [2] ViewWithNamespace.cshtml) - Html - \n - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - (27:1,0 [4] ViewWithNamespace.cshtml) - Html -

+ IntermediateToken - (31:1,4 [9] ViewWithNamespace.cshtml) - Html - Hi There! + IntermediateToken - (40:1,13 [5] ViewWithNamespace.cshtml) - Html -

+ IntermediateToken - (45:1,18 [2] ViewWithNamespace.cshtml) - Html - \n + Inject - + Inject - + Inject - + Inject - + Inject - 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 3b20a1e1f..fb708cea3 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(Test.Namespace.ViewWithNamespace_View))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(Test.Namespace.ViewWithNamespace_View))] NamespaceDeclaration - - Test.Namespace UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -12,16 +12,16 @@ Document - ClassDeclaration - - public - ViewWithNamespace_View - global::Microsoft.AspNetCore.Mvc.Razor.RazorPage - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - - RazorIRToken - - CSharp - BeginContext(27, 20, true); + IntermediateToken - - CSharp - BeginContext(27, 20, true); HtmlContent - (27:1,0 [20] ViewWithNamespace.cshtml) - RazorIRToken - (27:1,0 [4] ViewWithNamespace.cshtml) - Html -

- RazorIRToken - (31:1,4 [9] ViewWithNamespace.cshtml) - Html - Hi There! - RazorIRToken - (40:1,13 [5] ViewWithNamespace.cshtml) - Html -

- RazorIRToken - (45:1,18 [2] ViewWithNamespace.cshtml) - Html - \n + IntermediateToken - (27:1,0 [4] ViewWithNamespace.cshtml) - Html -

+ IntermediateToken - (31:1,4 [9] ViewWithNamespace.cshtml) - Html - Hi There! + IntermediateToken - (40:1,13 [5] ViewWithNamespace.cshtml) - Html -

+ IntermediateToken - (45:1,18 [2] ViewWithNamespace.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + IntermediateToken - - CSharp - EndContext(); + Inject - + Inject - + Inject - + Inject - + Inject - 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 439caaaaf..1ed1c54f7 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest__ViewImports_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest__ViewImports_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - - TModel = global::System.Object UsingStatement - (1:0,1 [12] ) - System @@ -28,11 +28,11 @@ Document - DirectiveToken - (8:0,8 [19] _ViewImports.cshtml) - IHtmlHelper DirectiveToken - (28:0,28 [5] _ViewImports.cshtml) - Model CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + Inject - + 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 c718e59e9..86c43b01c 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 @@ -1,6 +1,6 @@ Document - CSharpCode - - RazorIRToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest__ViewImports_cshtml))] + IntermediateToken - - CSharp - [assembly:global::Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute(null, typeof(AspNetCore.TestFiles_IntegrationTests_CodeGenerationIntegrationTest__ViewImports_cshtml))] NamespaceDeclaration - - AspNetCore UsingStatement - (1:0,1 [14] ) - System UsingStatement - (16:1,1 [34] ) - System.Collections.Generic @@ -11,9 +11,9 @@ Document - 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 - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - - InjectDirective - + Inject - + Inject - + Inject - + 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 024b25022..f47114830 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 @@ -7,88 +7,88 @@ Document - DeclareTagHelperFields - - FormTagHelper - InputTagHelper MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync CSharpCode - - RazorIRToken - - CSharp - BeginContext(31, 28, true); + IntermediateToken - - CSharp - BeginContext(31, 28, true); HtmlContent - (31:1,0 [28] BasicTest.cshtml) - RazorIRToken - (31:1,0 [5] BasicTest.cshtml) - Html - - RazorIRToken - (46:1,15 [4] BasicTest.cshtml) - Html - Hola - RazorIRToken - (50:1,19 [7] BasicTest.cshtml) - Html - - RazorIRToken - (57:1,26 [2] BasicTest.cshtml) - Html - \n + IntermediateToken - (31:1,0 [5] BasicTest.cshtml) - Html - + IntermediateToken - (46:1,15 [4] BasicTest.cshtml) - Html - Hola + IntermediateToken - (50:1,19 [7] BasicTest.cshtml) - Html - + IntermediateToken - (57:1,26 [2] BasicTest.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(61, 7, false); + IntermediateToken - - CSharp - BeginContext(61, 7, false); CSharpExpression - (61:2,2 [7] BasicTest.cshtml) - RazorIRToken - (61:2,2 [7] BasicTest.cshtml) - CSharp - "Hello" + IntermediateToken - (61:2,2 [7] BasicTest.cshtml) - CSharp - "Hello" CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(69, 2, true); + IntermediateToken - - CSharp - BeginContext(69, 2, true); HtmlContent - (69:2,10 [2] BasicTest.cshtml) - RazorIRToken - (69:2,10 [2] BasicTest.cshtml) - Html - \n + IntermediateToken - (69:2,10 [2] BasicTest.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(71, 87, false); + IntermediateToken - - CSharp - BeginContext(71, 87, false); TagHelper - (71:3,0 [87] BasicTest.cshtml) - form - TagMode.StartTagAndEndTag TagHelperBody - CSharpCode - - RazorIRToken - - CSharp - BeginContext(91, 6, true); + IntermediateToken - - CSharp - BeginContext(91, 6, true); HtmlContent - (91:3,20 [6] BasicTest.cshtml) - RazorIRToken - (91:3,20 [6] BasicTest.cshtml) - Html - \n + IntermediateToken - (91:3,20 [6] BasicTest.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(97, 52, false); + IntermediateToken - - CSharp - BeginContext(97, 52, false); TagHelper - (97:4,4 [52] BasicTest.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - value - FooProp SetTagHelperProperty - (121:4,28 [13] BasicTest.cshtml) - date - BarProp - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (122:4,29 [12] BasicTest.cshtml) - RazorIRToken - (122:4,29 [12] BasicTest.cshtml) - CSharp - DateTime.Now + IntermediateToken - (122:4,29 [12] BasicTest.cshtml) - CSharp - DateTime.Now AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(149, 2, true); + IntermediateToken - - CSharp - BeginContext(149, 2, true); HtmlContent - (149:4,56 [2] BasicTest.cshtml) - RazorIRToken - (149:4,56 [2] BasicTest.cshtml) - Html - \n + IntermediateToken - (149:4,56 [2] BasicTest.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CreateTagHelper - - FormTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(158, 31, true); + IntermediateToken - - CSharp - BeginContext(158, 31, true); HtmlContent - (158:5,7 [31] BasicTest.cshtml) - RazorIRToken - (158:5,7 [4] BasicTest.cshtml) - Html - \n\n - RazorIRToken - (162:7,0 [6] BasicTest.cshtml) - Html - - RazorIRToken - (168:7,6 [21] BasicTest.cshtml) - Html - Here is some content + IntermediateToken - (158:5,7 [4] BasicTest.cshtml) - Html - \n\n + IntermediateToken - (162:7,0 [6] BasicTest.cshtml) - Html - + IntermediateToken - (168:7,6 [21] BasicTest.cshtml) - Html - Here is some content CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(207, 9, true); + IntermediateToken - - CSharp - BeginContext(207, 9, true); HtmlContent - (207:7,45 [9] BasicTest.cshtml) - RazorIRToken - (207:7,45 [7] BasicTest.cshtml) - Html - - RazorIRToken - (214:7,52 [2] BasicTest.cshtml) - Html - \n + IntermediateToken - (207:7,45 [7] BasicTest.cshtml) - Html - + IntermediateToken - (214:7,52 [2] BasicTest.cshtml) - Html - \n CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); CSharpCode - - RazorIRToken - - CSharp - BeginContext(217, 29, false); + IntermediateToken - - CSharp - BeginContext(217, 29, false); CSharpExpression - (217:8,1 [29] BasicTest.cshtml) - RazorIRToken - (217:8,1 [4] BasicTest.cshtml) - CSharp - Foo( + IntermediateToken - (217:8,1 [4] BasicTest.cshtml) - CSharp - Foo( Template - (222:8,6 [24] BasicTest.cshtml) CSharpCode - - RazorIRToken - - CSharp - BeginContext(222, 24, true); + IntermediateToken - - CSharp - BeginContext(222, 24, true); HtmlContent - (222:8,6 [24] BasicTest.cshtml) - RazorIRToken - (222:8,6 [6] BasicTest.cshtml) - Html - - RazorIRToken - (228:8,12 [11] BasicTest.cshtml) - Html - Hello world - RazorIRToken - (239:8,23 [7] BasicTest.cshtml) - Html - + IntermediateToken - (222:8,6 [6] BasicTest.cshtml) - Html - + IntermediateToken - (228:8,12 [11] BasicTest.cshtml) - Html - Hello world + IntermediateToken - (239:8,23 [7] BasicTest.cshtml) - Html - CSharpCode - - RazorIRToken - - CSharp - EndContext(); - RazorIRToken - (246:8,30 [1] BasicTest.cshtml) - CSharp - ) + IntermediateToken - - CSharp - EndContext(); + IntermediateToken - (246:8,30 [1] BasicTest.cshtml) - CSharp - ) CSharpCode - - RazorIRToken - - CSharp - EndContext(); + IntermediateToken - - CSharp - EndContext(); diff --git a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ViewComponentTagHelperPassTest.cs b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ViewComponentTagHelperPassTest.cs index 75207b4dc..1d083bf63 100644 --- a/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ViewComponentTagHelperPassTest.cs +++ b/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/ViewComponentTagHelperPassTest.cs @@ -47,7 +47,7 @@ public void ViewComponentTagHelperPass_Execute_IgnoresRegularTagHelper() Assert.Equal(2, @class.Children.Count); // No class node created for a VCTH for (var i = 0; i < @class.Children.Count; i++) { - Assert.IsNotType(@class.Children[i]); + Assert.IsNotType(@class.Children[i]); } } @@ -88,15 +88,15 @@ public void ViewComponentTagHelperPass_Execute_CreatesViewComponentTagHelper() // Assert var tagHelper = FindTagHelperNode(irDocument); - Assert.Equal(expectedVCTHName, Assert.IsType(tagHelper.Children[1]).TagHelperTypeName); - Assert.Equal(expectedVCTHName, Assert.IsType(tagHelper.Children[2]).TagHelperTypeName); + Assert.Equal(expectedVCTHName, Assert.IsType(tagHelper.Children[1]).TagHelperTypeName); + Assert.Equal(expectedVCTHName, Assert.IsType(tagHelper.Children[2]).TagHelperTypeName); var @class = FindClassNode(irDocument); Assert.Equal(3, @class.Children.Count); - var vcthClass = Assert.IsType(@class.Children[2]); - var tokenNode = vcthClass.Children[0] as RazorIRToken; + var vcthClass = Assert.IsType(@class.Children[2]); + var tokenNode = vcthClass.Children[0] as IntermediateToken; Assert.Equal( @"[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute(""tagcloud"")] public class __Generated__TagCloudViewComponentTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper @@ -120,7 +120,7 @@ public __Generated__TagCloudViewComponentTagHelper(global::Microsoft.AspNetCore. ", tokenNode.Content, ignoreLineEndingDifferences: true); - Assert.Equal(RazorIRToken.TokenKind.CSharp, tokenNode.Kind); + Assert.Equal(IntermediateToken.TokenKind.CSharp, tokenNode.Kind); } [Fact] @@ -161,14 +161,14 @@ public void ViewComponentTagHelperPass_Execute_CreatesViewComponentTagHelper_Wit // Assert var tagHelper = FindTagHelperNode(irDocument); - Assert.Equal(expectedVCTHName, Assert.IsType(tagHelper.Children[1]).TagHelperTypeName); - Assert.IsType(tagHelper.Children[2]); + Assert.Equal(expectedVCTHName, Assert.IsType(tagHelper.Children[1]).TagHelperTypeName); + Assert.IsType(tagHelper.Children[2]); var @class = FindClassNode(irDocument); Assert.Equal(3, @class.Children.Count); - var vcthClass = Assert.IsType(@class.Children[2]); - var tokenNode = vcthClass.Children[0] as RazorIRToken; + var vcthClass = Assert.IsType(@class.Children[2]); + var tokenNode = vcthClass.Children[0] as IntermediateToken; Assert.Equal( @"[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute(""tagcloud"")] public class __Generated__TagCloudViewComponentTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper @@ -193,7 +193,7 @@ public __Generated__TagCloudViewComponentTagHelper(global::Microsoft.AspNetCore. ", tokenNode.Content, ignoreLineEndingDifferences: true); - Assert.Equal(RazorIRToken.TokenKind.CSharp, tokenNode.Kind); + Assert.Equal(IntermediateToken.TokenKind.CSharp, tokenNode.Kind); } [Fact] @@ -242,19 +242,19 @@ public void ViewComponentTagHelperPass_Execute_CreatesViewComponentTagHelper_Nes // Assert var outerTagHelper = FindTagHelperNode(irDocument); - Assert.Equal(expectedTagHelperName, Assert.IsType(outerTagHelper.Children[1]).TagHelperTypeName); - Assert.Equal(expectedTagHelperName, Assert.IsType(outerTagHelper.Children[2]).TagHelperTypeName); + Assert.Equal(expectedTagHelperName, Assert.IsType(outerTagHelper.Children[1]).TagHelperTypeName); + Assert.Equal(expectedTagHelperName, Assert.IsType(outerTagHelper.Children[2]).TagHelperTypeName); var vcth = FindTagHelperNode(outerTagHelper.Children[0]); - Assert.Equal(expectedVCTHName, Assert.IsType(vcth.Children[1]).TagHelperTypeName); - Assert.Equal(expectedVCTHName, Assert.IsType(vcth.Children[2]).TagHelperTypeName); + Assert.Equal(expectedVCTHName, Assert.IsType(vcth.Children[1]).TagHelperTypeName); + Assert.Equal(expectedVCTHName, Assert.IsType(vcth.Children[2]).TagHelperTypeName); var @class = FindClassNode(irDocument); Assert.Equal(3, @class.Children.Count); - var vcthClass = Assert.IsType(@class.Children[2]); - var tokenNode = vcthClass.Children[0] as RazorIRToken; + var vcthClass = Assert.IsType(@class.Children[2]); + var tokenNode = vcthClass.Children[0] as IntermediateToken; Assert.Equal( @"[Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute(""tagcloud"")] public class __Generated__TagCloudViewComponentTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper @@ -278,7 +278,7 @@ public __Generated__TagCloudViewComponentTagHelper(global::Microsoft.AspNetCore. ", tokenNode.Content, ignoreLineEndingDifferences: true); - Assert.Equal(RazorIRToken.TokenKind.CSharp, tokenNode.Kind); + Assert.Equal(IntermediateToken.TokenKind.CSharp, tokenNode.Kind); } private RazorCodeDocument CreateDocument(string content) @@ -297,7 +297,7 @@ private RazorEngine CreateEngine(params TagHelperDescriptor[] tagHelpers) }); } - private DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) + private DocumentIntermediateNode CreateIRDocument(RazorEngine engine, RazorCodeDocument codeDocument) { for (var i = 0; i < engine.Phases.Count; i++) { @@ -310,30 +310,30 @@ private DocumentIRNode CreateIRDocument(RazorEngine engine, RazorCodeDocument co } } - return codeDocument.GetIRDocument(); + return codeDocument.GetDocumentIntermediateNode(); } - private ClassDeclarationIRNode FindClassNode(RazorIRNode node) + private ClassDeclarationIntermediateNode FindClassNode(IntermediateNode node) { var visitor = new ClassDeclarationNodeVisitor(); visitor.Visit(node); return visitor.Node; } - private TagHelperIRNode FindTagHelperNode(RazorIRNode node) + private TagHelperIntermediateNode FindTagHelperNode(IntermediateNode node) { var visitor = new TagHelperNodeVisitor(); visitor.Visit(node); return visitor.Node; } - private string GetCSharpContent(RazorIRNode node) + private string GetCSharpContent(IntermediateNode node) { var builder = new StringBuilder(); for (var i = 0; i < node.Children.Count; i++) { - var child = node.Children[i] as RazorIRToken; - if (child.Kind == RazorIRToken.TokenKind.CSharp) + var child = node.Children[i] as IntermediateToken; + if (child.Kind == IntermediateToken.TokenKind.CSharp) { builder.Append(child.Content); } @@ -342,21 +342,21 @@ private string GetCSharpContent(RazorIRNode node) return builder.ToString(); } - private class ClassDeclarationNodeVisitor : RazorIRNodeWalker + private class ClassDeclarationNodeVisitor : IntermediateNodeWalker { - public ClassDeclarationIRNode Node { get; set; } + public ClassDeclarationIntermediateNode Node { get; set; } - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { Node = node; } } - private class TagHelperNodeVisitor : RazorIRNodeWalker + private class TagHelperNodeVisitor : IntermediateNodeWalker { - public TagHelperIRNode Node { get; set; } + public TagHelperIntermediateNode Node { get; set; } - public override void VisitTagHelper(TagHelperIRNode node) + public override void VisitTagHelper(TagHelperIntermediateNode node) { Node = node; } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DefaultDocumentWriterTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DefaultDocumentWriterTest.cs index 0f12e8d25..b6e4c24b0 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DefaultDocumentWriterTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DefaultDocumentWriterTest.cs @@ -26,8 +26,8 @@ public void WriteDocument_Empty_WritesChecksumByDefault() var writer = new DefaultDocumentWriter(target, context); - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); // Act writer.WriteDocument(document); @@ -62,8 +62,8 @@ public void WriteDocument_Empty_SuppressChecksumTrue_WritesNothing() var writer = new DefaultDocumentWriter(target, context); - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); // Act writer.WriteDocument(document); @@ -90,9 +90,9 @@ public void WriteDocument_WritesNamespace() var writer = new DefaultDocumentWriter(target, context); - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); - builder.Add(new NamespaceDeclarationIRNode() + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); + builder.Add(new NamespaceDeclarationIntermediateNode() { Content = "TestNamespace", }); @@ -129,9 +129,9 @@ public void WriteDocument_WritesClass() }; var writer = new DefaultDocumentWriter(target, context); - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); - builder.Add(new ClassDeclarationIRNode() + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); + builder.Add(new ClassDeclarationIntermediateNode() { AccessModifier = "internal", BaseType = "TestBase", @@ -170,9 +170,9 @@ public void WriteDocument_WritesMethod() }; var writer = new DefaultDocumentWriter(target, context); - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); - builder.Add(new MethodDeclarationIRNode() + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); + builder.Add(new MethodDeclarationIntermediateNode() { AccessModifier = "internal", Modifiers = new List { "virtual", "async", }, @@ -213,9 +213,9 @@ public void WriteDocument_WritesField() }; var writer = new DefaultDocumentWriter(target, context); - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); - builder.Add(new FieldDeclarationIRNode() + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); + builder.Add(new FieldDeclarationIntermediateNode() { AccessModifier = "internal", Modifiers = new List { "readonly", }, @@ -252,9 +252,9 @@ public void WriteDocument_WritesProperty() }; var writer = new DefaultDocumentWriter(target, context); - var document = new DocumentIRNode(); - var builder = RazorIRBuilder.Create(document); - builder.Add(new PropertyDeclarationIRNode() + var document = new DocumentIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(document); + builder.Add(new PropertyDeclarationIntermediateNode() { AccessModifier = "internal", Modifiers = new List { "virtual", }, diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeBasicWriterTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeBasicWriterTest.cs index 0a4df32c9..211bee2ac 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeBasicWriterTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeBasicWriterTest.cs @@ -21,7 +21,7 @@ public void WriteUsingStatement_NoSource_WritesContent() Writer = new Legacy.CSharpCodeWriter() }; - var node = new UsingStatementIRNode() + var node = new UsingStatementIntermediateNode() { Content = "System", }; @@ -53,7 +53,7 @@ public void WriteUsingStatement_WithSource_WritesContentWithLinePragmaAndMapping var originalSpan = new SourceSpan("test.cshtml", 0, 0, 0, 6); var generatedSpan = new SourceSpan(null, 21 + Environment.NewLine.Length, 1, 0, 6); var expectedLineMapping = new LineMapping(originalSpan, generatedSpan); - var node = new UsingStatementIRNode() + var node = new UsingStatementIntermediateNode() { Content = "System", Source = originalSpan, @@ -88,12 +88,12 @@ public void WriteCSharpExpression_SkipsLinePragma_WithoutSource() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpExpressionIRNode(); - var builder = RazorIRBuilder.Create(node); - builder.Add(new RazorIRToken() + var node = new CSharpExpressionIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(node); + builder.Add(new IntermediateToken() { Content = "i++", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); // Act @@ -120,15 +120,15 @@ public void WriteCSharpExpression_WritesLinePragma_WithSource() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpExpressionIRNode() + var node = new CSharpExpressionIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 3), }; - var builder = RazorIRBuilder.Create(node); - builder.Add(new RazorIRToken() + var builder = IntermediateNodeBuilder.Create(node); + builder.Add(new IntermediateToken() { Content = "i++", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); // Act @@ -158,21 +158,21 @@ public void WriteCSharpExpression_WithExtensionNode_WritesPadding() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpExpressionIRNode(); - var builder = RazorIRBuilder.Create(node); - builder.Add(new RazorIRToken() + var node = new CSharpExpressionIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(node); + builder.Add(new IntermediateToken() { Content = "i", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); - builder.Add(new MyExtensionIRNode()); - builder.Add(new RazorIRToken() + builder.Add(new MyExtensionIntermediateNode()); + builder.Add(new IntermediateToken() { Content = "++", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); - context.RenderNode = (n) => Assert.IsType(n); + context.RenderNode = (n) => Assert.IsType(n); // Act writer.WriteCSharpExpression(context, node); @@ -200,24 +200,24 @@ public void WriteCSharpExpression_WithSource_WritesPadding() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpExpressionIRNode() + var node = new CSharpExpressionIntermediateNode() { Source = new SourceSpan("test.cshtml", 8, 0, 8, 3), }; - var builder = RazorIRBuilder.Create(node); - builder.Add(new RazorIRToken() + var builder = IntermediateNodeBuilder.Create(node); + builder.Add(new IntermediateToken() { Content = "i", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); - builder.Add(new MyExtensionIRNode()); - builder.Add(new RazorIRToken() + builder.Add(new MyExtensionIntermediateNode()); + builder.Add(new IntermediateToken() { Content = "++", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); - context.RenderNode = (n) => Assert.IsType(n); + context.RenderNode = (n) => Assert.IsType(n); // Act writer.WriteCSharpExpression(context, node); @@ -246,11 +246,11 @@ public void WriteCSharpCode_WhitespaceContent_DoesNothing() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpCodeIRNode(); - RazorIRBuilder.Create(node) - .Add(new RazorIRToken() + var node = new CSharpCodeIntermediateNode(); + IntermediateNodeBuilder.Create(node) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = " \t" }); @@ -274,14 +274,14 @@ public void WriteCSharpCode_WhitespaceContentWithSource_WritesContent() Options = RazorCodeGenerationOptions.CreateDefault(), }; - var node = new CSharpCodeIRNode() + var node = new CSharpCodeIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 3), }; - RazorIRBuilder.Create(node) - .Add(new RazorIRToken() + IntermediateNodeBuilder.Create(node) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = " " }); @@ -308,11 +308,11 @@ public void WriteCSharpCode_SkipsLinePragma_WithoutSource() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpCodeIRNode(); - RazorIRBuilder.Create(node) - .Add(new RazorIRToken() + var node = new CSharpCodeIntermediateNode(); + IntermediateNodeBuilder.Create(node) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = "if (true) { }" }); @@ -340,14 +340,14 @@ public void WriteCSharpCode_WritesLinePragma_WithSource() Options = RazorCodeGenerationOptions.CreateDefault(), }; - var node = new CSharpCodeIRNode() + var node = new CSharpCodeIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 13), }; - RazorIRBuilder.Create(node) - .Add(new RazorIRToken() + IntermediateNodeBuilder.Create(node) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = "if (true) { }", }); @@ -379,14 +379,14 @@ public void WriteCSharpCode_WritesPadding_WithSource() Options = RazorCodeGenerationOptions.CreateDefault(), }; - var node = new CSharpCodeIRNode() + var node = new CSharpCodeIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 17), }; - RazorIRBuilder.Create(node) - .Add(new RazorIRToken() + IntermediateNodeBuilder.Create(node) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = " if (true) { }", }); @@ -417,7 +417,7 @@ public void WriteCSharpExpressionAttributeValue_RendersCorrectly() var codeDocument = RazorCodeDocument.Create(sourceDocument); context.CodeDocument = codeDocument; var irDocument = Lower(codeDocument); - var node = irDocument.Children.OfType().Single().Children[1] as CSharpExpressionAttributeValueIRNode; + var node = irDocument.Children.OfType().Single().Children[1] as CSharpExpressionAttributeValueIntermediateNode; // Act writer.WriteCSharpExpressionAttributeValue(context, node); @@ -446,7 +446,7 @@ public void WriteCSharpCodeAttributeValue_RendersCorrectly() var codeDocument = RazorCodeDocument.Create(sourceDocument); context.CodeDocument = codeDocument; var irDocument = Lower(codeDocument); - var node = irDocument.Children.OfType().Single().Children[1] as CSharpCodeAttributeValueIRNode; + var node = irDocument.Children.OfType().Single().Children[1] as CSharpCodeAttributeValueIntermediateNode; // Act writer.WriteCSharpCodeAttributeValue(context, node); @@ -475,7 +475,7 @@ public void WriteCSharpCodeAttributeValue_WithExpression_RendersCorrectly() var codeDocument = RazorCodeDocument.Create(sourceDocument); context.CodeDocument = codeDocument; var irDocument = Lower(codeDocument); - var node = irDocument.Children.OfType().Single().Children[1] as CSharpCodeAttributeValueIRNode; + var node = irDocument.Children.OfType().Single().Children[1] as CSharpCodeAttributeValueIntermediateNode; // Act writer.WriteCSharpCodeAttributeValue(context, node); @@ -488,7 +488,7 @@ public void WriteCSharpCodeAttributeValue_WithExpression_RendersCorrectly() #line default #line hidden -Render Node - CSharpExpressionIRNode +Render Node - CSharpExpressionIntermediateNode #line 1 ""test.cshtml"" } @@ -521,37 +521,37 @@ private static CSharpRenderingContext GetCSharpRenderingContext(BasicWriter writ return context; } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) { var engine = RazorEngine.Create(); return Lower(codeDocument, engine); } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) { for (var i = 0; i < engine.Phases.Count; i++) { var phase = engine.Phases[i]; phase.Execute(codeDocument); - if (phase is IRazorIRLoweringPhase) + if (phase is IRazorIntermediateNodeLoweringPhase) { break; } } - var irDocument = codeDocument.GetIRDocument(); + var irDocument = codeDocument.GetDocumentIntermediateNode(); Assert.NotNull(irDocument); return irDocument; } - private class MyExtensionIRNode : ExtensionIRNode + private class MyExtensionIntermediateNode : ExtensionIntermediateNode { - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { throw new NotImplementedException(); } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeDirectiveTargetExtensionTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeDirectiveTargetExtensionTest.cs index 4f2a736e9..7f890e3a9 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeDirectiveTargetExtensionTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeDirectiveTargetExtensionTest.cs @@ -19,7 +19,7 @@ public void WriteDesignTimeDirective_NoChildren_WritesEmptyMethod_WithPragma() Writer = new CSharpCodeWriter() }; - var node = new DesignTimeDirectiveIRNode(); + var node = new DesignTimeDirectiveIntermediateNode(); // Act extension.WriteDesignTimeDirective(context, node); @@ -47,8 +47,8 @@ public void WriteDesignTimeDirective_WithTypeToken_WritesLambda() CodeDocument = RazorCodeDocument.Create(RazorSourceDocument.Create("test content", "test.cshtml")) }; - var node = new DesignTimeDirectiveIRNode(); - var token = new DirectiveTokenIRNode() + var node = new DesignTimeDirectiveIntermediateNode(); + var token = new DirectiveTokenIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), Content = "System.String", @@ -86,8 +86,8 @@ public void WriteDesignTimeDirective_WithNamespaceToken_WritesLambda() CodeDocument = RazorCodeDocument.Create(RazorSourceDocument.Create("test content", "test.cshtml")) }; - var node = new DesignTimeDirectiveIRNode(); - var token = new DirectiveTokenIRNode() + var node = new DesignTimeDirectiveIntermediateNode(); + var token = new DirectiveTokenIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), Content = "System.Collections.Generic", @@ -125,8 +125,8 @@ public void WriteDesignTimeDirective_WithMemberToken_WritesLambda() CodeDocument = RazorCodeDocument.Create(RazorSourceDocument.Create("test content", "test.cshtml")) }; - var node = new DesignTimeDirectiveIRNode(); - var token = new DirectiveTokenIRNode() + var node = new DesignTimeDirectiveIntermediateNode(); + var token = new DirectiveTokenIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), Content = "Foo", @@ -164,14 +164,14 @@ public void WriteDesignTimeDirective_WithStringToken_WritesLambda() CodeDocument = RazorCodeDocument.Create(RazorSourceDocument.Create("test content", "test.cshtml")) }; - var node = new DesignTimeDirectiveIRNode(); - var token = new DirectiveTokenIRNode() + var node = new DesignTimeDirectiveIntermediateNode(); + var token = new DirectiveTokenIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), Content = "Value", Descriptor = DirectiveTokenDescriptor.CreateToken(DirectiveTokenKind.String), }; - var tokenWithQuotedContent = new DirectiveTokenIRNode() + var tokenWithQuotedContent = new DirectiveTokenIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 5), Content = "\"Value\"", @@ -214,8 +214,8 @@ public void WriteDesignTimeDirective_ChildrenWithNoSource_WritesEmptyMethod_With CodeDocument = RazorCodeDocument.Create(RazorSourceDocument.Create("test content", "test.cshtml")) }; - var node = new DesignTimeDirectiveIRNode(); - var token = new DirectiveTokenIRNode() + var node = new DesignTimeDirectiveIntermediateNode(); + var token = new DirectiveTokenIntermediateNode() { Content = "Value", Descriptor = DirectiveTokenDescriptor.CreateToken(DirectiveTokenKind.String), diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeTagHelperWriterTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeTagHelperWriterTest.cs index 3cf147c85..85a8a9df9 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeTagHelperWriterTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeTagHelperWriterTest.cs @@ -17,7 +17,7 @@ public void WriteDeclareTagHelperFields_DeclaresUsedTagHelperTypes() // Arrange var writer = new DesignTimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer); - var node = new DeclareTagHelperFieldsIRNode(); + var node = new DeclareTagHelperFieldsIntermediateNode(); node.UsedTagHelperTypeNames.Add("PTagHelper"); node.UsedTagHelperTypeNames.Add("MyTagHelper"); @@ -40,7 +40,7 @@ public void WriteCreateTagHelper_RendersCorrectly_UsesSpecifiedTagHelperType() // Arrange var writer = new DesignTimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer); - var node = new CreateTagHelperIRNode() + var node = new CreateTagHelperIntermediateNode() { TagHelperTypeName = "TestNamespace.MyTagHelper" }; @@ -82,7 +82,7 @@ public void WriteSetTagHelperProperty_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument, engine); - var node = irDocument.Children.Last().Children[2] as SetTagHelperPropertyIRNode; + var node = irDocument.Children.Last().Children[2] as SetTagHelperPropertyIntermediateNode; var writer = new DesignTimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer, codeDocument); @@ -125,7 +125,7 @@ public void WriteSetTagHelperProperty_NonStringAttribute_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument, engine); - var node = irDocument.Children.Last().Children[2] as SetTagHelperPropertyIRNode; + var node = irDocument.Children.Last().Children[2] as SetTagHelperPropertyIntermediateNode; var writer = new DesignTimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer, codeDocument); @@ -172,7 +172,7 @@ public void WriteSetTagHelperProperty_IndexerAttribute_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument, engine); - var node = irDocument.Children.Last().Children[2] as SetTagHelperPropertyIRNode; + var node = irDocument.Children.Last().Children[2] as SetTagHelperPropertyIntermediateNode; var writer = new DesignTimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer, codeDocument); @@ -214,27 +214,27 @@ private static CSharpRenderingContext GetCSharpRenderingContext(TagHelperWriter return context; } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) { var engine = RazorEngine.Create(); return Lower(codeDocument, engine); } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) { for (var i = 0; i < engine.Phases.Count; i++) { var phase = engine.Phases[i]; phase.Execute(codeDocument); - if (phase is IRazorIRLoweringPhase) + if (phase is IRazorIntermediateNodeLoweringPhase) { break; } } - var irDocument = codeDocument.GetIRDocument(); + var irDocument = codeDocument.GetDocumentIntermediateNode(); Assert.NotNull(irDocument); return irDocument; diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/LiteralRuntimeBasicWriterTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/LiteralRuntimeBasicWriterTest.cs index 27979f247..811ecae19 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/LiteralRuntimeBasicWriterTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/LiteralRuntimeBasicWriterTest.cs @@ -20,15 +20,15 @@ public void WriteCSharpExpression_UsesWriteLiteral_WritesLinePragma_WithSource() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpExpressionIRNode() + var node = new CSharpExpressionIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 3), }; - var builder = RazorIRBuilder.Create(node); - builder.Add(new RazorIRToken() + var builder = IntermediateNodeBuilder.Create(node); + builder.Add(new IntermediateToken() { Content = "i++", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); // Act diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/PreallocatedAttributeTargetExtensionTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/PreallocatedAttributeTargetExtensionTest.cs index 8c7365800..51aa08cd6 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/PreallocatedAttributeTargetExtensionTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/PreallocatedAttributeTargetExtensionTest.cs @@ -19,7 +19,7 @@ public void WriteDeclarePreallocatedTagHelperHtmlAttribute_RendersCorrectly() Writer = new CSharpCodeWriter() }; - var node = new DeclarePreallocatedTagHelperHtmlAttributeIRNode() + var node = new DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode() { Name = "Foo", Value = "Bar", @@ -49,7 +49,7 @@ public void WriteDeclarePreallocatedTagHelperHtmlAttribute_Minimized_RendersCorr Writer = new CSharpCodeWriter() }; - var node = new DeclarePreallocatedTagHelperHtmlAttributeIRNode() + var node = new DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode() { Name = "Foo", Value = "Bar", @@ -79,7 +79,7 @@ public void WriteAddPreallocatedTagHelperHtmlAttribute_RendersCorrectly() Writer = new CSharpCodeWriter() }; - var node = new AddPreallocatedTagHelperHtmlAttributeIRNode() + var node = new AddPreallocatedTagHelperHtmlAttributeIntermediateNode() { VariableName = "_tagHelper1" }; @@ -106,7 +106,7 @@ public void WriteDeclarePreallocatedTagHelperAttribute_RendersCorrectly() Writer = new CSharpCodeWriter() }; - var node = new DeclarePreallocatedTagHelperAttributeIRNode() + var node = new DeclarePreallocatedTagHelperAttributeIntermediateNode() { Name = "Foo", Value = "Bar", @@ -143,7 +143,7 @@ public void WriteSetPreallocatedTagHelperProperty_RendersCorrectly() .PropertyName("FooProp") .Build(); - var node = new SetPreallocatedTagHelperPropertyIRNode() + var node = new SetPreallocatedTagHelperPropertyIntermediateNode() { AttributeName = descriptor.Name, TagHelperTypeName = "FooTagHelper", @@ -183,7 +183,7 @@ public void WriteSetPreallocatedTagHelperProperty_IndexerAttribute_RendersCorrec .PropertyName("FooProp") .Build(); - var node = new SetPreallocatedTagHelperPropertyIRNode() + var node = new SetPreallocatedTagHelperPropertyIntermediateNode() { AttributeName = "pre-Foo", TagHelperTypeName = "FooTagHelper", diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/RuntimeBasicWriterTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/RuntimeBasicWriterTest.cs index 6e0761a98..b853eefdd 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/RuntimeBasicWriterTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/RuntimeBasicWriterTest.cs @@ -21,7 +21,7 @@ public void WriteUsingStatement_NoSource_WritesContent() Writer = new Legacy.CSharpCodeWriter() }; - var node = new UsingStatementIRNode() + var node = new UsingStatementIntermediateNode() { Content = "System", }; @@ -48,7 +48,7 @@ public void WriteUsingStatement_WithSource_WritesContentWithLinePragma() Writer = new Legacy.CSharpCodeWriter() }; - var node = new UsingStatementIRNode() + var node = new UsingStatementIntermediateNode() { Content = "System", Source = new SourceSpan("test.cshtml", 0, 0, 0, 3), @@ -84,12 +84,12 @@ public void WriteCSharpExpression_SkipsLinePragma_WithoutSource() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpExpressionIRNode(); - var builder = RazorIRBuilder.Create(node); - builder.Add(new RazorIRToken() + var node = new CSharpExpressionIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(node); + builder.Add(new IntermediateToken() { Content = "i++", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); // Act @@ -119,15 +119,15 @@ public void WriteCSharpExpression_WritesLinePragma_WithSource() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpExpressionIRNode() + var node = new CSharpExpressionIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 3), }; - var builder = RazorIRBuilder.Create(node); - builder.Add(new RazorIRToken() + var builder = IntermediateNodeBuilder.Create(node); + builder.Add(new IntermediateToken() { Content = "i++", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); // Act @@ -160,21 +160,21 @@ public void WriteCSharpExpression_WithExtensionNode_WritesPadding() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpExpressionIRNode(); - var builder = RazorIRBuilder.Create(node); - builder.Add(new RazorIRToken() + var node = new CSharpExpressionIntermediateNode(); + var builder = IntermediateNodeBuilder.Create(node); + builder.Add(new IntermediateToken() { Content = "i", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); - builder.Add(new MyExtensionIRNode()); - builder.Add(new RazorIRToken() + builder.Add(new MyExtensionIntermediateNode()); + builder.Add(new IntermediateToken() { Content = "++", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); - context.RenderNode = (n) => Assert.IsType(n); + context.RenderNode = (n) => Assert.IsType(n); // Act writer.WriteCSharpExpression(context, node); @@ -205,24 +205,24 @@ public void WriteCSharpExpression_WithSource_WritesPadding() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpExpressionIRNode() + var node = new CSharpExpressionIntermediateNode() { Source = new SourceSpan("test.cshtml", 8, 0, 8, 3), }; - var builder = RazorIRBuilder.Create(node); - builder.Add(new RazorIRToken() + var builder = IntermediateNodeBuilder.Create(node); + builder.Add(new IntermediateToken() { Content = "i", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); - builder.Add(new MyExtensionIRNode()); - builder.Add(new RazorIRToken() + builder.Add(new MyExtensionIntermediateNode()); + builder.Add(new IntermediateToken() { Content = "++", - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, }); - context.RenderNode = (n) => Assert.IsType(n); + context.RenderNode = (n) => Assert.IsType(n); // Act writer.WriteCSharpExpression(context, node); @@ -251,11 +251,11 @@ public void WriteCSharpCode_WhitespaceContent_DoesNothing() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpCodeIRNode(); - RazorIRBuilder.Create(node) - .Add(new RazorIRToken() + var node = new CSharpCodeIntermediateNode(); + IntermediateNodeBuilder.Create(node) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = " \t" }); @@ -278,11 +278,11 @@ public void WriteCSharpCode_SkipsLinePragma_WithoutSource() Writer = new Legacy.CSharpCodeWriter(), }; - var node = new CSharpCodeIRNode(); - RazorIRBuilder.Create(node) - .Add(new RazorIRToken() + var node = new CSharpCodeIntermediateNode(); + IntermediateNodeBuilder.Create(node) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = "if (true) { }" }); @@ -310,14 +310,14 @@ public void WriteCSharpCode_WritesLinePragma_WithSource() Options = RazorCodeGenerationOptions.CreateDefault(), }; - var node = new CSharpCodeIRNode() + var node = new CSharpCodeIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 13), }; - RazorIRBuilder.Create(node) - .Add(new RazorIRToken() + IntermediateNodeBuilder.Create(node) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = "if (true) { }", }); @@ -349,14 +349,14 @@ public void WriteCSharpCode_WritesPadding_WithSource() Options = RazorCodeGenerationOptions.CreateDefault(), }; - var node = new CSharpCodeIRNode() + var node = new CSharpCodeIntermediateNode() { Source = new SourceSpan("test.cshtml", 0, 0, 0, 17), }; - RazorIRBuilder.Create(node) - .Add(new RazorIRToken() + IntermediateNodeBuilder.Create(node) + .Add(new IntermediateToken() { - Kind = RazorIRToken.TokenKind.CSharp, + Kind = IntermediateToken.TokenKind.CSharp, Content = " if (true) { }", }); @@ -387,11 +387,11 @@ public void WriteHtmlContent_RendersContentCorrectly() Options = RazorCodeGenerationOptions.CreateDefault(), }; - var node = new HtmlContentIRNode(); - node.Children.Add(new RazorIRToken() + var node = new HtmlContentIntermediateNode(); + node.Children.Add(new IntermediateToken() { Content = "SomeContent", - Kind = RazorIRToken.TokenKind.Html, + Kind = IntermediateToken.TokenKind.Html, }); // Act @@ -418,11 +418,11 @@ public void WriteHtmlContent_LargeStringLiteral_UsesMultipleWrites() }; - var node = new HtmlContentIRNode(); - node.Children.Add(new RazorIRToken() + var node = new HtmlContentIntermediateNode(); + node.Children.Add(new IntermediateToken() { Content = new string('*', 2000), - Kind = RazorIRToken.TokenKind.Html, + Kind = IntermediateToken.TokenKind.Html, }); // Act @@ -449,7 +449,7 @@ public void WriteHtmlAttribute_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument); - var node = irDocument.Children.OfType().Single(); + var node = irDocument.Children.OfType().Single(); // Act writer.WriteHtmlAttribute(context, node); @@ -476,7 +476,7 @@ public void WriteHtmlAttributeValue_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument); - var node = irDocument.Children.OfType().Single().Children[0] as HtmlAttributeValueIRNode; + var node = irDocument.Children.OfType().Single().Children[0] as HtmlAttributeValueIntermediateNode; // Act writer.WriteHtmlAttributeValue(context, node); @@ -501,7 +501,7 @@ public void WriteCSharpExpressionAttributeValue_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument); - var node = irDocument.Children.OfType().Single().Children[1] as CSharpExpressionAttributeValueIRNode; + var node = irDocument.Children.OfType().Single().Children[1] as CSharpExpressionAttributeValueIntermediateNode; // Act writer.WriteCSharpExpressionAttributeValue(context, node); @@ -531,7 +531,7 @@ public void WriteCSharpCodeAttributeValue_BuffersResult() var codeDocument = RazorCodeDocument.Create(sourceDocument); context.CodeDocument = codeDocument; var irDocument = Lower(codeDocument); - var node = irDocument.Children.OfType().Single().Children[1] as CSharpCodeAttributeValueIRNode; + var node = irDocument.Children.OfType().Single().Children[1] as CSharpCodeAttributeValueIntermediateNode; // Act writer.WriteCSharpCodeAttributeValue(context, node); @@ -616,39 +616,39 @@ private static CSharpRenderingContext GetCSharpRenderingContext(BasicWriter writ return context; } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) { var engine = RazorEngine.Create(); return Lower(codeDocument, engine); } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) { for (var i = 0; i < engine.Phases.Count; i++) { var phase = engine.Phases[i]; phase.Execute(codeDocument); - if (phase is IRazorIRLoweringPhase) + if (phase is IRazorIntermediateNodeLoweringPhase) { break; } } - var irDocument = codeDocument.GetIRDocument(); + var irDocument = codeDocument.GetDocumentIntermediateNode(); Assert.NotNull(irDocument); return irDocument; } - private class MyExtensionIRNode : ExtensionIRNode + private class MyExtensionIntermediateNode : ExtensionIntermediateNode { - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; public override SourceSpan? Source { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { throw new NotImplementedException(); } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/RuntimeTagHelperWriterTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/RuntimeTagHelperWriterTest.cs index 53b0f6007..32411dbd3 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/RuntimeTagHelperWriterTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/RuntimeTagHelperWriterTest.cs @@ -15,7 +15,7 @@ public class RuntimeTagHelperWriterTest public void WriteDeclareTagHelperFields_DeclaresRequiredFields() { // Arrange - var node = new DeclareTagHelperFieldsIRNode(); + var node = new DeclareTagHelperFieldsIntermediateNode(); var writer = new RuntimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer); @@ -52,7 +52,7 @@ public void WriteDeclareTagHelperFields_DeclaresRequiredFields() public void WriteDeclareTagHelperFields_DeclaresUsedTagHelperTypes() { // Arrange - var node = new DeclareTagHelperFieldsIRNode(); + var node = new DeclareTagHelperFieldsIntermediateNode(); node.UsedTagHelperTypeNames.Add("PTagHelper"); node.UsedTagHelperTypeNames.Add("MyTagHelper"); @@ -94,7 +94,7 @@ public void WriteDeclareTagHelperFields_DeclaresUsedTagHelperTypes() public void WriteTagHelperBody_RendersCorrectly_UsesTagNameAndModeFromContext() { // Arrange - var node = new TagHelperBodyIRNode(); + var node = new TagHelperBodyIntermediateNode(); var writer = new RuntimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer); context.IdGenerator = () => "test"; @@ -123,7 +123,7 @@ Render Children public void WriteCreateTagHelper_RendersCorrectly_UsesSpecifiedTagHelperType() { // Arrange - var node = new CreateTagHelperIRNode() + var node = new CreateTagHelperIntermediateNode() { TagHelperTypeName = "TestNamespace.MyTagHelper" }; @@ -147,7 +147,7 @@ public void WriteCreateTagHelper_RendersCorrectly_UsesSpecifiedTagHelperType() public void WriteTagHelper_RendersCorrectly_SetsTagNameAndModeInContext() { // Arrange - var node = new TagHelperIRNode(); + var node = new TagHelperIntermediateNode(); var writer = new RuntimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer); @@ -188,7 +188,7 @@ public void WriteAddTagHelperHtmlAttribute_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument, engine); - var node = irDocument.Children.Last().Children[2] as AddTagHelperHtmlAttributeIRNode; + var node = irDocument.Children.Last().Children[2] as AddTagHelperHtmlAttributeIntermediateNode; var writer = new RuntimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer, codeDocument); @@ -226,7 +226,7 @@ public void WriteAddTagHelperHtmlAttribute_DataAttribute_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument, engine); - var node = irDocument.Children.Last().Children[2] as AddTagHelperHtmlAttributeIRNode; + var node = irDocument.Children.Last().Children[2] as AddTagHelperHtmlAttributeIntermediateNode; var writer = new RuntimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer, codeDocument); @@ -264,7 +264,7 @@ public void WriteAddTagHelperHtmlAttribute_DynamicAttribute_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument, engine); - var node = irDocument.Children.Last().Children[2] as AddTagHelperHtmlAttributeIRNode; + var node = irDocument.Children.Last().Children[2] as AddTagHelperHtmlAttributeIntermediateNode; var writer = new RuntimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer, codeDocument); @@ -308,7 +308,7 @@ public void WriteSetTagHelperProperty_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument, engine); - var node = irDocument.Children.Last().Children[2] as SetTagHelperPropertyIRNode; + var node = irDocument.Children.Last().Children[2] as SetTagHelperPropertyIntermediateNode; var writer = new RuntimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer, codeDocument); @@ -356,7 +356,7 @@ public void WriteSetTagHelperProperty_NonStringAttribute_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument, engine); - var node = irDocument.Children.Last().Children[2] as SetTagHelperPropertyIRNode; + var node = irDocument.Children.Last().Children[2] as SetTagHelperPropertyIntermediateNode; var writer = new RuntimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer, codeDocument); @@ -404,7 +404,7 @@ public void WriteSetTagHelperProperty_IndexerAttribute_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument, engine); - var node = irDocument.Children.Last().Children[2] as SetTagHelperPropertyIRNode; + var node = irDocument.Children.Last().Children[2] as SetTagHelperPropertyIntermediateNode; var writer = new RuntimeTagHelperWriter(); var context = GetCSharpRenderingContext(writer, codeDocument); @@ -450,27 +450,27 @@ private static CSharpRenderingContext GetCSharpRenderingContext(TagHelperWriter return context; } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) { var engine = RazorEngine.Create(); return Lower(codeDocument, engine); } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) { for (var i = 0; i < engine.Phases.Count; i++) { var phase = engine.Phases[i]; phase.Execute(codeDocument); - if (phase is IRazorIRLoweringPhase) + if (phase is IRazorIntermediateNodeLoweringPhase) { break; } } - var irDocument = codeDocument.GetIRDocument(); + var irDocument = codeDocument.GetDocumentIntermediateNode(); Assert.NotNull(irDocument); return irDocument; diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/TagHelperHtmlAttributeRuntimeBasicWriterTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/TagHelperHtmlAttributeRuntimeBasicWriterTest.cs index cf33a4d31..6d07b210b 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/TagHelperHtmlAttributeRuntimeBasicWriterTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/TagHelperHtmlAttributeRuntimeBasicWriterTest.cs @@ -19,7 +19,7 @@ public void WriteHtmlAttributeValue_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument); - var node = irDocument.Children.OfType().Single().Children[0] as HtmlAttributeValueIRNode; + var node = irDocument.Children.OfType().Single().Children[0] as HtmlAttributeValueIntermediateNode; // Act writer.WriteHtmlAttributeValue(context, node); @@ -43,7 +43,7 @@ public void WriteCSharpExpressionAttributeValue_RendersCorrectly() var sourceDocument = TestRazorSourceDocument.Create(content); var codeDocument = RazorCodeDocument.Create(sourceDocument); var irDocument = Lower(codeDocument); - var node = irDocument.Children.OfType().Single().Children[1] as CSharpExpressionAttributeValueIRNode; + var node = irDocument.Children.OfType().Single().Children[1] as CSharpExpressionAttributeValueIntermediateNode; // Act writer.WriteCSharpExpressionAttributeValue(context, node); @@ -72,7 +72,7 @@ public void WriteCSharpCodeAttributeValue_BuffersResult() var codeDocument = RazorCodeDocument.Create(sourceDocument); context.CodeDocument = codeDocument; var irDocument = Lower(codeDocument); - var node = irDocument.Children.OfType().Single().Children[1] as CSharpCodeAttributeValueIRNode; + var node = irDocument.Children.OfType().Single().Children[1] as CSharpCodeAttributeValueIntermediateNode; // Act writer.WriteCSharpCodeAttributeValue(context, node); @@ -113,27 +113,27 @@ private static CSharpRenderingContext GetCSharpRenderingContext(BasicWriter writ return context; } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) { var engine = RazorEngine.Create(); return Lower(codeDocument, engine); } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) { for (var i = 0; i < engine.Phases.Count; i++) { var phase = engine.Phases[i]; phase.Execute(codeDocument); - if (phase is IRazorIRLoweringPhase) + if (phase is IRazorIntermediateNodeLoweringPhase) { break; } } - var irDocument = codeDocument.GetIRDocument(); + var irDocument = codeDocument.GetDocumentIntermediateNode(); Assert.NotNull(irDocument); return irDocument; diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultDocumentClassifierPassTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultDocumentClassifierPassTest.cs index b87fee45f..3ccf78e18 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultDocumentClassifierPassTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultDocumentClassifierPassTest.cs @@ -4,7 +4,7 @@ using Microsoft.AspNetCore.Razor.Language.Intermediate; using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.RazorIRAssert; +using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; namespace Microsoft.AspNetCore.Razor.Language { @@ -16,7 +16,7 @@ public class DefaultDocumentClassifierPassTest public void Execute_IgnoresDocumentsWithDocumentKind() { // Arrange - var irDocument = new DocumentIRNode() + var documentNode = new DocumentIntermediateNode() { DocumentKind = "ignore", Options = RazorCodeGenerationOptions.CreateDefault(), @@ -26,18 +26,18 @@ public void Execute_IgnoresDocumentsWithDocumentKind() pass.Engine = RazorEngine.CreateEmpty(b => { }); // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), irDocument); + pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); // Assert - Assert.Equal("ignore", irDocument.DocumentKind); - NoChildren(irDocument); + Assert.Equal("ignore", documentNode.DocumentKind); + NoChildren(documentNode); } [Fact] public void Execute_CreatesClassStructure() { // Arrange - var irDocument = new DocumentIRNode() + var documentNode = new DocumentIntermediateNode() { Options = RazorCodeGenerationOptions.CreateDefault(), }; @@ -46,14 +46,14 @@ public void Execute_CreatesClassStructure() pass.Engine = RazorEngine.CreateEmpty(b =>{ }); // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), irDocument); + pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); // Assert - Assert.Equal("default", irDocument.DocumentKind); + Assert.Equal("default", documentNode.DocumentKind); - var @namespace = SingleChild(irDocument); - var @class = SingleChild(@namespace); - var method = SingleChild(@class); + var @namespace = SingleChild(documentNode); + var @class = SingleChild(@namespace); + var method = SingleChild(@class); NoChildren(method); } } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorCSharpLoweringPhaseTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorCSharpLoweringPhaseTest.cs index 333c88fa4..a3b6271f8 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorCSharpLoweringPhaseTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorCSharpLoweringPhaseTest.cs @@ -26,7 +26,7 @@ public void Execute_ThrowsForMissingDependency_IRDocument() // Act & Assert ExceptionAssert.Throws( () => phase.Execute(codeDocument), - $"The '{nameof(DefaultRazorCSharpLoweringPhase)}' phase requires a '{nameof(DocumentIRNode)}' " + + $"The '{nameof(DefaultRazorCSharpLoweringPhase)}' phase requires a '{nameof(DocumentIntermediateNode)}' " + $"provided by the '{nameof(RazorCodeDocument)}'."); } @@ -42,17 +42,17 @@ public void Execute_ThrowsForMissingDependency_CodeTarget() codeDocument.SetSyntaxTree(RazorSyntaxTree.Parse(codeDocument.Source)); - var irDocument = new DocumentIRNode() + var irDocument = new DocumentIntermediateNode() { DocumentKind = "test", }; - codeDocument.SetIRDocument(irDocument); + codeDocument.SetDocumentIntermediateNode(irDocument); // Act & Assert ExceptionAssert.Throws( () => phase.Execute(codeDocument), $"The document of kind 'test' does not have a '{nameof(CodeTarget)}'. " + - $"The document classifier must set a value for '{nameof(DocumentIRNode.Target)}'."); + $"The document classifier must set a value for '{nameof(DocumentIntermediateNode.Target)}'."); } [Fact] @@ -63,7 +63,7 @@ public void Execute_CollatesIRDocumentDiagnosticsFromSourceDocument() var engine = RazorEngine.CreateEmpty(b => b.Phases.Add(phase)); var codeDocument = TestRazorCodeDocument.Create("

"I am an error.", RazorDiagnosticSeverity.Error), new SourceSpan("SomeFile.cshtml", 11, 0, 11, 1)); irDocument.Diagnostics.Add(expectedDiagnostic); - codeDocument.SetIRDocument(irDocument); + codeDocument.SetDocumentIntermediateNode(irDocument); // Act phase.Execute(codeDocument); diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorDirectiveClassifierPhaseTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorDirectiveClassifierPhaseTest.cs index 130e0ccdf..e6de3cfc8 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorDirectiveClassifierPhaseTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorDirectiveClassifierPhaseTest.cs @@ -48,7 +48,7 @@ public void Execute_ThrowsForMissingDependency() // Act & Assert ExceptionAssert.Throws( () => phase.Execute(codeDocument), - $"The '{nameof(DefaultRazorDirectiveClassifierPhase)}' phase requires a '{nameof(DocumentIRNode)}' " + + $"The '{nameof(DefaultRazorDirectiveClassifierPhase)}' phase requires a '{nameof(DocumentIntermediateNode)}' " + $"provided by the '{nameof(RazorCodeDocument)}'."); } @@ -60,10 +60,10 @@ public void Execute_ExecutesPhasesInOrder() // We're going to set up mocks to simulate a sequence of passes. We don't care about // what's in the nodes, we're just going to look at the identity via strict mocks. - var originalNode = new DocumentIRNode(); - var firstPassNode = new DocumentIRNode(); - var secondPassNode = new DocumentIRNode(); - codeDocument.SetIRDocument(originalNode); + var originalNode = new DocumentIntermediateNode(); + var firstPassNode = new DocumentIntermediateNode(); + var secondPassNode = new DocumentIntermediateNode(); + codeDocument.SetDocumentIntermediateNode(originalNode); var firstPass = new Mock(MockBehavior.Strict); firstPass.SetupGet(m => m.Order).Returns(0); @@ -96,7 +96,7 @@ public void Execute_ExecutesPhasesInOrder() phase.Execute(codeDocument); // Assert - Assert.Same(secondPassNode, codeDocument.GetIRDocument().Children[0].Children[0]); + Assert.Same(secondPassNode, codeDocument.GetDocumentIntermediateNode().Children[0].Children[0]); } } } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorDocumentClassifierPhaseTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorDocumentClassifierPhaseTest.cs index 78979ef2f..00efb73c8 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorDocumentClassifierPhaseTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorDocumentClassifierPhaseTest.cs @@ -48,7 +48,7 @@ public void Execute_ThrowsForMissingDependency() // Act & Assert ExceptionAssert.Throws( () => phase.Execute(codeDocument), - $"The '{nameof(DefaultRazorDocumentClassifierPhase)}' phase requires a '{nameof(DocumentIRNode)}' " + + $"The '{nameof(DefaultRazorDocumentClassifierPhase)}' phase requires a '{nameof(DocumentIntermediateNode)}' " + $"provided by the '{nameof(RazorCodeDocument)}'."); } @@ -60,10 +60,10 @@ public void Execute_ExecutesPhasesInOrder() // We're going to set up mocks to simulate a sequence of passes. We don't care about // what's in the nodes, we're just going to look at the identity via strict mocks. - var originalNode = new DocumentIRNode(); - var firstPassNode = new DocumentIRNode(); - var secondPassNode = new DocumentIRNode(); - codeDocument.SetIRDocument(originalNode); + var originalNode = new DocumentIntermediateNode(); + var firstPassNode = new DocumentIntermediateNode(); + var secondPassNode = new DocumentIntermediateNode(); + codeDocument.SetDocumentIntermediateNode(originalNode); var firstPass = new Mock(MockBehavior.Strict); firstPass.SetupGet(m => m.Order).Returns(0); @@ -96,7 +96,7 @@ public void Execute_ExecutesPhasesInOrder() phase.Execute(codeDocument); // Assert - Assert.Same(secondPassNode, codeDocument.GetIRDocument().Children[0].Children[0]); + Assert.Same(secondPassNode, codeDocument.GetDocumentIntermediateNode().Children[0].Children[0]); } } } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIRLoweringPhaseIntegrationTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs similarity index 82% rename from test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIRLoweringPhaseIntegrationTest.cs rename to test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs index 05506ade0..98662d8a0 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIRLoweringPhaseIntegrationTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs @@ -6,13 +6,13 @@ using Microsoft.AspNetCore.Razor.Language.Legacy; using Microsoft.AspNetCore.Razor.Language.Intermediate; using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.RazorIRAssert; +using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; using Moq; using Microsoft.AspNetCore.Razor.Language.Extensions; namespace Microsoft.AspNetCore.Razor.Language { - public class DefaultRazorIRLoweringPhaseIntegrationTest + public class DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest { [Fact] public void Lower_SetsOptions_Defaults() @@ -21,13 +21,13 @@ public void Lower_SetsOptions_Defaults() var codeDocument = TestRazorCodeDocument.CreateEmpty(); // Act - var irDocument = Lower(codeDocument); + var documentNode = Lower(codeDocument); // Assert - Assert.NotNull(irDocument.Options); - Assert.False(irDocument.Options.DesignTime); - Assert.Equal(4, irDocument.Options.IndentSize); - Assert.False(irDocument.Options.IndentWithTabs); + Assert.NotNull(documentNode.Options); + Assert.False(documentNode.Options.DesignTime); + Assert.Equal(4, documentNode.Options.IndentSize); + Assert.False(documentNode.Options.IndentWithTabs); } [Fact] @@ -48,17 +48,17 @@ public void Lower_SetsOptions_RunsConfigureCallbacks() }); // Act - var irDocument = Lower(codeDocument, builder: b => + var documentNode = Lower(codeDocument, builder: b => { b.Features.Add(callback.Object); }); // Assert - Assert.NotNull(irDocument.Options); - Assert.True(irDocument.Options.DesignTime); - Assert.Equal(17, irDocument.Options.IndentSize); - Assert.True(irDocument.Options.IndentWithTabs); - Assert.True(irDocument.Options.SuppressChecksum); + Assert.NotNull(documentNode.Options); + Assert.True(documentNode.Options.DesignTime); + Assert.Equal(17, documentNode.Options.IndentSize); + Assert.True(documentNode.Options.IndentWithTabs); + Assert.True(documentNode.Options.SuppressChecksum); } [Fact] @@ -68,10 +68,10 @@ public void Lower_HelloWorld() var codeDocument = TestRazorCodeDocument.Create("Hello, World!"); // Act - var irDocument = Lower(codeDocument); + var documentNode = Lower(codeDocument); // Assert - Children(irDocument, + Children(documentNode, n => Html("Hello, World!", n)); } @@ -87,10 +87,10 @@ public void Lower_HtmlWithDataDashAttributes() "); // Act - var irDocument = Lower(codeDocument); + var documentNode = Lower(codeDocument); // Assert - Children(irDocument, + Children(documentNode, n => Html( @" @@ -114,10 +114,10 @@ public void Lower_HtmlWithConditionalAttributes() "); // Act - var irDocument = Lower(codeDocument); + var documentNode = Lower(codeDocument); // Assert - Children(irDocument, + Children(documentNode, n => Html( @" @@ -129,7 +129,7 @@ public void Lower_HtmlWithConditionalAttributes() name: "val", suffix: "\"", node: n, - valueValidators: new Action[] + valueValidators: new Action[] { value => CSharpExpressionAttributeValue(string.Empty, "Hello", value), value => LiteralAttributeValue(" ", "World", value) @@ -146,14 +146,14 @@ public void Lower_WithFunctions() var codeDocument = TestRazorCodeDocument.Create(@"@functions { public int Foo { get; set; }}"); // Act - var irDocument = Lower(codeDocument); + var documentNode = Lower(codeDocument); // Assert - Children(irDocument, + Children(documentNode, n => Directive( "functions", n, - c => Assert.IsType(c))); + c => Assert.IsType(c))); } [Fact] @@ -164,10 +164,10 @@ public void Lower_WithUsing() var expectedSourceLocation = new SourceSpan(codeDocument.Source.FilePath, 1, 0, 1, 12); // Act - var irDocument = Lower(codeDocument); + var documentNode = Lower(codeDocument); // Assert - Children(irDocument, + Children(documentNode, n => { Using("System", n); @@ -190,10 +190,10 @@ public void Lower_TagHelpers() }; // Act - var irDocument = Lower(codeDocument, tagHelpers: tagHelpers); + var documentNode = Lower(codeDocument, tagHelpers: tagHelpers); // Assert - Children(irDocument, + Children(documentNode, n => Directive( SyntaxConstants.CSharp.AddTagHelperKeyword, n, @@ -204,8 +204,8 @@ public void Lower_TagHelpers() TagMode.StartTagAndEndTag, tagHelpers, n, - c => Assert.IsType(c), - c => Assert.IsType(c), + c => Assert.IsType(c), + c => Assert.IsType(c), c => TagHelperHtmlAttribute( "val", HtmlAttributeValueStyle.DoubleQuotes, @@ -230,10 +230,10 @@ public void Lower_TagHelpers_WithPrefix() }; // Act - var irDocument = Lower(codeDocument, tagHelpers: tagHelpers); + var documentNode = Lower(codeDocument, tagHelpers: tagHelpers); // Assert - Children(irDocument, + Children(documentNode, n => Directive( SyntaxConstants.CSharp.AddTagHelperKeyword, n, @@ -248,8 +248,8 @@ public void Lower_TagHelpers_WithPrefix() TagMode.StartTagAndEndTag, tagHelpers, n, - c => Assert.IsType(c), - c => Assert.IsType(c), + c => Assert.IsType(c), + c => Assert.IsType(c), c => TagHelperHtmlAttribute( "val", HtmlAttributeValueStyle.DoubleQuotes, @@ -275,11 +275,11 @@ @section test { }; // Act - var irDocument = Lower(codeDocument, tagHelpers: tagHelpers); + var documentNode = Lower(codeDocument, tagHelpers: tagHelpers); // Assert Children( - irDocument, + documentNode, n => Directive( SyntaxConstants.CSharp.AddTagHelperKeyword, n, @@ -294,8 +294,8 @@ @section test { TagMode.StartTagAndEndTag, tagHelpers, c1, - c2 => Assert.IsType(c2), - c2 => Assert.IsType(c2), + c2 => Assert.IsType(c2), + c2 => Assert.IsType(c2), c2 => TagHelperHtmlAttribute( "val", HtmlAttributeValueStyle.DoubleQuotes, @@ -328,11 +328,11 @@ public void Lower_TagHelpersWithBoundAttribute() }; // Act - var irDocument = Lower(codeDocument, tagHelpers: tagHelpers); + var documentNode = Lower(codeDocument, tagHelpers: tagHelpers); // Assert Children( - irDocument, + documentNode, n => Directive( SyntaxConstants.CSharp.AddTagHelperKeyword, n, @@ -343,8 +343,8 @@ public void Lower_TagHelpersWithBoundAttribute() TagMode.SelfClosing, tagHelpers, n, - c => Assert.IsType(c), - c => Assert.IsType(c), + c => Assert.IsType(c), + c => Assert.IsType(c), c => SetTagHelperProperty( "bound", "FooProp", @@ -368,11 +368,11 @@ public void Lower_WithImports_Using() var codeDocument = TestRazorCodeDocument.Create(source, imports); // Act - var irDocument = Lower(codeDocument); + var documentNode = Lower(codeDocument); // Assert Children( - irDocument, + documentNode, n => Using("System.Globalization", n), n => Using("System.Text", n), n => Using("System.Threading.Tasks", n), @@ -393,14 +393,14 @@ public void Lower_WithImports_Directive() var codeDocument = TestRazorCodeDocument.Create(source, imports); // Act - var irDocument = Lower(codeDocument, b => + var documentNode = Lower(codeDocument, b => { b.AddDirective(DirectiveDescriptor.CreateDirective("test", DirectiveKind.SingleLine, d => d.AddMemberToken())); }); // Assert Children( - irDocument, + documentNode, n => Directive("test", n, c => DirectiveToken(DirectiveTokenKind.Member, "value1", c)), n => Directive("test", n, c => DirectiveToken(DirectiveTokenKind.Member, "value2", c)), n => Html("

Hi!

", n)); @@ -419,18 +419,18 @@ public void Lower_WithImports_IgnoresBlockDirective() var codeDocument = TestRazorCodeDocument.Create(source, imports); // Act - var irDocument = Lower(codeDocument, b => + var documentNode = Lower(codeDocument, b => { b.AddDirective(DirectiveDescriptor.CreateDirective("block", DirectiveKind.RazorBlock, d => d.AddMemberToken())); }); // Assert Children( - irDocument, + documentNode, n => Html("

Hi!

", n)); } - private DocumentIRNode Lower( + private DocumentIntermediateNode Lower( RazorCodeDocument codeDocument, Action builder = null, IEnumerable tagHelpers = null) @@ -451,16 +451,16 @@ private DocumentIRNode Lower( var phase = engine.Phases[i]; phase.Execute(codeDocument); - if (phase is IRazorIRLoweringPhase) + if (phase is IRazorIntermediateNodeLoweringPhase) { break; } } - var irDocument = codeDocument.GetIRDocument(); - Assert.NotNull(irDocument); + var documentNode = codeDocument.GetDocumentIntermediateNode(); + Assert.NotNull(documentNode); - return irDocument; + return documentNode; } private static TagHelperDescriptor CreateTagHelperDescriptor( diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIRLoweringPhaseTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIntermediateNodeLoweringPhaseTest.cs similarity index 81% rename from test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIRLoweringPhaseTest.cs rename to test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIntermediateNodeLoweringPhaseTest.cs index ddb5cbe31..63e9b8743 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIRLoweringPhaseTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIntermediateNodeLoweringPhaseTest.cs @@ -2,20 +2,18 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using Microsoft.AspNetCore.Razor.Language.CodeGeneration; -using Microsoft.AspNetCore.Razor.Language.Intermediate; using Microsoft.AspNetCore.Testing; using Xunit; namespace Microsoft.AspNetCore.Razor.Language { - public class DefaultRazorIRLoweringPhaseTest + public class DefaultRazorIntermediateNodeLoweringPhaseTest { [Fact] public void Execute_ThrowsForMissingDependency_SyntaxTree() { // Arrange - var phase = new DefaultRazorIRLoweringPhase(); + var phase = new DefaultRazorIntermediateNodeLoweringPhase(); var engine = RazorEngine.CreateEmpty(b => b.Phases.Add(phase)); @@ -24,7 +22,7 @@ public void Execute_ThrowsForMissingDependency_SyntaxTree() // Act & Assert ExceptionAssert.Throws( () => phase.Execute(codeDocument), - $"The '{nameof(DefaultRazorIRLoweringPhase)}' phase requires a '{nameof(RazorSyntaxTree)}' " + + $"The '{nameof(DefaultRazorIntermediateNodeLoweringPhase)}' phase requires a '{nameof(RazorSyntaxTree)}' " + $"provided by the '{nameof(RazorCodeDocument)}'."); } @@ -32,7 +30,7 @@ public void Execute_ThrowsForMissingDependency_SyntaxTree() public void Execute_CollatesSyntaxDiagnosticsFromSourceDocument() { // Arrange - var phase = new DefaultRazorIRLoweringPhase(); + var phase = new DefaultRazorIntermediateNodeLoweringPhase(); var engine = RazorEngine.CreateEmpty(b => b.Phases.Add(phase)); var codeDocument = TestRazorCodeDocument.Create("

b.Phases.Add(phase)); var codeDocument = TestRazorCodeDocument.CreateEmpty(); @@ -68,8 +66,8 @@ public void Execute_CollatesSyntaxDiagnosticsFromImportDocuments() phase.Execute(codeDocument); // Assert - var irDocument = codeDocument.GetIRDocument(); - Assert.Collection(irDocument.Diagnostics, + var documentNode = codeDocument.GetDocumentIntermediateNode(); + Assert.Collection(documentNode.Diagnostics, diagnostic => { Assert.Equal(@"A space or line break was encountered after the ""@"" character. Only valid identifiers, keywords, comments, ""("" and ""{"" are valid at the start of a code block and they must occur immediately following ""@"" with no space in between.", diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIROptimizationPhaseTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorOptimizationPhaseTest.cs similarity index 71% rename from test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIROptimizationPhaseTest.cs rename to test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorOptimizationPhaseTest.cs index 1718206c7..7a5c45325 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorIROptimizationPhaseTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DefaultRazorOptimizationPhaseTest.cs @@ -9,16 +9,16 @@ namespace Microsoft.AspNetCore.Razor.Language { - public class DefaultRazorIROptimizationPhaseTest + public class DefaultRazorOptimizationPhaseTest { [Fact] public void OnInitialized_OrdersPassesInAscendingOrder() { // Arrange & Act - var phase = new DefaultRazorIROptimizationPhase(); + var phase = new DefaultRazorOptimizationPhase(); - var first = Mock.Of(p => p.Order == 15); - var second = Mock.Of(p => p.Order == 17); + var first = Mock.Of(p => p.Order == 15); + var second = Mock.Of(p => p.Order == 17); var engine = RazorEngine.CreateEmpty(b => { @@ -39,7 +39,7 @@ public void OnInitialized_OrdersPassesInAscendingOrder() public void Execute_ThrowsForMissingDependency() { // Arrange - var phase = new DefaultRazorIROptimizationPhase(); + var phase = new DefaultRazorOptimizationPhase(); var engine = RazorEngine.CreateEmpty(b => b.Phases.Add(phase)); @@ -48,7 +48,7 @@ public void Execute_ThrowsForMissingDependency() // Act & Assert ExceptionAssert.Throws( () => phase.Execute(codeDocument), - $"The '{nameof(DefaultRazorIROptimizationPhase)}' phase requires a '{nameof(DocumentIRNode)}' " + + $"The '{nameof(DefaultRazorOptimizationPhase)}' phase requires a '{nameof(DocumentIntermediateNode)}' " + $"provided by the '{nameof(RazorCodeDocument)}'."); } @@ -60,12 +60,12 @@ public void Execute_ExecutesPhasesInOrder() // We're going to set up mocks to simulate a sequence of passes. We don't care about // what's in the nodes, we're just going to look at the identity via strict mocks. - var originalNode = new DocumentIRNode(); - var firstPassNode = new DocumentIRNode(); - var secondPassNode = new DocumentIRNode(); - codeDocument.SetIRDocument(originalNode); + var originalNode = new DocumentIntermediateNode(); + var firstPassNode = new DocumentIntermediateNode(); + var secondPassNode = new DocumentIntermediateNode(); + codeDocument.SetDocumentIntermediateNode(originalNode); - var firstPass = new Mock(MockBehavior.Strict); + var firstPass = new Mock(MockBehavior.Strict); firstPass.SetupGet(m => m.Order).Returns(0); firstPass.SetupProperty(m => m.Engine); firstPass.Setup(m => m.Execute(codeDocument, originalNode)).Callback(() => @@ -73,7 +73,7 @@ public void Execute_ExecutesPhasesInOrder() originalNode.Children.Add(firstPassNode); }); - var secondPass = new Mock(MockBehavior.Strict); + var secondPass = new Mock(MockBehavior.Strict); secondPass.SetupGet(m => m.Order).Returns(1); secondPass.SetupProperty(m => m.Engine); secondPass.Setup(m => m.Execute(codeDocument, originalNode)).Callback(() => @@ -82,7 +82,7 @@ public void Execute_ExecutesPhasesInOrder() originalNode.Children[0].Children.Add(secondPassNode); }); - var phase = new DefaultRazorIROptimizationPhase(); + var phase = new DefaultRazorOptimizationPhase(); var engine = RazorEngine.CreateEmpty(b => { @@ -96,7 +96,7 @@ public void Execute_ExecutesPhasesInOrder() phase.Execute(codeDocument); // Assert - Assert.Same(secondPassNode, codeDocument.GetIRDocument().Children[0].Children[0]); + Assert.Same(secondPassNode, codeDocument.GetDocumentIntermediateNode().Children[0].Children[0]); } } } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DirectiveRemovalIROptimizationPassTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DirectiveRemovalOptimizationPassTest.cs similarity index 58% rename from test/Microsoft.AspNetCore.Razor.Language.Test/DirectiveRemovalIROptimizationPassTest.cs rename to test/Microsoft.AspNetCore.Razor.Language.Test/DirectiveRemovalOptimizationPassTest.cs index 297a69dbf..f8b415709 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DirectiveRemovalIROptimizationPassTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DirectiveRemovalOptimizationPassTest.cs @@ -4,14 +4,14 @@ using System; using Microsoft.AspNetCore.Razor.Language.Intermediate; using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.RazorIRAssert; +using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; namespace Microsoft.AspNetCore.Razor.Language { - public class DirectiveRemovalIROptimizationPassTest + public class DirectiveRemovalOptimizationPassTest { [Fact] - public void Execute_Custom_RemovesDirectiveIRNodeFromIRDocument() + public void Execute_Custom_RemovesDirectiveNodeFromDocument() { // Arrange var content = "@custom \"Hello\""; @@ -21,28 +21,28 @@ public void Execute_Custom_RemovesDirectiveIRNodeFromIRDocument() { b.AddDirective(DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, d => d.AddStringToken())); }); - var irDocument = Lower(codeDocument, defaultEngine); - var pass = new DirectiveRemovalIROptimizationPass() + var documentNode = Lower(codeDocument, defaultEngine); + var pass = new DirectiveRemovalOptimizationPass() { Engine = defaultEngine, }; // Act - pass.Execute(codeDocument, irDocument); + pass.Execute(codeDocument, documentNode); // Assert - Children(irDocument, - node => Assert.IsType(node)); - var @namespace = irDocument.Children[0]; + Children(documentNode, + node => Assert.IsType(node)); + var @namespace = documentNode.Children[0]; Children(@namespace, - node => Assert.IsType(node)); + node => Assert.IsType(node)); var @class = @namespace.Children[0]; - var method = SingleChild(@class); + var method = SingleChild(@class); Assert.Empty(method.Children); } [Fact] - public void Execute_MultipleCustomDirectives_RemovesDirectiveIRNodesFromIRDocument() + public void Execute_MultipleCustomDirectives_RemovesDirectiveNodesFromDocument() { // Arrange var content = "@custom \"Hello\"" + Environment.NewLine + "@custom \"World\""; @@ -52,27 +52,27 @@ public void Execute_MultipleCustomDirectives_RemovesDirectiveIRNodesFromIRDocume { b.AddDirective(DirectiveDescriptor.CreateDirective("custom", DirectiveKind.SingleLine, d => d.AddStringToken())); }); - var irDocument = Lower(codeDocument, defaultEngine); - var pass = new DirectiveRemovalIROptimizationPass() + var documentNode = Lower(codeDocument, defaultEngine); + var pass = new DirectiveRemovalOptimizationPass() { Engine = defaultEngine, }; // Act - pass.Execute(codeDocument, irDocument); + pass.Execute(codeDocument, documentNode); // Assert - Children(irDocument, - node => Assert.IsType(node)); - var @namespace = irDocument.Children[0]; + Children(documentNode, + node => Assert.IsType(node)); + var @namespace = documentNode.Children[0]; Children(@namespace, - node => Assert.IsType(node)); + node => Assert.IsType(node)); var @class = @namespace.Children[0]; - var method = SingleChild(@class); + var method = SingleChild(@class); Assert.Empty(method.Children); } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) { for (var i = 0; i < engine.Phases.Count; i++) { @@ -85,10 +85,10 @@ private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine } } - var irDocument = codeDocument.GetIRDocument(); - Assert.NotNull(irDocument); + var documentNode = codeDocument.GetDocumentIntermediateNode(); + Assert.NotNull(documentNode); - return irDocument; + return documentNode; } } } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/DocumentClassifierPassBaseTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/DocumentClassifierPassBaseTest.cs index 05fa50a73..4ecbcadc0 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/DocumentClassifierPassBaseTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/DocumentClassifierPassBaseTest.cs @@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Razor.Language.CodeGeneration; using Microsoft.AspNetCore.Razor.Language.Intermediate; using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.RazorIRAssert; +using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; namespace Microsoft.AspNetCore.Razor.Language { @@ -17,7 +17,7 @@ public class DocumentClassifierPassBaseTest public void Execute_HasDocumentKind_IgnoresDocument() { // Arrange - var irDocument = new DocumentIRNode() + var documentNode = new DocumentIntermediateNode() { DocumentKind = "ignore", Options = RazorCodeGenerationOptions.CreateDefault(), @@ -27,18 +27,18 @@ public void Execute_HasDocumentKind_IgnoresDocument() pass.Engine = RazorEngine.CreateEmpty(b => { }); // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), irDocument); + pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); // Assert - Assert.Equal("ignore", irDocument.DocumentKind); - NoChildren(irDocument); + Assert.Equal("ignore", documentNode.DocumentKind); + NoChildren(documentNode); } [Fact] public void Execute_NoMatch_IgnoresDocument() { // Arrange - var irDocument = new DocumentIRNode() + var documentNode = new DocumentIntermediateNode() { Options = RazorCodeGenerationOptions.CreateDefault(), }; @@ -50,18 +50,18 @@ public void Execute_NoMatch_IgnoresDocument() }; // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), irDocument); + pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); // Assert - Assert.Null(irDocument.DocumentKind); - NoChildren(irDocument); + Assert.Null(documentNode.DocumentKind); + NoChildren(documentNode); } [Fact] public void Execute_Match_AddsGlobalTargetExtensions() { // Arrange - var irDocument = new DocumentIRNode() + var documentNode = new DocumentIntermediateNode() { Options = RazorCodeGenerationOptions.CreateDefault(), }; @@ -86,7 +86,7 @@ public void Execute_Match_AddsGlobalTargetExtensions() pass.CodeTargetCallback = (builder) => extensions = builder.TargetExtensions.ToArray(); // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), irDocument); + pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); // Assert Assert.Equal(expected, extensions); @@ -96,7 +96,7 @@ public void Execute_Match_AddsGlobalTargetExtensions() public void Execute_Match_SetsDocumentType_AndCreatesStructure() { // Arrange - var irDocument = new DocumentIRNode() + var documentNode = new DocumentIntermediateNode() { Options = RazorCodeGenerationOptions.CreateDefault(), }; @@ -105,15 +105,15 @@ public void Execute_Match_SetsDocumentType_AndCreatesStructure() pass.Engine = RazorEngine.CreateEmpty(b => { }); // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), irDocument); + pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); // Assert - Assert.Equal("test", irDocument.DocumentKind); - Assert.NotNull(irDocument.Target); + Assert.Equal("test", documentNode.DocumentKind); + Assert.NotNull(documentNode.Target); - var @namespace = SingleChild(irDocument); - var @class = SingleChild(@namespace); - var method = SingleChild(@class); + var @namespace = SingleChild(documentNode); + var @class = SingleChild(@namespace); + var method = SingleChild(@class); NoChildren(method); } @@ -121,96 +121,96 @@ public void Execute_Match_SetsDocumentType_AndCreatesStructure() public void Execute_AddsUsingsToNamespace() { // Arrange - var irDocument = new DocumentIRNode() + var documentNode = new DocumentIntermediateNode() { Options = RazorCodeGenerationOptions.CreateDefault(), }; - var builder = RazorIRBuilder.Create(irDocument); - builder.Add(new UsingStatementIRNode()); + var builder = IntermediateNodeBuilder.Create(documentNode); + builder.Add(new UsingStatementIntermediateNode()); var pass = new TestDocumentClassifierPass(); pass.Engine = RazorEngine.CreateEmpty(b => { }); // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), irDocument); + pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); // Assert - var @namespace = SingleChild(irDocument); + var @namespace = SingleChild(documentNode); Children( @namespace, - n => Assert.IsType(n), - n => Assert.IsType(n)); + n => Assert.IsType(n), + n => Assert.IsType(n)); } [Fact] public void Execute_AddsTagHelperFieldsToClass() { // Arrange - var irDocument = new DocumentIRNode() + var documentNode = new DocumentIntermediateNode() { Options = RazorCodeGenerationOptions.CreateDefault(), }; - var builder = RazorIRBuilder.Create(irDocument); - builder.Add(new DeclareTagHelperFieldsIRNode()); + var builder = IntermediateNodeBuilder.Create(documentNode); + builder.Add(new DeclareTagHelperFieldsIntermediateNode()); var pass = new TestDocumentClassifierPass(); pass.Engine = RazorEngine.CreateEmpty(b => { }); // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), irDocument); + pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); // Assert - var @namespace = SingleChild(irDocument); - var @class = SingleChild(@namespace); + var @namespace = SingleChild(documentNode); + var @class = SingleChild(@namespace); Children( @class, - n => Assert.IsType(n), - n => Assert.IsType(n)); + n => Assert.IsType(n), + n => Assert.IsType(n)); } [Fact] public void Execute_AddsTheRestToMethod() { // Arrange - var irDocument = new DocumentIRNode() + var documentNode = new DocumentIntermediateNode() { Options = RazorCodeGenerationOptions.CreateDefault(), }; - var builder = RazorIRBuilder.Create(irDocument); - builder.Add(new HtmlContentIRNode()); - builder.Add(new CSharpCodeIRNode()); + var builder = IntermediateNodeBuilder.Create(documentNode); + builder.Add(new HtmlContentIntermediateNode()); + builder.Add(new CSharpCodeIntermediateNode()); var pass = new TestDocumentClassifierPass(); pass.Engine = RazorEngine.CreateEmpty(b => { }); // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), irDocument); + pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); // Assert - var @namespace = SingleChild(irDocument); - var @class = SingleChild(@namespace); - var method = SingleChild(@class); + var @namespace = SingleChild(documentNode); + var @class = SingleChild(@namespace); + var method = SingleChild(@class); Children( method, - n => Assert.IsType(n), - n => Assert.IsType(n)); + n => Assert.IsType(n), + n => Assert.IsType(n)); } [Fact] public void Execute_CanInitializeDefaults() { // Arrange - var irDocument = new DocumentIRNode() + var documentNode = new DocumentIntermediateNode() { Options = RazorCodeGenerationOptions.CreateDefault(), }; - var builder = RazorIRBuilder.Create(irDocument); - builder.Add(new HtmlContentIRNode()); - builder.Add(new CSharpCodeIRNode()); + var builder = IntermediateNodeBuilder.Create(documentNode); + builder.Add(new HtmlContentIntermediateNode()); + builder.Add(new CSharpCodeIntermediateNode()); var pass = new TestDocumentClassifierPass() { @@ -221,16 +221,16 @@ public void Execute_CanInitializeDefaults() }; // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), irDocument); + pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); // Assert - var @namespace = SingleChild(irDocument); + var @namespace = SingleChild(documentNode); Assert.Equal("TestNamespace", @namespace.Content); - var @class = SingleChild(@namespace); + var @class = SingleChild(@namespace); Assert.Equal("TestClass", @class.Name); - var method = SingleChild(@class); + var method = SingleChild(@class); Assert.Equal("TestMethod", method.Name); } @@ -238,14 +238,14 @@ public void Execute_CanInitializeDefaults() public void Execute_AddsPrimaryAnnotations() { // Arrange - var irDocument = new DocumentIRNode() + var documentNode = new DocumentIntermediateNode() { Options = RazorCodeGenerationOptions.CreateDefault(), }; - var builder = RazorIRBuilder.Create(irDocument); - builder.Add(new HtmlContentIRNode()); - builder.Add(new CSharpCodeIRNode()); + var builder = IntermediateNodeBuilder.Create(documentNode); + builder.Add(new HtmlContentIntermediateNode()); + builder.Add(new CSharpCodeIntermediateNode()); var pass = new TestDocumentClassifierPass() { @@ -256,22 +256,22 @@ public void Execute_AddsPrimaryAnnotations() }; // Act - pass.Execute(TestRazorCodeDocument.CreateEmpty(), irDocument); + pass.Execute(TestRazorCodeDocument.CreateEmpty(), documentNode); // Assert - var @namespace = SingleChild(irDocument); + var @namespace = SingleChild(documentNode); AnnotationEquals(@namespace, CommonAnnotations.PrimaryNamespace); - var @class = SingleChild(@namespace); + var @class = SingleChild(@namespace); AnnotationEquals(@class, CommonAnnotations.PrimaryClass); - var method = SingleChild(@class); + var method = SingleChild(@class); AnnotationEquals(method, CommonAnnotations.PrimaryMethod); } private class TestDocumentClassifierPass : DocumentClassifierPassBase { - public override int Order => RazorIRPassBase.DefaultFeatureOrder; + public override int Order => IntermediateNodePassBase.DefaultFeatureOrder; public bool ShouldMatch { get; set; } = true; @@ -285,16 +285,16 @@ private class TestDocumentClassifierPass : DocumentClassifierPassBase protected override string DocumentKind => "test"; - protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override bool IsMatch(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { return ShouldMatch; } protected override void OnDocumentStructureCreated( RazorCodeDocument codeDocument, - NamespaceDeclarationIRNode @namespace, - ClassDeclarationIRNode @class, - MethodDeclarationIRNode method) + NamespaceDeclarationIntermediateNode @namespace, + ClassDeclarationIntermediateNode @class, + MethodDeclarationIntermediateNode method) { @namespace.Content = Namespace; @class.Name = Class; diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/FunctionsDirectivePassTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/FunctionsDirectivePassTest.cs index 3482811ff..2566d7505 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/FunctionsDirectivePassTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/FunctionsDirectivePassTest.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Razor.Language.Intermediate; using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.RazorIRAssert; +using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; namespace Microsoft.AspNetCore.Razor.Language.Extensions { @@ -22,8 +22,8 @@ public void Execute_SkipsDocumentWithNoClassNode() var sourceDocument = TestRazorSourceDocument.Create("@functions { var value = true; }"); var codeDocument = RazorCodeDocument.Create(sourceDocument); - var irDocument = new DocumentIRNode(); - irDocument.Children.Add(new DirectiveIRNode() { Descriptor = FunctionsDirective.Directive, }); + var irDocument = new DocumentIntermediateNode(); + irDocument.Children.Add(new DirectiveIntermediateNode() { Descriptor = FunctionsDirective.Directive, }); // Act pass.Execute(codeDocument, irDocument); @@ -31,7 +31,7 @@ public void Execute_SkipsDocumentWithNoClassNode() // Assert Children( irDocument, - node => Assert.IsType(node)); + node => Assert.IsType(node)); } [Fact] @@ -55,20 +55,20 @@ public void Execute_MovesStatementsToClassLevel() // Assert Children( irDocument, - node => Assert.IsType(node)); + node => Assert.IsType(node)); var @namespace = irDocument.Children[0]; Children( @namespace, - node => Assert.IsType(node)); + node => Assert.IsType(node)); var @class = @namespace.Children[0]; Children( @class, - node => Assert.IsType(node), + node => Assert.IsType(node), node => CSharpCode(" var value = true; ", node)); - var method = (MethodDeclarationIRNode)@class.Children[0]; + var method = (MethodDeclarationIntermediateNode)@class.Children[0]; Assert.Empty(method.Children); } @@ -80,7 +80,7 @@ private static RazorEngine CreateEngine() }); } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) { for (var i = 0; i < engine.Phases.Count; i++) { @@ -93,7 +93,7 @@ private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine } } - var irDocument = codeDocument.GetIRDocument(); + var irDocument = codeDocument.GetDocumentIntermediateNode(); Assert.NotNull(irDocument); return irDocument; diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/InheritsDirectivePassTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/InheritsDirectivePassTest.cs index f938d5e20..471dbe349 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/InheritsDirectivePassTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/InheritsDirectivePassTest.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Razor.Language.Intermediate; using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.RazorIRAssert; +using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; namespace Microsoft.AspNetCore.Razor.Language.Extensions { @@ -22,8 +22,8 @@ public void Execute_SkipsDocumentWithNoClassNode() var sourceDocument = TestRazorSourceDocument.Create("@inherits Hello"); var codeDocument = RazorCodeDocument.Create(sourceDocument); - var irDocument = new DocumentIRNode(); - irDocument.Children.Add(new DirectiveIRNode() { Descriptor = FunctionsDirective.Directive, }); + var irDocument = new DocumentIntermediateNode(); + irDocument.Children.Add(new DirectiveIntermediateNode() { Descriptor = FunctionsDirective.Directive, }); // Act pass.Execute(codeDocument, irDocument); @@ -31,7 +31,7 @@ public void Execute_SkipsDocumentWithNoClassNode() // Assert Children( irDocument, - node => Assert.IsType(node)); + node => Assert.IsType(node)); } [Fact] @@ -56,14 +56,14 @@ public void Execute_Inherits_SetsClassDeclarationBaseType() // Assert Children( irDocument, - node => Assert.IsType(node)); + node => Assert.IsType(node)); var @namespace = irDocument.Children[0]; Children( @namespace, - node => Assert.IsType(node)); + node => Assert.IsType(node)); - var @class = (ClassDeclarationIRNode)@namespace.Children[0]; + var @class = (ClassDeclarationIntermediateNode)@namespace.Children[0]; Assert.Equal("Hello", @class.BaseType); } @@ -75,7 +75,7 @@ private static RazorEngine CreateEngine() }); } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) { for (var i = 0; i < engine.Phases.Count; i++) { @@ -88,7 +88,7 @@ private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine } } - var irDocument = codeDocument.GetIRDocument(); + var irDocument = codeDocument.GetDocumentIntermediateNode(); Assert.NotNull(irDocument); return irDocument; diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/SectionDirectivePassTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/SectionDirectivePassTest.cs index c148fdf49..69591573f 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/SectionDirectivePassTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/SectionDirectivePassTest.cs @@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Razor.Language.Intermediate; using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.RazorIRAssert; +using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; namespace Microsoft.AspNetCore.Razor.Language.Extensions { @@ -22,8 +22,8 @@ public void Execute_SkipsDocumentWithNoClassNode() var sourceDocument = TestRazorSourceDocument.Create("@section Header {

Hello World

}"); var codeDocument = RazorCodeDocument.Create(sourceDocument); - var irDocument = new DocumentIRNode(); - irDocument.Children.Add(new DirectiveIRNode() { Descriptor = SectionDirective.Directive, }); + var irDocument = new DocumentIntermediateNode(); + irDocument.Children.Add(new DirectiveIntermediateNode() { Descriptor = SectionDirective.Directive, }); // Act pass.Execute(codeDocument, irDocument); @@ -31,7 +31,7 @@ public void Execute_SkipsDocumentWithNoClassNode() // Assert Children( irDocument, - node => Assert.IsType(node)); + node => Assert.IsType(node)); } [Fact] @@ -56,17 +56,17 @@ public void Execute_WrapsStatementInSectionNode() // Assert Children( irDocument, - node => Assert.IsType(node)); + node => Assert.IsType(node)); var @namespace = irDocument.Children[0]; Children( @namespace, - node => Assert.IsType(node)); + node => Assert.IsType(node)); var @class = @namespace.Children[0]; - var method = SingleChild(@class); + var method = SingleChild(@class); - var section = SingleChild(method); + var section = SingleChild(method); Assert.Equal("Header", section.Name); Children(section, c => Html("

Hello World

", c)); } @@ -79,7 +79,7 @@ private static RazorEngine CreateEngine() }); } - private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) + private static DocumentIntermediateNode Lower(RazorCodeDocument codeDocument, RazorEngine engine) { for (var i = 0; i < engine.Phases.Count; i++) { @@ -92,7 +92,7 @@ private static DocumentIRNode Lower(RazorCodeDocument codeDocument, RazorEngine } } - var irDocument = codeDocument.GetIRDocument(); + var irDocument = codeDocument.GetDocumentIntermediateNode(); Assert.NotNull(irDocument); return irDocument; diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/SectionTargetExtensionTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/SectionTargetExtensionTest.cs index addc9012d..9ec5ffda1 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/SectionTargetExtensionTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/SectionTargetExtensionTest.cs @@ -4,7 +4,7 @@ using Microsoft.AspNetCore.Razor.Language.CodeGeneration; using Microsoft.AspNetCore.Razor.Language.Legacy; using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.RazorIRAssert; +using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; namespace Microsoft.AspNetCore.Razor.Language.Extensions { @@ -14,7 +14,7 @@ public class SectionTargetExtensionTest public void WriteSection_WritesSectionCode() { // Arrange - var node = new SectionIRNode() + var node = new SectionIntermediateNode() { Name = "MySection" }; @@ -56,7 +56,7 @@ public void WriteSection_WritesSectionCode() public void WriteSection_WritesSectionCode_DesignTime() { // Arrange - var node = new SectionIRNode() + var node = new SectionIntermediateNode() { Name = "MySection" }; diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/TemplateTargetExtensionTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/TemplateTargetExtensionTest.cs index 372b90f72..40c176b02 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/TemplateTargetExtensionTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/TemplateTargetExtensionTest.cs @@ -4,7 +4,7 @@ using Microsoft.AspNetCore.Razor.Language.CodeGeneration; using Microsoft.AspNetCore.Razor.Language.Legacy; using Xunit; -using static Microsoft.AspNetCore.Razor.Language.Intermediate.RazorIRAssert; +using static Microsoft.AspNetCore.Razor.Language.Intermediate.IntermediateNodeAssert; namespace Microsoft.AspNetCore.Razor.Language.Extensions { @@ -14,7 +14,7 @@ public class TemplateTargetExtensionTest public void WriteTemplate_WritesTemplateCode() { // Arrange - var node = new TemplateIRNode(); + var node = new TemplateIntermediateNode(); var extension = new TemplateTargetExtension() { diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/BasicIntegrationTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/BasicIntegrationTest.cs index 832f782f2..cac3abd76 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/BasicIntegrationTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/BasicIntegrationTest.cs @@ -20,7 +20,7 @@ public void Empty() engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); } [Fact] @@ -35,7 +35,7 @@ public void HelloWorld() engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); } [Fact] @@ -53,7 +53,7 @@ public void CustomDirective() engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); } [Fact] @@ -69,7 +69,7 @@ public void BuildEngine_CallProcess() // Assert Assert.NotNull(document.GetSyntaxTree()); - Assert.NotNull(document.GetIRDocument()); + Assert.NotNull(document.GetDocumentIntermediateNode()); } [Fact] diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/CodeGenerationIntegrationTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/CodeGenerationIntegrationTest.cs index 8f384d1ea..3d61cc376 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/CodeGenerationIntegrationTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/CodeGenerationIntegrationTest.cs @@ -901,7 +901,7 @@ private void DesignTimeTest() engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument()); AssertLineMappingsMatchBaseline(document); } @@ -927,7 +927,7 @@ private void RunTimeTest() engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument()); } @@ -953,7 +953,7 @@ private void RunRuntimeTagHelpersTest(IEnumerable descripto engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument()); } @@ -979,7 +979,7 @@ private void RunDesignTimeTagHelpersTest(IEnumerable descri engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument()); AssertLineMappingsMatchBaseline(document); } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/ExtensibleDirectiveTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/ExtensibleDirectiveTest.cs index f8d7a4f7d..7b8d9f3c2 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/ExtensibleDirectiveTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/ExtensibleDirectiveTest.cs @@ -25,7 +25,7 @@ public void NamespaceToken() engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); AssertCSharpDocumentMatchesBaseline(document.GetCSharpDocument()); AssertLineMappingsMatchBaseline(document); } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/HtmlAttributeIntegrationTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/HtmlAttributeIntegrationTest.cs index d885f4a53..881d10d1c 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/HtmlAttributeIntegrationTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/HtmlAttributeIntegrationTest.cs @@ -20,7 +20,7 @@ public void HtmlWithDataDashAttribute() engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); } [Fact] @@ -35,7 +35,7 @@ public void HtmlWithConditionalAttribute() engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); } } } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/TagHelpersIntegrationTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/TagHelpersIntegrationTest.cs index d65c605d6..9e7b370ee 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/TagHelpersIntegrationTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/TagHelpersIntegrationTest.cs @@ -28,7 +28,7 @@ public void SimpleTagHelpers() engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); } [Fact] @@ -57,7 +57,7 @@ public void TagHelpersWithBoundAttributes() engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); } [Fact] @@ -94,7 +94,7 @@ public void NestedTagHelpers() engine.Process(document); // Assert - AssertIRMatchesBaseline(document.GetIRDocument()); + AssertDocumentNodeMatchesBaseline(document.GetDocumentIntermediateNode()); } private static TagHelperDescriptor CreateTagHelperDescriptor( diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DefaultRazorIRBuilderTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DefaultRazorIntermediateNodeBuilderTest.cs similarity index 67% rename from test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DefaultRazorIRBuilderTest.cs rename to test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DefaultRazorIntermediateNodeBuilderTest.cs index da45ff3f4..63b5346f6 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DefaultRazorIRBuilderTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DefaultRazorIntermediateNodeBuilderTest.cs @@ -2,20 +2,18 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; -using Microsoft.AspNetCore.Razor.Language.Legacy; using Microsoft.AspNetCore.Testing; using Xunit; namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public class DefaultRazorIRBuilderTest + public class DefaultRazorIntermediateNodeBuilderTest { [Fact] public void Ctor_CreatesEmptyBuilder() { // Arrange & Act - var builder = new DefaultRazorIRBuilder(); + var builder = new DefaultRazorIntermediateNodeBuilder(); var current = builder.Current; // Assert @@ -26,8 +24,8 @@ public void Ctor_CreatesEmptyBuilder() public void Push_WhenEmpty_AddsNode() { // Arrange - var builder = new DefaultRazorIRBuilder(); - var node = new BasicIRNode(); + var builder = new DefaultRazorIntermediateNodeBuilder(); + var node = new BasicIntermediateNode(); // Act builder.Push(node); @@ -40,12 +38,12 @@ public void Push_WhenEmpty_AddsNode() public void Push_WhenNonEmpty_SetsUpChild() { // Arrange - var builder = new DefaultRazorIRBuilder(); + var builder = new DefaultRazorIntermediateNodeBuilder(); - var parent = new BasicIRNode(); + var parent = new BasicIntermediateNode(); builder.Push(parent); - var node = new BasicIRNode(); + var node = new BasicIntermediateNode(); // Act builder.Push(node); @@ -59,7 +57,7 @@ public void Push_WhenNonEmpty_SetsUpChild() public void Pop_ThrowsWhenEmpty() { // Arrange - var builder = new DefaultRazorIRBuilder(); + var builder = new DefaultRazorIntermediateNodeBuilder(); // Act & Assert ExceptionAssert.Throws( @@ -71,9 +69,9 @@ public void Pop_ThrowsWhenEmpty() public void Pop_SingleNodeDepth_RemovesAndReturnsNode() { // Arrange - var builder = new DefaultRazorIRBuilder(); + var builder = new DefaultRazorIntermediateNodeBuilder(); - var node = new BasicIRNode(); + var node = new BasicIntermediateNode(); builder.Push(node); // Act @@ -88,12 +86,12 @@ public void Pop_SingleNodeDepth_RemovesAndReturnsNode() public void Pop_MultipleNodeDepth_RemovesAndReturnsNode() { // Arrange - var builder = new DefaultRazorIRBuilder(); + var builder = new DefaultRazorIntermediateNodeBuilder(); - var parent = new BasicIRNode(); + var parent = new BasicIntermediateNode(); builder.Push(parent); - var node = new BasicIRNode(); + var node = new BasicIntermediateNode(); builder.Push(node); // Act @@ -108,12 +106,12 @@ public void Pop_MultipleNodeDepth_RemovesAndReturnsNode() public void Add_AddsToChildrenAndSetsParent() { // Arrange - var builder = new DefaultRazorIRBuilder(); + var builder = new DefaultRazorIntermediateNodeBuilder(); - var parent = new BasicIRNode(); + var parent = new BasicIntermediateNode(); builder.Push(parent); - var node = new BasicIRNode(); + var node = new BasicIntermediateNode(); // Act builder.Add(node); @@ -127,12 +125,12 @@ public void Add_AddsToChildrenAndSetsParent() public void Insert_AddsToChildren_EmptyCollection() { // Arrange - var builder = new DefaultRazorIRBuilder(); + var builder = new DefaultRazorIntermediateNodeBuilder(); - var parent = new BasicIRNode(); + var parent = new BasicIntermediateNode(); builder.Push(parent); - var node = new BasicIRNode(); + var node = new BasicIntermediateNode(); // Act builder.Insert(0, node); @@ -146,15 +144,15 @@ public void Insert_AddsToChildren_EmptyCollection() public void Insert_AddsToChildren_NonEmpyCollection() { // Arrange - var builder = new DefaultRazorIRBuilder(); + var builder = new DefaultRazorIntermediateNodeBuilder(); - var parent = new BasicIRNode(); + var parent = new BasicIntermediateNode(); builder.Push(parent); - var child = new BasicIRNode(); + var child = new BasicIntermediateNode(); builder.Add(child); - var node = new BasicIRNode(); + var node = new BasicIntermediateNode(); // Act builder.Insert(0, node); @@ -168,15 +166,15 @@ public void Insert_AddsToChildren_NonEmpyCollection() public void Insert_AddsToChildren_NonEmpyCollection_AtEnd() { // Arrange - var builder = new DefaultRazorIRBuilder(); + var builder = new DefaultRazorIntermediateNodeBuilder(); - var parent = new BasicIRNode(); + var parent = new BasicIntermediateNode(); builder.Push(parent); - var child = new BasicIRNode(); + var child = new BasicIntermediateNode(); builder.Add(child); - var node = new BasicIRNode(); + var node = new BasicIntermediateNode(); // Act builder.Insert(1, node); @@ -190,12 +188,12 @@ public void Insert_AddsToChildren_NonEmpyCollection_AtEnd() public void Build_PopsMultipleLevels() { // Arrange - var builder = new DefaultRazorIRBuilder(); + var builder = new DefaultRazorIntermediateNodeBuilder(); - var document = new DocumentIRNode(); + var document = new DocumentIntermediateNode(); builder.Push(document); - var node = new BasicIRNode(); + var node = new BasicIntermediateNode(); builder.Push(node); // Act @@ -206,19 +204,19 @@ public void Build_PopsMultipleLevels() Assert.Null(builder.Current); } - private class BasicIRNode : RazorIRNode + private class BasicIntermediateNode : IntermediateNode { public override ItemCollection Annotations { get; } = new DefaultItemCollection(); - public override RazorDiagnosticCollection Diagnostics { get; } = new DefaultDiagnosticCollection(); + public override RazorDiagnosticCollection Diagnostics { get; } = new DefaultRazorDiagnosticCollection(); - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } public override bool HasDiagnostics => Diagnostics.Count > 0; - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { throw new NotImplementedException(); } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DocumentIRNodeExtensionsTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DocumentIntermediateNodeExtensionsTest.cs similarity index 72% rename from test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DocumentIRNodeExtensionsTest.cs rename to test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DocumentIntermediateNodeExtensionsTest.cs index 70e2d35c9..7af8f1486 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DocumentIRNodeExtensionsTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/DocumentIntermediateNodeExtensionsTest.cs @@ -5,17 +5,17 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public class DocumentIRNodeExtensionsTest + public class DocumentIntermediateNodeExtensionsTest { [Fact] public void FindPrimaryClass_FindsClassWithAnnotation() { // Arrange - var document = new DocumentIRNode(); - var @class = new ClassDeclarationIRNode(); + var document = new DocumentIntermediateNode(); + var @class = new ClassDeclarationIntermediateNode(); @class.Annotations[CommonAnnotations.PrimaryClass] = CommonAnnotations.PrimaryClass; - var builder = RazorIRBuilder.Create(document); + var builder = IntermediateNodeBuilder.Create(document); builder.Add(@class); // Act @@ -29,11 +29,11 @@ public void FindPrimaryClass_FindsClassWithAnnotation() public void FindPrimaryMethod_FindsMethodWithAnnotation() { // Arrange - var document = new DocumentIRNode(); - var method = new MethodDeclarationIRNode(); + var document = new DocumentIntermediateNode(); + var method = new MethodDeclarationIntermediateNode(); method.Annotations[CommonAnnotations.PrimaryMethod] = CommonAnnotations.PrimaryMethod; - var builder = RazorIRBuilder.Create(document); + var builder = IntermediateNodeBuilder.Create(document); builder.Add(method); // Act @@ -47,11 +47,11 @@ public void FindPrimaryMethod_FindsMethodWithAnnotation() public void FindPrimaryNamespace_FindsNamespaceWithAnnotation() { // Arrange - var document = new DocumentIRNode(); - var @namespace = new NamespaceDeclarationIRNode(); + var document = new DocumentIntermediateNode(); + var @namespace = new NamespaceDeclarationIntermediateNode(); @namespace.Annotations[CommonAnnotations.PrimaryNamespace] = CommonAnnotations.PrimaryNamespace; - var builder = RazorIRBuilder.Create(document); + var builder = IntermediateNodeBuilder.Create(document); builder.Add(@namespace); // Act @@ -68,25 +68,25 @@ public void FindDirectiveReferences_FindsMatchingDirectives() var directive = DirectiveDescriptor.CreateSingleLineDirective("test"); var directive2 = DirectiveDescriptor.CreateSingleLineDirective("test"); - var document = new DocumentIRNode(); - var @namespace = new NamespaceDeclarationIRNode(); + var document = new DocumentIntermediateNode(); + var @namespace = new NamespaceDeclarationIntermediateNode(); - var builder = RazorIRBuilder.Create(document); + var builder = IntermediateNodeBuilder.Create(document); builder.Push(@namespace); - var match1 = new DirectiveIRNode() + var match1 = new DirectiveIntermediateNode() { Descriptor = directive, }; builder.Add(match1); - var nonMatch = new DirectiveIRNode() + var nonMatch = new DirectiveIntermediateNode() { Descriptor = directive2, }; builder.Add(nonMatch); - var match2 = new DirectiveIRNode() + var match2 = new DirectiveIntermediateNode() { Descriptor = directive, }; diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/ExtensionIRNodeTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/ExtensionIntermediateNodeTest.cs similarity index 64% rename from test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/ExtensionIRNodeTest.cs rename to test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/ExtensionIntermediateNodeTest.cs index 2bf7f701d..71aac3b8a 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/ExtensionIRNodeTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/ExtensionIntermediateNodeTest.cs @@ -2,21 +2,20 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; -using System.Collections.Generic; using Microsoft.AspNetCore.Razor.Language.CodeGeneration; using Xunit; namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - // These tests cover the methods on ExtensionIRNode that are used to implement visitors + // These tests cover the methods on ExtensionIntermediateNode that are used to implement visitors // that special case an extension node. - public class ExtensionIRNodeTest + public class ExtensionIntermediateNodeTest { [Fact] public void Accept_CallsStandardVisitExtension_ForStandardVisitor() { // Arrange - var node = new TestExtensionIRNode(); + var node = new TestExtensionIntermediateNode(); var visitor = new StandardVisitor(); // Act @@ -31,7 +30,7 @@ public void Accept_CallsStandardVisitExtension_ForStandardVisitor() public void Accept_CallsSpecialVisitExtension_ForSpecialVisitor() { // Arrange - var node = new TestExtensionIRNode(); + var node = new TestExtensionIntermediateNode(); var visitor = new SpecialVisitor(); // Act @@ -42,14 +41,14 @@ public void Accept_CallsSpecialVisitExtension_ForSpecialVisitor() Assert.True(visitor.WasSpecificMethodCalled); } - private class TestExtensionIRNode : ExtensionIRNode + private class TestExtensionIntermediateNode : ExtensionIntermediateNode { - public override RazorIRNodeCollection Children => ReadOnlyIRNodeCollection.Instance; + public override IntermediateNodeCollection Children => ReadOnlyIntermediateNodeCollection.Instance; - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { // This is the standard visitor boilerplate for an extension node. - AcceptExtensionNode(this, visitor); + AcceptExtensionNode(this, visitor); } public override void WriteNode(CodeTarget target, CSharpRenderingContext context) @@ -58,33 +57,33 @@ public override void WriteNode(CodeTarget target, CSharpRenderingContext context } } - private class StandardVisitor : RazorIRNodeVisitor + private class StandardVisitor : IntermediateNodeVisitor { public bool WasStandardMethodCalled { get; private set; } public bool WasSpecificMethodCalled { get; private set; } - public override void VisitExtension(ExtensionIRNode node) + public override void VisitExtension(ExtensionIntermediateNode node) { WasStandardMethodCalled = true; } - public void VisitExtension(TestExtensionIRNode node) + public void VisitExtension(TestExtensionIntermediateNode node) { WasSpecificMethodCalled = true; } } - private class SpecialVisitor : RazorIRNodeVisitor, IExtensionIRNodeVisitor + private class SpecialVisitor : IntermediateNodeVisitor, IExtensionIntermediateNodeVisitor { public bool WasStandardMethodCalled { get; private set; } public bool WasSpecificMethodCalled { get; private set; } - public override void VisitExtension(ExtensionIRNode node) + public override void VisitExtension(ExtensionIntermediateNode node) { WasStandardMethodCalled = true; } - public void VisitExtension(TestExtensionIRNode node) + public void VisitExtension(TestExtensionIntermediateNode node) { WasSpecificMethodCalled = true; } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/RazorIRNodeReferenceTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/IntermediateNodeReferenceTest.cs similarity index 58% rename from test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/RazorIRNodeReferenceTest.cs rename to test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/IntermediateNodeReferenceTest.cs index 1be15d9eb..983546657 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/RazorIRNodeReferenceTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/IntermediateNodeReferenceTest.cs @@ -6,22 +6,22 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public class RazorIRNodeReferenceTest + public class IntermediateNodeReferenceTest { [Fact] public void InsertAfter_SingleNode_AddsNodeAfterNode() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); - var node2 = new BasicIRNode("Node2"); - var node3 = new BasicIRNode("Node3"); + var node1 = new BasicIntermediateNode("Node1"); + var node2 = new BasicIntermediateNode("Node2"); + var node3 = new BasicIntermediateNode("Node3"); parent.Children.Add(node1); parent.Children.Add(node3); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act reference.InsertAfter(node2); @@ -34,16 +34,16 @@ public void InsertAfter_SingleNode_AddsNodeAfterNode() public void InsertAfter_SingleNode_AddsNodeAfterNode_AtEnd() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); - var node2 = new BasicIRNode("Node2"); - var node3 = new BasicIRNode("Node3"); + var node1 = new BasicIntermediateNode("Node1"); + var node2 = new BasicIntermediateNode("Node2"); + var node3 = new BasicIntermediateNode("Node3"); parent.Children.Add(node1); parent.Children.Add(node2); - var reference = new RazorIRNodeReference(parent, node2); + var reference = new IntermediateNodeReference(parent, node2); // Act reference.InsertAfter(node3); @@ -56,17 +56,17 @@ public void InsertAfter_SingleNode_AddsNodeAfterNode_AtEnd() public void InsertAfter_MultipleNodes_AddsNodesAfterNode() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); - var node2 = new BasicIRNode("Node2"); - var node3 = new BasicIRNode("Node3"); - var node4 = new BasicIRNode("Node4"); + var node1 = new BasicIntermediateNode("Node1"); + var node2 = new BasicIntermediateNode("Node2"); + var node3 = new BasicIntermediateNode("Node3"); + var node4 = new BasicIntermediateNode("Node4"); parent.Children.Add(node1); parent.Children.Add(node4); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act reference.InsertAfter(new[] { node2, node3 }); @@ -79,17 +79,17 @@ public void InsertAfter_MultipleNodes_AddsNodesAfterNode() public void InsertAfter_MultipleNodes_AddsNodesAfterNode_AtEnd() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); - var node2 = new BasicIRNode("Node2"); - var node3 = new BasicIRNode("Node3"); - var node4 = new BasicIRNode("Node4"); + var node1 = new BasicIntermediateNode("Node1"); + var node2 = new BasicIntermediateNode("Node2"); + var node3 = new BasicIntermediateNode("Node3"); + var node4 = new BasicIntermediateNode("Node4"); parent.Children.Add(node1); parent.Children.Add(node2); - var reference = new RazorIRNodeReference(parent, node2); + var reference = new IntermediateNodeReference(parent, node2); // Act reference.InsertAfter(new[] { node3, node4 }); @@ -102,16 +102,16 @@ public void InsertAfter_MultipleNodes_AddsNodesAfterNode_AtEnd() public void InsertBefore_SingleNode_AddsNodeBeforeNode() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); - var node2 = new BasicIRNode("Node2"); - var node3 = new BasicIRNode("Node3"); + var node1 = new BasicIntermediateNode("Node1"); + var node2 = new BasicIntermediateNode("Node2"); + var node3 = new BasicIntermediateNode("Node3"); parent.Children.Add(node1); parent.Children.Add(node3); - var reference = new RazorIRNodeReference(parent, node3); + var reference = new IntermediateNodeReference(parent, node3); // Act reference.InsertBefore(node2); @@ -124,16 +124,16 @@ public void InsertBefore_SingleNode_AddsNodeBeforeNode() public void InsertBefore_SingleNode_AddsNodeBeforeNode_AtBeginning() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); - var node2 = new BasicIRNode("Node2"); - var node3 = new BasicIRNode("Node3"); + var node1 = new BasicIntermediateNode("Node1"); + var node2 = new BasicIntermediateNode("Node2"); + var node3 = new BasicIntermediateNode("Node3"); parent.Children.Add(node2); parent.Children.Add(node3); - var reference = new RazorIRNodeReference(parent, node2); + var reference = new IntermediateNodeReference(parent, node2); // Act reference.InsertBefore(node1); @@ -146,17 +146,17 @@ public void InsertBefore_SingleNode_AddsNodeBeforeNode_AtBeginning() public void InsertBefore_MultipleNodes_AddsNodesBeforeNode() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); - var node2 = new BasicIRNode("Node2"); - var node3 = new BasicIRNode("Node3"); - var node4 = new BasicIRNode("Node4"); + var node1 = new BasicIntermediateNode("Node1"); + var node2 = new BasicIntermediateNode("Node2"); + var node3 = new BasicIntermediateNode("Node3"); + var node4 = new BasicIntermediateNode("Node4"); parent.Children.Add(node1); parent.Children.Add(node4); - var reference = new RazorIRNodeReference(parent, node4); + var reference = new IntermediateNodeReference(parent, node4); // Act reference.InsertBefore(new[] { node2, node3 }); @@ -169,17 +169,17 @@ public void InsertBefore_MultipleNodes_AddsNodesBeforeNode() public void InsertAfter_MultipleNodes_AddsNodesBeforeNode_AtBeginning() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); - var node2 = new BasicIRNode("Node2"); - var node3 = new BasicIRNode("Node3"); - var node4 = new BasicIRNode("Node4"); + var node1 = new BasicIntermediateNode("Node1"); + var node2 = new BasicIntermediateNode("Node2"); + var node3 = new BasicIntermediateNode("Node3"); + var node4 = new BasicIntermediateNode("Node4"); parent.Children.Add(node3); parent.Children.Add(node4); - var reference = new RazorIRNodeReference(parent, node3); + var reference = new IntermediateNodeReference(parent, node3); // Act reference.InsertBefore(new[] { node1, node2 }); @@ -192,17 +192,17 @@ public void InsertAfter_MultipleNodes_AddsNodesBeforeNode_AtBeginning() public void Remove_RemovesNode() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); - var node2 = new BasicIRNode("Node2"); - var node3 = new BasicIRNode("Node3"); + var node1 = new BasicIntermediateNode("Node1"); + var node2 = new BasicIntermediateNode("Node2"); + var node3 = new BasicIntermediateNode("Node3"); parent.Children.Add(node1); parent.Children.Add(node3); parent.Children.Add(node2); - var reference = new RazorIRNodeReference(parent, node3); + var reference = new IntermediateNodeReference(parent, node3); // Act reference.Remove(); @@ -215,18 +215,18 @@ public void Remove_RemovesNode() public void Replace_ReplacesNode() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); - var node2 = new BasicIRNode("Node2"); - var node3 = new BasicIRNode("Node3"); - var node4 = new BasicIRNode("Node4"); + var node1 = new BasicIntermediateNode("Node1"); + var node2 = new BasicIntermediateNode("Node2"); + var node3 = new BasicIntermediateNode("Node3"); + var node4 = new BasicIntermediateNode("Node4"); parent.Children.Add(node1); parent.Children.Add(node4); parent.Children.Add(node3); - var reference = new RazorIRNodeReference(parent, node4); + var reference = new IntermediateNodeReference(parent, node4); // Act reference.Replace(node2); @@ -239,10 +239,10 @@ public void Replace_ReplacesNode() public void InsertAfter_SingleNode_ThrowsForReferenceNotInitialized() { // Arrange - var reference = new RazorIRNodeReference(); + var reference = new IntermediateNodeReference(); // Act & Assert - var exception = Assert.Throws(() => reference.InsertAfter(new BasicIRNode("_"))); + var exception = Assert.Throws(() => reference.InsertAfter(new BasicIntermediateNode("_"))); Assert.Equal("The reference is invalid. References initialized with the default constructor cannot modify nodes.", exception.Message); } @@ -250,10 +250,10 @@ public void InsertAfter_SingleNode_ThrowsForReferenceNotInitialized() public void InsertAfter_MulipleNodes_ThrowsForReferenceNotInitialized() { // Arrange - var reference = new RazorIRNodeReference(); + var reference = new IntermediateNodeReference(); // Act & Assert - var exception = Assert.Throws(() => reference.InsertAfter(new[] { new BasicIRNode("_") })); + var exception = Assert.Throws(() => reference.InsertAfter(new[] { new BasicIntermediateNode("_") })); Assert.Equal("The reference is invalid. References initialized with the default constructor cannot modify nodes.", exception.Message); } @@ -261,10 +261,10 @@ public void InsertAfter_MulipleNodes_ThrowsForReferenceNotInitialized() public void InsertBefore_SingleNode_ThrowsForReferenceNotInitialized() { // Arrange - var reference = new RazorIRNodeReference(); + var reference = new IntermediateNodeReference(); // Act & Assert - var exception = Assert.Throws(() => reference.InsertBefore(new BasicIRNode("_"))); + var exception = Assert.Throws(() => reference.InsertBefore(new BasicIntermediateNode("_"))); Assert.Equal("The reference is invalid. References initialized with the default constructor cannot modify nodes.", exception.Message); } @@ -272,10 +272,10 @@ public void InsertBefore_SingleNode_ThrowsForReferenceNotInitialized() public void InsertBefore_MulipleNodes_ThrowsForReferenceNotInitialized() { // Arrange - var reference = new RazorIRNodeReference(); + var reference = new IntermediateNodeReference(); // Act & Assert - var exception = Assert.Throws(() => reference.InsertBefore(new[] { new BasicIRNode("_") })); + var exception = Assert.Throws(() => reference.InsertBefore(new[] { new BasicIntermediateNode("_") })); Assert.Equal("The reference is invalid. References initialized with the default constructor cannot modify nodes.", exception.Message); } @@ -283,7 +283,7 @@ public void InsertBefore_MulipleNodes_ThrowsForReferenceNotInitialized() public void Remove_ThrowsForReferenceNotInitialized() { // Arrange - var reference = new RazorIRNodeReference(); + var reference = new IntermediateNodeReference(); // Act & Assert var exception = Assert.Throws(() => reference.Remove()); @@ -294,10 +294,10 @@ public void Remove_ThrowsForReferenceNotInitialized() public void Replace_ThrowsForReferenceNotInitialized() { // Arrange - var reference = new RazorIRNodeReference(); + var reference = new IntermediateNodeReference(); // Act & Assert - var exception = Assert.Throws(() => reference.Replace(new BasicIRNode("_"))); + var exception = Assert.Throws(() => reference.Replace(new BasicIntermediateNode("_"))); Assert.Equal("The reference is invalid. References initialized with the default constructor cannot modify nodes.", exception.Message); } @@ -305,14 +305,14 @@ public void Replace_ThrowsForReferenceNotInitialized() public void InsertAfter_SingleNode_ThrowsForReadOnlyCollection() { // Arrange - var parent = new BasicIRNode("Parent", ReadOnlyIRNodeCollection.Instance); + var parent = new BasicIntermediateNode("Parent", ReadOnlyIntermediateNodeCollection.Instance); - var node1 = new BasicIRNode("Node1"); + var node1 = new BasicIntermediateNode("Node1"); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act & Assert - var exception = Assert.Throws(() => reference.InsertAfter(new BasicIRNode("_"))); + var exception = Assert.Throws(() => reference.InsertAfter(new BasicIntermediateNode("_"))); Assert.Equal("The node 'Parent' has a read-only child collection and cannot be modified.", exception.Message); } @@ -320,14 +320,14 @@ public void InsertAfter_SingleNode_ThrowsForReadOnlyCollection() public void InsertAfter_MulipleNodes_ThrowsForReadOnlyCollection() { // Arrange - var parent = new BasicIRNode("Parent", ReadOnlyIRNodeCollection.Instance); + var parent = new BasicIntermediateNode("Parent", ReadOnlyIntermediateNodeCollection.Instance); - var node1 = new BasicIRNode("Node1"); + var node1 = new BasicIntermediateNode("Node1"); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act & Assert - var exception = Assert.Throws(() => reference.InsertAfter(new[] { new BasicIRNode("_") })); + var exception = Assert.Throws(() => reference.InsertAfter(new[] { new BasicIntermediateNode("_") })); Assert.Equal("The node 'Parent' has a read-only child collection and cannot be modified.", exception.Message); } @@ -335,14 +335,14 @@ public void InsertAfter_MulipleNodes_ThrowsForReadOnlyCollection() public void InsertBefore_SingleNode_ThrowsForReadOnlyCollection() { // Arrange - var parent = new BasicIRNode("Parent", ReadOnlyIRNodeCollection.Instance); + var parent = new BasicIntermediateNode("Parent", ReadOnlyIntermediateNodeCollection.Instance); - var node1 = new BasicIRNode("Node1"); + var node1 = new BasicIntermediateNode("Node1"); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act & Assert - var exception = Assert.Throws(() => reference.InsertBefore(new BasicIRNode("_"))); + var exception = Assert.Throws(() => reference.InsertBefore(new BasicIntermediateNode("_"))); Assert.Equal("The node 'Parent' has a read-only child collection and cannot be modified.", exception.Message); } @@ -350,14 +350,14 @@ public void InsertBefore_SingleNode_ThrowsForReadOnlyCollection() public void InsertBefore_MulipleNodes_ThrowsForReadOnlyCollection() { // Arrange - var parent = new BasicIRNode("Parent", ReadOnlyIRNodeCollection.Instance); + var parent = new BasicIntermediateNode("Parent", ReadOnlyIntermediateNodeCollection.Instance); - var node1 = new BasicIRNode("Node1"); + var node1 = new BasicIntermediateNode("Node1"); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act & Assert - var exception = Assert.Throws(() => reference.InsertBefore(new[] { new BasicIRNode("_") })); + var exception = Assert.Throws(() => reference.InsertBefore(new[] { new BasicIntermediateNode("_") })); Assert.Equal("The node 'Parent' has a read-only child collection and cannot be modified.", exception.Message); } @@ -365,11 +365,11 @@ public void InsertBefore_MulipleNodes_ThrowsForReadOnlyCollection() public void Remove_ThrowsForReadOnlyCollection() { // Arrange - var parent = new BasicIRNode("Parent", ReadOnlyIRNodeCollection.Instance); + var parent = new BasicIntermediateNode("Parent", ReadOnlyIntermediateNodeCollection.Instance); - var node1 = new BasicIRNode("Node1"); + var node1 = new BasicIntermediateNode("Node1"); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act & Assert var exception = Assert.Throws(() => reference.Remove()); @@ -380,14 +380,14 @@ public void Remove_ThrowsForReadOnlyCollection() public void Replace_ThrowsForReadOnlyCollection() { // Arrange - var parent = new BasicIRNode("Parent", ReadOnlyIRNodeCollection.Instance); + var parent = new BasicIntermediateNode("Parent", ReadOnlyIntermediateNodeCollection.Instance); - var node1 = new BasicIRNode("Node1"); + var node1 = new BasicIntermediateNode("Node1"); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act & Assert - var exception = Assert.Throws(() => reference.Replace(new BasicIRNode("_"))); + var exception = Assert.Throws(() => reference.Replace(new BasicIntermediateNode("_"))); Assert.Equal("The node 'Parent' has a read-only child collection and cannot be modified.", exception.Message); } @@ -395,14 +395,14 @@ public void Replace_ThrowsForReadOnlyCollection() public void InsertAfter_SingleNode_ThrowsForNodeNotFound() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); + var node1 = new BasicIntermediateNode("Node1"); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act & Assert - var exception = Assert.Throws(() => reference.InsertAfter(new BasicIRNode("_"))); + var exception = Assert.Throws(() => reference.InsertAfter(new BasicIntermediateNode("_"))); Assert.Equal("The reference is invalid. The node 'Node1' could not be found as a child of 'Parent'.", exception.Message); } @@ -410,14 +410,14 @@ public void InsertAfter_SingleNode_ThrowsForNodeNotFound() public void InsertAfter_MulipleNodes_ThrowsForNodeNotFound() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); + var node1 = new BasicIntermediateNode("Node1"); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act & Assert - var exception = Assert.Throws(() => reference.InsertAfter(new[] { new BasicIRNode("_") })); + var exception = Assert.Throws(() => reference.InsertAfter(new[] { new BasicIntermediateNode("_") })); Assert.Equal("The reference is invalid. The node 'Node1' could not be found as a child of 'Parent'.", exception.Message); } @@ -425,14 +425,14 @@ public void InsertAfter_MulipleNodes_ThrowsForNodeNotFound() public void InsertBefore_SingleNode_ThrowsForNodeNotFound() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); + var node1 = new BasicIntermediateNode("Node1"); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act & Assert - var exception = Assert.Throws(() => reference.InsertBefore(new BasicIRNode("_"))); + var exception = Assert.Throws(() => reference.InsertBefore(new BasicIntermediateNode("_"))); Assert.Equal("The reference is invalid. The node 'Node1' could not be found as a child of 'Parent'.", exception.Message); } @@ -440,14 +440,14 @@ public void InsertBefore_SingleNode_ThrowsForNodeNotFound() public void InsertBefore_MulipleNodes_ThrowsForNodeNotFound() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); + var node1 = new BasicIntermediateNode("Node1"); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act & Assert - var exception = Assert.Throws(() => reference.InsertBefore(new[] { new BasicIRNode("_") })); + var exception = Assert.Throws(() => reference.InsertBefore(new[] { new BasicIntermediateNode("_") })); Assert.Equal("The reference is invalid. The node 'Node1' could not be found as a child of 'Parent'.", exception.Message); } @@ -455,11 +455,11 @@ public void InsertBefore_MulipleNodes_ThrowsForNodeNotFound() public void Remove_ThrowsForNodeNotFound() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); + var node1 = new BasicIntermediateNode("Node1"); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act & Assert var exception = Assert.Throws(() => reference.Remove()); @@ -470,26 +470,26 @@ public void Remove_ThrowsForNodeNotFound() public void Replace_ThrowsForNodeNotFound() { // Arrange - var parent = new BasicIRNode("Parent"); + var parent = new BasicIntermediateNode("Parent"); - var node1 = new BasicIRNode("Node1"); + var node1 = new BasicIntermediateNode("Node1"); - var reference = new RazorIRNodeReference(parent, node1); + var reference = new IntermediateNodeReference(parent, node1); // Act & Assert - var exception = Assert.Throws(() => reference.Replace(new BasicIRNode("_"))); + var exception = Assert.Throws(() => reference.Replace(new BasicIntermediateNode("_"))); Assert.Equal("The reference is invalid. The node 'Node1' could not be found as a child of 'Parent'.", exception.Message); } - private class BasicIRNode : RazorIRNode + private class BasicIntermediateNode : IntermediateNode { - public BasicIRNode(string name) - : this(name, new DefaultIRNodeCollection()) + public BasicIntermediateNode(string name) + : this(name, new DefaultIntermediateNodeCollection()) { Name = name; } - public BasicIRNode(string name, RazorIRNodeCollection children) + public BasicIntermediateNode(string name, IntermediateNodeCollection children) { Name = name; Children = children; @@ -499,15 +499,15 @@ public BasicIRNode(string name, RazorIRNodeCollection children) public override ItemCollection Annotations { get; } = new DefaultItemCollection(); - public override RazorDiagnosticCollection Diagnostics => new DefaultDiagnosticCollection(); + public override RazorDiagnosticCollection Diagnostics => new DefaultRazorDiagnosticCollection(); - public override RazorIRNodeCollection Children { get; } + public override IntermediateNodeCollection Children { get; } public override SourceSpan? Source { get; set; } public override bool HasDiagnostics => Diagnostics.Count > 0; - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { throw new System.NotImplementedException(); } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/RazorIRNodeWalkerTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/IntermediateNodeWalkerTest.cs similarity index 50% rename from test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/RazorIRNodeWalkerTest.cs rename to test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/IntermediateNodeWalkerTest.cs index 43af4991e..bee4440eb 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/RazorIRNodeWalkerTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/Intermediate/IntermediateNodeWalkerTest.cs @@ -8,25 +8,25 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public class RazorIRNodeWalkerTest + public class IntermediateNodeWalkerTest { [Fact] - public void IRNodeWalker_Visit_TraversesEntireGraph() + public void IntermediateNodeWalker_Visit_TraversesEntireGraph() { // Arrange - var walker = new DerivedIRNodeWalker(); + var walker = new DerivedIntermediateNodeWalker(); - var nodes = new RazorIRNode[] + var nodes = new IntermediateNode[] { - new BasicIRNode("Root"), - new BasicIRNode("Root->A"), - new BasicIRNode("Root->B"), - new BasicIRNode("Root->B->1"), - new BasicIRNode("Root->B->2"), - new BasicIRNode("Root->C"), + new BasicIntermediateNode("Root"), + new BasicIntermediateNode("Root->A"), + new BasicIntermediateNode("Root->B"), + new BasicIntermediateNode("Root->B->1"), + new BasicIntermediateNode("Root->B->2"), + new BasicIntermediateNode("Root->C"), }; - var builder = new DefaultRazorIRBuilder(); + var builder = new DefaultRazorIntermediateNodeBuilder(); builder.Push(nodes[0]); builder.Add(nodes[1]); builder.Push(nodes[2]); @@ -45,19 +45,19 @@ public void IRNodeWalker_Visit_TraversesEntireGraph() } [Fact] - public void IRNodeWalker_Visit_SetsParentAndAncestors() + public void IntermediateNodeWalker_Visit_SetsParentAndAncestors() { // Arrange - var walker = new DerivedIRNodeWalker(); + var walker = new DerivedIntermediateNodeWalker(); - var nodes = new RazorIRNode[] + var nodes = new IntermediateNode[] { - new BasicIRNode("Root"), - new BasicIRNode("Root->A"), - new BasicIRNode("Root->B"), - new BasicIRNode("Root->B->1"), - new BasicIRNode("Root->B->2"), - new BasicIRNode("Root->C"), + new BasicIntermediateNode("Root"), + new BasicIntermediateNode("Root->A"), + new BasicIntermediateNode("Root->B"), + new BasicIntermediateNode("Root->B->1"), + new BasicIntermediateNode("Root->B->2"), + new BasicIntermediateNode("Root->C"), }; var ancestors = new Dictionary() @@ -72,11 +72,11 @@ public void IRNodeWalker_Visit_SetsParentAndAncestors() walker.OnVisiting = (n) => { - Assert.Equal(ancestors[((BasicIRNode)n).Name], walker.Ancestors.Cast().Select(b => b.Name)); - Assert.Equal(ancestors[((BasicIRNode)n).Name].FirstOrDefault(), ((BasicIRNode)walker.Parent)?.Name); + Assert.Equal(ancestors[((BasicIntermediateNode)n).Name], walker.Ancestors.Cast().Select(b => b.Name)); + Assert.Equal(ancestors[((BasicIntermediateNode)n).Name].FirstOrDefault(), ((BasicIntermediateNode)walker.Parent)?.Name); }; - var builder = new DefaultRazorIRBuilder(); + var builder = new DefaultRazorIntermediateNodeBuilder(); builder.Push(nodes[0]); builder.Add(nodes[1]); builder.Push(nodes[2]); @@ -91,17 +91,17 @@ public void IRNodeWalker_Visit_SetsParentAndAncestors() walker.Visit(root); } - private class DerivedIRNodeWalker : RazorIRNodeWalker + private class DerivedIntermediateNodeWalker : IntermediateNodeWalker { - public new IEnumerable Ancestors => base.Ancestors; + public new IEnumerable Ancestors => base.Ancestors; - public new RazorIRNode Parent => base.Parent; + public new IntermediateNode Parent => base.Parent; - public List Visited { get; } = new List(); + public List Visited { get; } = new List(); - public Action OnVisiting { get; set; } + public Action OnVisiting { get; set; } - public override void VisitDefault(RazorIRNode node) + public override void VisitDefault(IntermediateNode node) { Visited.Add(node); @@ -109,15 +109,15 @@ public override void VisitDefault(RazorIRNode node) base.VisitDefault(node); } - public virtual void VisitBasic(BasicIRNode node) + public virtual void VisitBasic(BasicIntermediateNode node) { VisitDefault(node); } } - private class BasicIRNode : RazorIRNode + private class BasicIntermediateNode : IntermediateNode { - public BasicIRNode(string name) + public BasicIntermediateNode(string name) { Name = name; } @@ -126,17 +126,17 @@ public BasicIRNode(string name) public override ItemCollection Annotations { get; } = new DefaultItemCollection(); - public override RazorDiagnosticCollection Diagnostics { get; } = new DefaultDiagnosticCollection(); + public override RazorDiagnosticCollection Diagnostics { get; } = new DefaultRazorDiagnosticCollection(); - public override RazorIRNodeCollection Children { get; } = new DefaultIRNodeCollection(); + public override IntermediateNodeCollection Children { get; } = new DefaultIntermediateNodeCollection(); public override SourceSpan? Source { get; set; } public override bool HasDiagnostics => Diagnostics.Count > 0; - public override void Accept(RazorIRNodeVisitor visitor) + public override void Accept(IntermediateNodeVisitor visitor) { - ((DerivedIRNodeWalker)visitor).VisitBasic(this); + ((DerivedIntermediateNodeWalker)visitor).VisitBasic(this); } public override string ToString() diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/RazorCodeDocumentExtensionsTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/RazorCodeDocumentExtensionsTest.cs index 6ac83b964..14c6aa445 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/RazorCodeDocumentExtensionsTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/RazorCodeDocumentExtensionsTest.cs @@ -62,11 +62,11 @@ public void GetIRDocument_ReturnsIRDocument() // Arrange var codeDocument = TestRazorCodeDocument.CreateEmpty(); - var expected = new DocumentIRNode(); - codeDocument.Items[typeof(DocumentIRNode)] = expected; + var expected = new DocumentIntermediateNode(); + codeDocument.Items[typeof(DocumentIntermediateNode)] = expected; // Act - var actual = codeDocument.GetIRDocument(); + var actual = codeDocument.GetDocumentIntermediateNode(); // Assert Assert.Same(expected, actual); @@ -78,13 +78,13 @@ public void SetIRDocument_SetsIRDocument() // Arrange var codeDocument = TestRazorCodeDocument.CreateEmpty(); - var expected = new DocumentIRNode(); + var expected = new DocumentIntermediateNode(); // Act - codeDocument.SetIRDocument((DocumentIRNode)expected); + codeDocument.SetDocumentIntermediateNode((DocumentIntermediateNode)expected); // Assert - Assert.Same(expected, codeDocument.Items[typeof(DocumentIRNode)]); + Assert.Same(expected, codeDocument.Items[typeof(DocumentIntermediateNode)]); } [Fact] diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/RazorEngineTest.cs b/test/Microsoft.AspNetCore.Razor.Language.Test/RazorEngineTest.cs index 0ea1f5689..edeb0ca2d 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/RazorEngineTest.cs +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/RazorEngineTest.cs @@ -150,7 +150,7 @@ private static void AssertDefaultRuntimeFeatures(IEnumerable Assert.IsType(feature), feature => Assert.IsType(feature), feature => Assert.IsType(feature), - feature => Assert.IsType(feature), + feature => Assert.IsType(feature), feature => Assert.IsType(feature), feature => Assert.IsType(feature)); } @@ -162,10 +162,10 @@ private static void AssertDefaultRuntimePhases(IReadOnlyList phase => Assert.IsType(phase), phase => Assert.IsType(phase), phase => Assert.IsType(phase), - phase => Assert.IsType(phase), + phase => Assert.IsType(phase), phase => Assert.IsType(phase), phase => Assert.IsType(phase), - phase => Assert.IsType(phase), + phase => Assert.IsType(phase), phase => Assert.IsType(phase)); } @@ -178,10 +178,10 @@ private static void AssertDefaultDesignTimeFeatures(IEnumerable Assert.IsType(feature), feature => Assert.IsType(feature), feature => Assert.IsType(feature), - feature => Assert.IsType(feature), + feature => Assert.IsType(feature), feature => Assert.IsType(feature), feature => Assert.IsType(feature), - feature => Assert.IsType(feature)); + feature => Assert.IsType(feature)); } private static void AssertDefaultDesignTimePhases(IReadOnlyList phases) @@ -191,10 +191,10 @@ private static void AssertDefaultDesignTimePhases(IReadOnlyList Assert.IsType(phase), phase => Assert.IsType(phase), phase => Assert.IsType(phase), - phase => Assert.IsType(phase), + phase => Assert.IsType(phase), phase => Assert.IsType(phase), phase => Assert.IsType(phase), - phase => Assert.IsType(phase), + phase => Assert.IsType(phase), phase => Assert.IsType(phase)); } } 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 0d755802b..674f90295 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 @@ -3,4 +3,4 @@ Document - ClassDeclaration - - public - Template - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [13] HelloWorld.cshtml) - RazorIRToken - (0:0,0 [13] HelloWorld.cshtml) - Html - Hello, World! + 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 63b0908e5..54fc95584 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 @@ -4,7 +4,7 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] AddTagHelperDirective.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [2] AddTagHelperDirective.cshtml) - RazorIRToken - (31:0,31 [2] AddTagHelperDirective.cshtml) - Html - \n + 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 0a65c3fd0..12dd20750 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 @@ -4,48 +4,48 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [15] AttributeTargetingTagHelpers.cshtml) - *, TestAssembly CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + 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 HtmlContent - (29:0,29 [4] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (29:0,29 [4] AttributeTargetingTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (29:0,29 [4] AttributeTargetingTagHelpers.cshtml) - Html - \n\n TagHelper - (33:2,0 [228] AttributeTargetingTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (48:2,15 [9] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (48:2,15 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n - RazorIRToken - (54:3,4 [3] AttributeTargetingTagHelpers.cshtml) - Html -

+ IntermediateToken - (48:2,15 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n + IntermediateToken - (54:3,4 [3] AttributeTargetingTagHelpers.cshtml) - Html -

TagHelper - (57:3,7 [36] AttributeTargetingTagHelpers.cshtml) - strong - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (79:3,29 [5] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (79:3,29 [5] AttributeTargetingTagHelpers.cshtml) - Html - Hello + IntermediateToken - (79:3,29 [5] AttributeTargetingTagHelpers.cshtml) - Html - Hello CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - catchAll - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (75:3,25 [2] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (75:3,25 [2] AttributeTargetingTagHelpers.cshtml) - Html - hi + IntermediateToken - (75:3,25 [2] AttributeTargetingTagHelpers.cshtml) - Html - hi HtmlContent - (93:3,43 [62] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (93:3,43 [8] AttributeTargetingTagHelpers.cshtml) - Html - - RazorIRToken - (101:3,51 [5] AttributeTargetingTagHelpers.cshtml) - Html - World - RazorIRToken - (106:3,56 [9] AttributeTargetingTagHelpers.cshtml) - Html - - RazorIRToken - (115:3,65 [4] AttributeTargetingTagHelpers.cshtml) - Html -

- RazorIRToken - (119:3,69 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n - RazorIRToken - (125:4,4 [6] AttributeTargetingTagHelpers.cshtml) - Html - - RazorIRToken - (149:4,28 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n + IntermediateToken - (93:3,43 [8] AttributeTargetingTagHelpers.cshtml) - Html - + IntermediateToken - (101:3,51 [5] AttributeTargetingTagHelpers.cshtml) - Html - World + IntermediateToken - (106:3,56 [9] AttributeTargetingTagHelpers.cshtml) - Html - + IntermediateToken - (115:3,65 [4] AttributeTargetingTagHelpers.cshtml) - Html -

+ IntermediateToken - (119:3,69 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n + IntermediateToken - (125:4,4 [6] AttributeTargetingTagHelpers.cshtml) - Html - + IntermediateToken - (149:4,28 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n TagHelper - (155:5,4 [40] AttributeTargetingTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - Html - checkbox SetTagHelperProperty - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (168:5,17 [8] AttributeTargetingTagHelpers.cshtml) - Html - checkbox SetTagHelperProperty - (187:5,36 [4] AttributeTargetingTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (187:5,36 [4] AttributeTargetingTagHelpers.cshtml) - CSharp - true + IntermediateToken - (187:5,36 [4] AttributeTargetingTagHelpers.cshtml) - CSharp - true HtmlContent - (195:5,44 [6] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (195:5,44 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n + IntermediateToken - (195:5,44 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n TagHelper - (201:6,4 [54] AttributeTargetingTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -53,18 +53,18 @@ Document - CreateTagHelper - - TestNamespace.CatchAllTagHelper SetTagHelperProperty - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - Html - checkbox SetTagHelperProperty - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (214:6,17 [8] AttributeTargetingTagHelpers.cshtml) - Html - checkbox SetTagHelperProperty - (233:6,36 [4] AttributeTargetingTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (233:6,36 [4] AttributeTargetingTagHelpers.cshtml) - CSharp - true + IntermediateToken - (233:6,36 [4] AttributeTargetingTagHelpers.cshtml) - CSharp - true AddTagHelperHtmlAttribute - - catchAll - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (249:6,52 [2] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (249:6,52 [2] AttributeTargetingTagHelpers.cshtml) - Html - hi + IntermediateToken - (249:6,52 [2] AttributeTargetingTagHelpers.cshtml) - Html - hi HtmlContent - (255:6,58 [2] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (255:6,58 [2] AttributeTargetingTagHelpers.cshtml) - Html - \n + IntermediateToken - (255:6,58 [2] AttributeTargetingTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (43:2,10 [3] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (43:2,10 [3] AttributeTargetingTagHelpers.cshtml) - Html - btn + IntermediateToken - (43:2,10 [3] AttributeTargetingTagHelpers.cshtml) - Html - btn 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 f4fcf68e1..f2a48f414 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 @@ -7,28 +7,28 @@ Document - DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [2] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (31:1,0 [2] AttributeTargetingTagHelpers.cshtml) - Html - \n + IntermediateToken - (31:1,0 [2] AttributeTargetingTagHelpers.cshtml) - Html - \n TagHelper - (33:2,0 [228] AttributeTargetingTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (48:2,15 [9] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (48:2,15 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n - RazorIRToken - (54:3,4 [3] AttributeTargetingTagHelpers.cshtml) - Html -

+ IntermediateToken - (48:2,15 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n + IntermediateToken - (54:3,4 [3] AttributeTargetingTagHelpers.cshtml) - Html -

TagHelper - (57:3,7 [36] AttributeTargetingTagHelpers.cshtml) - strong - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (79:3,29 [5] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (79:3,29 [5] AttributeTargetingTagHelpers.cshtml) - Html - Hello + IntermediateToken - (79:3,29 [5] AttributeTargetingTagHelpers.cshtml) - Html - Hello CreateTagHelper - - TestNamespace.CatchAllTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 HtmlContent - (93:3,43 [62] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (93:3,43 [8] AttributeTargetingTagHelpers.cshtml) - Html - - RazorIRToken - (101:3,51 [5] AttributeTargetingTagHelpers.cshtml) - Html - World - RazorIRToken - (106:3,56 [9] AttributeTargetingTagHelpers.cshtml) - Html - - RazorIRToken - (115:3,65 [4] AttributeTargetingTagHelpers.cshtml) - Html -

- RazorIRToken - (119:3,69 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n - RazorIRToken - (125:4,4 [6] AttributeTargetingTagHelpers.cshtml) - Html - - RazorIRToken - (149:4,28 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n + IntermediateToken - (93:3,43 [8] AttributeTargetingTagHelpers.cshtml) - Html - + IntermediateToken - (101:3,51 [5] AttributeTargetingTagHelpers.cshtml) - Html - World + IntermediateToken - (106:3,56 [9] AttributeTargetingTagHelpers.cshtml) - Html - + IntermediateToken - (115:3,65 [4] AttributeTargetingTagHelpers.cshtml) - Html -

+ IntermediateToken - (119:3,69 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n + IntermediateToken - (125:4,4 [6] AttributeTargetingTagHelpers.cshtml) - Html - + IntermediateToken - (149:4,28 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n TagHelper - (155:5,4 [40] AttributeTargetingTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -36,9 +36,9 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_1 - type - Type SetPreallocatedTagHelperProperty - - __tagHelperAttribute_1 - type - Type SetTagHelperProperty - (187:5,36 [4] AttributeTargetingTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (187:5,36 [4] AttributeTargetingTagHelpers.cshtml) - CSharp - true + IntermediateToken - (187:5,36 [4] AttributeTargetingTagHelpers.cshtml) - CSharp - true HtmlContent - (195:5,44 [6] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (195:5,44 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n + IntermediateToken - (195:5,44 [6] AttributeTargetingTagHelpers.cshtml) - Html - \n TagHelper - (201:6,4 [54] AttributeTargetingTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -47,9 +47,9 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_1 - type - Type SetPreallocatedTagHelperProperty - - __tagHelperAttribute_1 - type - Type SetTagHelperProperty - (233:6,36 [4] AttributeTargetingTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (233:6,36 [4] AttributeTargetingTagHelpers.cshtml) - CSharp - true + IntermediateToken - (233:6,36 [4] AttributeTargetingTagHelpers.cshtml) - CSharp - true AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 HtmlContent - (255:6,58 [2] AttributeTargetingTagHelpers.cshtml) - RazorIRToken - (255:6,58 [2] AttributeTargetingTagHelpers.cshtml) - Html - \n + IntermediateToken - (255:6,58 [2] AttributeTargetingTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 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 4ae434b4a..5ed03ea90 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 @@ -3,124 +3,124 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (89:5,1 [102] Await.cshtml) - RazorIRToken - (89:5,1 [4] Await.cshtml) - Html - \n\n - RazorIRToken - (93:7,0 [9] Await.cshtml) - Html -
- RazorIRToken - (102:7,9 [6] Await.cshtml) - Html - \n - RazorIRToken - (108:8,4 [4] Await.cshtml) - Html -

- RazorIRToken - (112:8,8 [34] Await.cshtml) - Html - Basic Asynchronous Expression Test - RazorIRToken - (146:8,42 [5] Await.cshtml) - Html -

- RazorIRToken - (151:8,47 [6] Await.cshtml) - Html - \n - RazorIRToken - (157:9,4 [3] Await.cshtml) - Html -

- RazorIRToken - (160:9,7 [31] Await.cshtml) - Html - Basic Asynchronous Expression: + IntermediateToken - (89:5,1 [4] Await.cshtml) - Html - \n\n + IntermediateToken - (93:7,0 [9] Await.cshtml) - Html -

+ IntermediateToken - (102:7,9 [6] Await.cshtml) - Html - \n + IntermediateToken - (108:8,4 [4] Await.cshtml) - Html -

+ IntermediateToken - (112:8,8 [34] Await.cshtml) - Html - Basic Asynchronous Expression Test + IntermediateToken - (146:8,42 [5] Await.cshtml) - Html -

+ IntermediateToken - (151:8,47 [6] Await.cshtml) - Html - \n + IntermediateToken - (157:9,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (160:9,7 [31] Await.cshtml) - Html - Basic Asynchronous Expression: CSharpExpression - (192:9,39 [11] Await.cshtml) - RazorIRToken - (192:9,39 [11] Await.cshtml) - CSharp - await Foo() + IntermediateToken - (192:9,39 [11] Await.cshtml) - CSharp - await Foo() HtmlContent - (203:9,50 [42] Await.cshtml) - RazorIRToken - (203:9,50 [4] Await.cshtml) - Html -

- RazorIRToken - (207:9,54 [6] Await.cshtml) - Html - \n - RazorIRToken - (213:10,4 [3] Await.cshtml) - Html -

- RazorIRToken - (216:10,7 [29] Await.cshtml) - Html - Basic Asynchronous Template: + IntermediateToken - (203:9,50 [4] Await.cshtml) - Html -

+ IntermediateToken - (207:9,54 [6] Await.cshtml) - Html - \n + IntermediateToken - (213:10,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (216:10,7 [29] Await.cshtml) - Html - Basic Asynchronous Template: CSharpExpression - (247:10,38 [11] Await.cshtml) - RazorIRToken - (247:10,38 [11] Await.cshtml) - CSharp - await Foo() + IntermediateToken - (247:10,38 [11] Await.cshtml) - CSharp - await Foo() HtmlContent - (259:10,50 [43] Await.cshtml) - RazorIRToken - (259:10,50 [4] Await.cshtml) - Html -

- RazorIRToken - (263:10,54 [6] Await.cshtml) - Html - \n - RazorIRToken - (269:11,4 [3] Await.cshtml) - Html -

- RazorIRToken - (272:11,7 [30] Await.cshtml) - Html - Basic Asynchronous Statement: + IntermediateToken - (259:10,50 [4] Await.cshtml) - Html -

+ IntermediateToken - (263:10,54 [6] Await.cshtml) - Html - \n + IntermediateToken - (269:11,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (272:11,7 [30] Await.cshtml) - Html - Basic Asynchronous Statement: CSharpCode - (304:11,39 [14] Await.cshtml) - RazorIRToken - (304:11,39 [14] Await.cshtml) - CSharp - await Foo(); + IntermediateToken - (304:11,39 [14] Await.cshtml) - CSharp - await Foo(); HtmlContent - (319:11,54 [50] Await.cshtml) - RazorIRToken - (319:11,54 [4] Await.cshtml) - Html -

- RazorIRToken - (323:11,58 [6] Await.cshtml) - Html - \n - RazorIRToken - (329:12,4 [3] Await.cshtml) - Html -

- RazorIRToken - (332:12,7 [37] Await.cshtml) - Html - Basic Asynchronous Statement Nested: + IntermediateToken - (319:11,54 [4] Await.cshtml) - Html -

+ IntermediateToken - (323:11,58 [6] Await.cshtml) - Html - \n + IntermediateToken - (329:12,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (332:12,7 [37] Await.cshtml) - Html - Basic Asynchronous Statement Nested: CSharpCode - (371:12,46 [1] Await.cshtml) - RazorIRToken - (371:12,46 [1] Await.cshtml) - CSharp - + IntermediateToken - (371:12,46 [1] Await.cshtml) - CSharp - HtmlContent - (372:12,47 [3] Await.cshtml) - RazorIRToken - (372:12,47 [3] Await.cshtml) - Html - + IntermediateToken - (372:12,47 [3] Await.cshtml) - Html - CSharpExpression - (376:12,51 [11] Await.cshtml) - RazorIRToken - (376:12,51 [11] Await.cshtml) - CSharp - await Foo() + IntermediateToken - (376:12,51 [11] Await.cshtml) - CSharp - await Foo() HtmlContent - (387:12,62 [4] Await.cshtml) - RazorIRToken - (387:12,62 [4] Await.cshtml) - Html - + IntermediateToken - (387:12,62 [4] Await.cshtml) - Html - CSharpCode - (391:12,66 [1] Await.cshtml) - RazorIRToken - (391:12,66 [1] Await.cshtml) - CSharp - + IntermediateToken - (391:12,66 [1] Await.cshtml) - CSharp - HtmlContent - (393:12,68 [54] Await.cshtml) - RazorIRToken - (393:12,68 [4] Await.cshtml) - Html -

- RazorIRToken - (397:12,72 [6] Await.cshtml) - Html - \n - RazorIRToken - (403:13,4 [3] Await.cshtml) - Html -

- RazorIRToken - (406:13,7 [41] Await.cshtml) - Html - Basic Incomplete Asynchronous Statement: + IntermediateToken - (393:12,68 [4] Await.cshtml) - Html -

+ IntermediateToken - (397:12,72 [6] Await.cshtml) - Html - \n + IntermediateToken - (403:13,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (406:13,7 [41] Await.cshtml) - Html - Basic Incomplete Asynchronous Statement: CSharpExpression - (448:13,49 [5] Await.cshtml) - RazorIRToken - (448:13,49 [5] Await.cshtml) - CSharp - await + IntermediateToken - (448:13,49 [5] Await.cshtml) - CSharp - await HtmlContent - (453:13,54 [124] Await.cshtml) - RazorIRToken - (453:13,54 [4] Await.cshtml) - Html -

- RazorIRToken - (457:13,58 [2] Await.cshtml) - Html - \n - RazorIRToken - (459:14,0 [10] Await.cshtml) - Html -
- RazorIRToken - (469:14,10 [4] Await.cshtml) - Html - \n\n - RazorIRToken - (473:16,0 [9] Await.cshtml) - Html -
- RazorIRToken - (482:16,9 [6] Await.cshtml) - Html - \n - RazorIRToken - (488:17,4 [4] Await.cshtml) - Html -

- RazorIRToken - (492:17,8 [37] Await.cshtml) - Html - Advanced Asynchronous Expression Test - RazorIRToken - (529:17,45 [5] Await.cshtml) - Html -

- RazorIRToken - (534:17,50 [6] Await.cshtml) - Html - \n - RazorIRToken - (540:18,4 [3] Await.cshtml) - Html -

- RazorIRToken - (543:18,7 [34] Await.cshtml) - Html - Advanced Asynchronous Expression: + IntermediateToken - (453:13,54 [4] Await.cshtml) - Html -

+ IntermediateToken - (457:13,58 [2] Await.cshtml) - Html - \n + IntermediateToken - (459:14,0 [10] Await.cshtml) - Html -
+ IntermediateToken - (469:14,10 [4] Await.cshtml) - Html - \n\n + IntermediateToken - (473:16,0 [9] Await.cshtml) - Html -
+ IntermediateToken - (482:16,9 [6] Await.cshtml) - Html - \n + IntermediateToken - (488:17,4 [4] Await.cshtml) - Html -

+ IntermediateToken - (492:17,8 [37] Await.cshtml) - Html - Advanced Asynchronous Expression Test + IntermediateToken - (529:17,45 [5] Await.cshtml) - Html -

+ IntermediateToken - (534:17,50 [6] Await.cshtml) - Html - \n + IntermediateToken - (540:18,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (543:18,7 [34] Await.cshtml) - Html - Advanced Asynchronous Expression: CSharpExpression - (578:18,42 [15] Await.cshtml) - RazorIRToken - (578:18,42 [15] Await.cshtml) - CSharp - await Foo(1, 2) + IntermediateToken - (578:18,42 [15] Await.cshtml) - CSharp - await Foo(1, 2) HtmlContent - (593:18,57 [56] Await.cshtml) - RazorIRToken - (593:18,57 [4] Await.cshtml) - Html -

- RazorIRToken - (597:18,61 [6] Await.cshtml) - Html - \n - RazorIRToken - (603:19,4 [3] Await.cshtml) - Html -

- RazorIRToken - (606:19,7 [43] Await.cshtml) - Html - Advanced Asynchronous Expression Extended: + IntermediateToken - (593:18,57 [4] Await.cshtml) - Html -

+ IntermediateToken - (597:18,61 [6] Await.cshtml) - Html - \n + IntermediateToken - (603:19,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (606:19,7 [43] Await.cshtml) - Html - Advanced Asynchronous Expression Extended: CSharpExpression - (650:19,51 [19] Await.cshtml) - RazorIRToken - (650:19,51 [19] Await.cshtml) - CSharp - await Foo.Bar(1, 2) + IntermediateToken - (650:19,51 [19] Await.cshtml) - CSharp - await Foo.Bar(1, 2) HtmlContent - (669:19,70 [45] Await.cshtml) - RazorIRToken - (669:19,70 [4] Await.cshtml) - Html -

- RazorIRToken - (673:19,74 [6] Await.cshtml) - Html - \n - RazorIRToken - (679:20,4 [3] Await.cshtml) - Html -

- RazorIRToken - (682:20,7 [32] Await.cshtml) - Html - Advanced Asynchronous Template: + IntermediateToken - (669:19,70 [4] Await.cshtml) - Html -

+ IntermediateToken - (673:19,74 [6] Await.cshtml) - Html - \n + IntermediateToken - (679:20,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (682:20,7 [32] Await.cshtml) - Html - Advanced Asynchronous Template: CSharpExpression - (716:20,41 [22] Await.cshtml) - RazorIRToken - (716:20,41 [22] Await.cshtml) - CSharp - await Foo("bob", true) + IntermediateToken - (716:20,41 [22] Await.cshtml) - CSharp - await Foo("bob", true) HtmlContent - (739:20,64 [46] Await.cshtml) - RazorIRToken - (739:20,64 [4] Await.cshtml) - Html -

- RazorIRToken - (743:20,68 [6] Await.cshtml) - Html - \n - RazorIRToken - (749:21,4 [3] Await.cshtml) - Html -

- RazorIRToken - (752:21,7 [33] Await.cshtml) - Html - Advanced Asynchronous Statement: + IntermediateToken - (739:20,64 [4] Await.cshtml) - Html -

+ IntermediateToken - (743:20,68 [6] Await.cshtml) - Html - \n + IntermediateToken - (749:21,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (752:21,7 [33] Await.cshtml) - Html - Advanced Asynchronous Statement: CSharpCode - (787:21,42 [39] Await.cshtml) - RazorIRToken - (787:21,42 [39] Await.cshtml) - CSharp - await Foo(something, hello: "world"); + IntermediateToken - (787:21,42 [39] Await.cshtml) - CSharp - await Foo(something, hello: "world"); HtmlContent - (827:21,82 [55] Await.cshtml) - RazorIRToken - (827:21,82 [4] Await.cshtml) - Html -

- RazorIRToken - (831:21,86 [6] Await.cshtml) - Html - \n - RazorIRToken - (837:22,4 [3] Await.cshtml) - Html -

- RazorIRToken - (840:22,7 [42] Await.cshtml) - Html - Advanced Asynchronous Statement Extended: + IntermediateToken - (827:21,82 [4] Await.cshtml) - Html -

+ IntermediateToken - (831:21,86 [6] Await.cshtml) - Html - \n + IntermediateToken - (837:22,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (840:22,7 [42] Await.cshtml) - Html - Advanced Asynchronous Statement Extended: CSharpCode - (884:22,51 [21] Await.cshtml) - RazorIRToken - (884:22,51 [21] Await.cshtml) - CSharp - await Foo.Bar(1, 2) + IntermediateToken - (884:22,51 [21] Await.cshtml) - CSharp - await Foo.Bar(1, 2) HtmlContent - (906:22,73 [53] Await.cshtml) - RazorIRToken - (906:22,73 [4] Await.cshtml) - Html -

- RazorIRToken - (910:22,77 [6] Await.cshtml) - Html - \n - RazorIRToken - (916:23,4 [3] Await.cshtml) - Html -

- RazorIRToken - (919:23,7 [40] Await.cshtml) - Html - Advanced Asynchronous Statement Nested: + IntermediateToken - (906:22,73 [4] Await.cshtml) - Html -

+ IntermediateToken - (910:22,77 [6] Await.cshtml) - Html - \n + IntermediateToken - (916:23,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (919:23,7 [40] Await.cshtml) - Html - Advanced Asynchronous Statement Nested: CSharpCode - (961:23,49 [1] Await.cshtml) - RazorIRToken - (961:23,49 [1] Await.cshtml) - CSharp - + IntermediateToken - (961:23,49 [1] Await.cshtml) - CSharp - HtmlContent - (962:23,50 [3] Await.cshtml) - RazorIRToken - (962:23,50 [3] Await.cshtml) - Html - + IntermediateToken - (962:23,50 [3] Await.cshtml) - Html - CSharpExpression - (966:23,54 [27] Await.cshtml) - RazorIRToken - (966:23,54 [27] Await.cshtml) - CSharp - await Foo(boolValue: false) + IntermediateToken - (966:23,54 [27] Await.cshtml) - CSharp - await Foo(boolValue: false) HtmlContent - (993:23,81 [4] Await.cshtml) - RazorIRToken - (993:23,81 [4] Await.cshtml) - Html - + IntermediateToken - (993:23,81 [4] Await.cshtml) - Html - CSharpCode - (997:23,85 [1] Await.cshtml) - RazorIRToken - (997:23,85 [1] Await.cshtml) - CSharp - + IntermediateToken - (997:23,85 [1] Await.cshtml) - CSharp - HtmlContent - (999:23,87 [57] Await.cshtml) - RazorIRToken - (999:23,87 [4] Await.cshtml) - Html -

- RazorIRToken - (1003:23,91 [6] Await.cshtml) - Html - \n - RazorIRToken - (1009:24,4 [3] Await.cshtml) - Html -

- RazorIRToken - (1012:24,7 [44] Await.cshtml) - Html - Advanced Incomplete Asynchronous Statement: + IntermediateToken - (999:23,87 [4] Await.cshtml) - Html -

+ IntermediateToken - (1003:23,91 [6] Await.cshtml) - Html - \n + IntermediateToken - (1009:24,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (1012:24,7 [44] Await.cshtml) - Html - Advanced Incomplete Asynchronous Statement: CSharpExpression - (1057:24,52 [19] Await.cshtml) - RazorIRToken - (1057:24,52 [19] Await.cshtml) - CSharp - await ("wrrronggg") + IntermediateToken - (1057:24,52 [19] Await.cshtml) - CSharp - await ("wrrronggg") HtmlContent - (1076:24,71 [16] Await.cshtml) - RazorIRToken - (1076:24,71 [4] Await.cshtml) - Html -

- RazorIRToken - (1080:24,75 [2] Await.cshtml) - Html - \n - RazorIRToken - (1082:25,0 [10] Await.cshtml) - Html -
+ IntermediateToken - (1076:24,71 [4] Await.cshtml) - Html -

+ IntermediateToken - (1080:24,75 [2] Await.cshtml) - Html - \n + IntermediateToken - (1082:25,0 [10] Await.cshtml) - Html -
CSharpCode - (12:0,12 [76] Await.cshtml) - RazorIRToken - (12:0,12 [76] Await.cshtml) - CSharp - \n public async Task Foo()\n {\n return "Bar";\n }\n + IntermediateToken - (12:0,12 [76] Await.cshtml) - CSharp - \n public async Task Foo()\n {\n return "Bar";\n }\n 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 be9f89f4e..a004a2072 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 @@ -3,121 +3,121 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (91:6,0 [100] Await.cshtml) - RazorIRToken - (91:6,0 [2] Await.cshtml) - Html - \n - RazorIRToken - (93:7,0 [9] Await.cshtml) - Html -
- RazorIRToken - (102:7,9 [6] Await.cshtml) - Html - \n - RazorIRToken - (108:8,4 [4] Await.cshtml) - Html -

- RazorIRToken - (112:8,8 [34] Await.cshtml) - Html - Basic Asynchronous Expression Test - RazorIRToken - (146:8,42 [5] Await.cshtml) - Html -

- RazorIRToken - (151:8,47 [6] Await.cshtml) - Html - \n - RazorIRToken - (157:9,4 [3] Await.cshtml) - Html -

- RazorIRToken - (160:9,7 [31] Await.cshtml) - Html - Basic Asynchronous Expression: + IntermediateToken - (91:6,0 [2] Await.cshtml) - Html - \n + IntermediateToken - (93:7,0 [9] Await.cshtml) - Html -

+ IntermediateToken - (102:7,9 [6] Await.cshtml) - Html - \n + IntermediateToken - (108:8,4 [4] Await.cshtml) - Html -

+ IntermediateToken - (112:8,8 [34] Await.cshtml) - Html - Basic Asynchronous Expression Test + IntermediateToken - (146:8,42 [5] Await.cshtml) - Html -

+ IntermediateToken - (151:8,47 [6] Await.cshtml) - Html - \n + IntermediateToken - (157:9,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (160:9,7 [31] Await.cshtml) - Html - Basic Asynchronous Expression: CSharpExpression - (192:9,39 [11] Await.cshtml) - RazorIRToken - (192:9,39 [11] Await.cshtml) - CSharp - await Foo() + IntermediateToken - (192:9,39 [11] Await.cshtml) - CSharp - await Foo() HtmlContent - (203:9,50 [42] Await.cshtml) - RazorIRToken - (203:9,50 [4] Await.cshtml) - Html -

- RazorIRToken - (207:9,54 [6] Await.cshtml) - Html - \n - RazorIRToken - (213:10,4 [3] Await.cshtml) - Html -

- RazorIRToken - (216:10,7 [29] Await.cshtml) - Html - Basic Asynchronous Template: + IntermediateToken - (203:9,50 [4] Await.cshtml) - Html -

+ IntermediateToken - (207:9,54 [6] Await.cshtml) - Html - \n + IntermediateToken - (213:10,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (216:10,7 [29] Await.cshtml) - Html - Basic Asynchronous Template: CSharpExpression - (247:10,38 [11] Await.cshtml) - RazorIRToken - (247:10,38 [11] Await.cshtml) - CSharp - await Foo() + IntermediateToken - (247:10,38 [11] Await.cshtml) - CSharp - await Foo() HtmlContent - (259:10,50 [43] Await.cshtml) - RazorIRToken - (259:10,50 [4] Await.cshtml) - Html -

- RazorIRToken - (263:10,54 [6] Await.cshtml) - Html - \n - RazorIRToken - (269:11,4 [3] Await.cshtml) - Html -

- RazorIRToken - (272:11,7 [30] Await.cshtml) - Html - Basic Asynchronous Statement: + IntermediateToken - (259:10,50 [4] Await.cshtml) - Html -

+ IntermediateToken - (263:10,54 [6] Await.cshtml) - Html - \n + IntermediateToken - (269:11,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (272:11,7 [30] Await.cshtml) - Html - Basic Asynchronous Statement: CSharpCode - (304:11,39 [14] Await.cshtml) - RazorIRToken - (304:11,39 [14] Await.cshtml) - CSharp - await Foo(); + IntermediateToken - (304:11,39 [14] Await.cshtml) - CSharp - await Foo(); HtmlContent - (319:11,54 [50] Await.cshtml) - RazorIRToken - (319:11,54 [4] Await.cshtml) - Html -

- RazorIRToken - (323:11,58 [6] Await.cshtml) - Html - \n - RazorIRToken - (329:12,4 [3] Await.cshtml) - Html -

- RazorIRToken - (332:12,7 [37] Await.cshtml) - Html - Basic Asynchronous Statement Nested: + IntermediateToken - (319:11,54 [4] Await.cshtml) - Html -

+ IntermediateToken - (323:11,58 [6] Await.cshtml) - Html - \n + IntermediateToken - (329:12,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (332:12,7 [37] Await.cshtml) - Html - Basic Asynchronous Statement Nested: HtmlContent - (371:12,46 [4] Await.cshtml) - RazorIRToken - (371:12,46 [1] Await.cshtml) - Html - - RazorIRToken - (372:12,47 [3] Await.cshtml) - Html - + IntermediateToken - (371:12,46 [1] Await.cshtml) - Html - + IntermediateToken - (372:12,47 [3] Await.cshtml) - Html - CSharpExpression - (376:12,51 [11] Await.cshtml) - RazorIRToken - (376:12,51 [11] Await.cshtml) - CSharp - await Foo() + IntermediateToken - (376:12,51 [11] Await.cshtml) - CSharp - await Foo() HtmlContent - (387:12,62 [5] Await.cshtml) - RazorIRToken - (387:12,62 [4] Await.cshtml) - Html - - RazorIRToken - (391:12,66 [1] Await.cshtml) - Html - + IntermediateToken - (387:12,62 [4] Await.cshtml) - Html - + IntermediateToken - (391:12,66 [1] Await.cshtml) - Html - CSharpCode - (392:12,67 [0] Await.cshtml) - RazorIRToken - (392:12,67 [0] Await.cshtml) - CSharp - + IntermediateToken - (392:12,67 [0] Await.cshtml) - CSharp - HtmlContent - (393:12,68 [54] Await.cshtml) - RazorIRToken - (393:12,68 [4] Await.cshtml) - Html -

- RazorIRToken - (397:12,72 [6] Await.cshtml) - Html - \n - RazorIRToken - (403:13,4 [3] Await.cshtml) - Html -

- RazorIRToken - (406:13,7 [41] Await.cshtml) - Html - Basic Incomplete Asynchronous Statement: + IntermediateToken - (393:12,68 [4] Await.cshtml) - Html -

+ IntermediateToken - (397:12,72 [6] Await.cshtml) - Html - \n + IntermediateToken - (403:13,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (406:13,7 [41] Await.cshtml) - Html - Basic Incomplete Asynchronous Statement: CSharpExpression - (448:13,49 [5] Await.cshtml) - RazorIRToken - (448:13,49 [5] Await.cshtml) - CSharp - await + IntermediateToken - (448:13,49 [5] Await.cshtml) - CSharp - await HtmlContent - (453:13,54 [124] Await.cshtml) - RazorIRToken - (453:13,54 [4] Await.cshtml) - Html -

- RazorIRToken - (457:13,58 [2] Await.cshtml) - Html - \n - RazorIRToken - (459:14,0 [10] Await.cshtml) - Html -
- RazorIRToken - (469:14,10 [4] Await.cshtml) - Html - \n\n - RazorIRToken - (473:16,0 [9] Await.cshtml) - Html -
- RazorIRToken - (482:16,9 [6] Await.cshtml) - Html - \n - RazorIRToken - (488:17,4 [4] Await.cshtml) - Html -

- RazorIRToken - (492:17,8 [37] Await.cshtml) - Html - Advanced Asynchronous Expression Test - RazorIRToken - (529:17,45 [5] Await.cshtml) - Html -

- RazorIRToken - (534:17,50 [6] Await.cshtml) - Html - \n - RazorIRToken - (540:18,4 [3] Await.cshtml) - Html -

- RazorIRToken - (543:18,7 [34] Await.cshtml) - Html - Advanced Asynchronous Expression: + IntermediateToken - (453:13,54 [4] Await.cshtml) - Html -

+ IntermediateToken - (457:13,58 [2] Await.cshtml) - Html - \n + IntermediateToken - (459:14,0 [10] Await.cshtml) - Html -
+ IntermediateToken - (469:14,10 [4] Await.cshtml) - Html - \n\n + IntermediateToken - (473:16,0 [9] Await.cshtml) - Html -
+ IntermediateToken - (482:16,9 [6] Await.cshtml) - Html - \n + IntermediateToken - (488:17,4 [4] Await.cshtml) - Html -

+ IntermediateToken - (492:17,8 [37] Await.cshtml) - Html - Advanced Asynchronous Expression Test + IntermediateToken - (529:17,45 [5] Await.cshtml) - Html -

+ IntermediateToken - (534:17,50 [6] Await.cshtml) - Html - \n + IntermediateToken - (540:18,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (543:18,7 [34] Await.cshtml) - Html - Advanced Asynchronous Expression: CSharpExpression - (578:18,42 [15] Await.cshtml) - RazorIRToken - (578:18,42 [15] Await.cshtml) - CSharp - await Foo(1, 2) + IntermediateToken - (578:18,42 [15] Await.cshtml) - CSharp - await Foo(1, 2) HtmlContent - (593:18,57 [56] Await.cshtml) - RazorIRToken - (593:18,57 [4] Await.cshtml) - Html -

- RazorIRToken - (597:18,61 [6] Await.cshtml) - Html - \n - RazorIRToken - (603:19,4 [3] Await.cshtml) - Html -

- RazorIRToken - (606:19,7 [43] Await.cshtml) - Html - Advanced Asynchronous Expression Extended: + IntermediateToken - (593:18,57 [4] Await.cshtml) - Html -

+ IntermediateToken - (597:18,61 [6] Await.cshtml) - Html - \n + IntermediateToken - (603:19,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (606:19,7 [43] Await.cshtml) - Html - Advanced Asynchronous Expression Extended: CSharpExpression - (650:19,51 [19] Await.cshtml) - RazorIRToken - (650:19,51 [19] Await.cshtml) - CSharp - await Foo.Bar(1, 2) + IntermediateToken - (650:19,51 [19] Await.cshtml) - CSharp - await Foo.Bar(1, 2) HtmlContent - (669:19,70 [45] Await.cshtml) - RazorIRToken - (669:19,70 [4] Await.cshtml) - Html -

- RazorIRToken - (673:19,74 [6] Await.cshtml) - Html - \n - RazorIRToken - (679:20,4 [3] Await.cshtml) - Html -

- RazorIRToken - (682:20,7 [32] Await.cshtml) - Html - Advanced Asynchronous Template: + IntermediateToken - (669:19,70 [4] Await.cshtml) - Html -

+ IntermediateToken - (673:19,74 [6] Await.cshtml) - Html - \n + IntermediateToken - (679:20,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (682:20,7 [32] Await.cshtml) - Html - Advanced Asynchronous Template: CSharpExpression - (716:20,41 [22] Await.cshtml) - RazorIRToken - (716:20,41 [22] Await.cshtml) - CSharp - await Foo("bob", true) + IntermediateToken - (716:20,41 [22] Await.cshtml) - CSharp - await Foo("bob", true) HtmlContent - (739:20,64 [46] Await.cshtml) - RazorIRToken - (739:20,64 [4] Await.cshtml) - Html -

- RazorIRToken - (743:20,68 [6] Await.cshtml) - Html - \n - RazorIRToken - (749:21,4 [3] Await.cshtml) - Html -

- RazorIRToken - (752:21,7 [33] Await.cshtml) - Html - Advanced Asynchronous Statement: + IntermediateToken - (739:20,64 [4] Await.cshtml) - Html -

+ IntermediateToken - (743:20,68 [6] Await.cshtml) - Html - \n + IntermediateToken - (749:21,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (752:21,7 [33] Await.cshtml) - Html - Advanced Asynchronous Statement: CSharpCode - (787:21,42 [39] Await.cshtml) - RazorIRToken - (787:21,42 [39] Await.cshtml) - CSharp - await Foo(something, hello: "world"); + IntermediateToken - (787:21,42 [39] Await.cshtml) - CSharp - await Foo(something, hello: "world"); HtmlContent - (827:21,82 [55] Await.cshtml) - RazorIRToken - (827:21,82 [4] Await.cshtml) - Html -

- RazorIRToken - (831:21,86 [6] Await.cshtml) - Html - \n - RazorIRToken - (837:22,4 [3] Await.cshtml) - Html -

- RazorIRToken - (840:22,7 [42] Await.cshtml) - Html - Advanced Asynchronous Statement Extended: + IntermediateToken - (827:21,82 [4] Await.cshtml) - Html -

+ IntermediateToken - (831:21,86 [6] Await.cshtml) - Html - \n + IntermediateToken - (837:22,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (840:22,7 [42] Await.cshtml) - Html - Advanced Asynchronous Statement Extended: CSharpCode - (884:22,51 [21] Await.cshtml) - RazorIRToken - (884:22,51 [21] Await.cshtml) - CSharp - await Foo.Bar(1, 2) + IntermediateToken - (884:22,51 [21] Await.cshtml) - CSharp - await Foo.Bar(1, 2) HtmlContent - (906:22,73 [53] Await.cshtml) - RazorIRToken - (906:22,73 [4] Await.cshtml) - Html -

- RazorIRToken - (910:22,77 [6] Await.cshtml) - Html - \n - RazorIRToken - (916:23,4 [3] Await.cshtml) - Html -

- RazorIRToken - (919:23,7 [40] Await.cshtml) - Html - Advanced Asynchronous Statement Nested: + IntermediateToken - (906:22,73 [4] Await.cshtml) - Html -

+ IntermediateToken - (910:22,77 [6] Await.cshtml) - Html - \n + IntermediateToken - (916:23,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (919:23,7 [40] Await.cshtml) - Html - Advanced Asynchronous Statement Nested: HtmlContent - (961:23,49 [4] Await.cshtml) - RazorIRToken - (961:23,49 [1] Await.cshtml) - Html - - RazorIRToken - (962:23,50 [3] Await.cshtml) - Html - + IntermediateToken - (961:23,49 [1] Await.cshtml) - Html - + IntermediateToken - (962:23,50 [3] Await.cshtml) - Html - CSharpExpression - (966:23,54 [27] Await.cshtml) - RazorIRToken - (966:23,54 [27] Await.cshtml) - CSharp - await Foo(boolValue: false) + IntermediateToken - (966:23,54 [27] Await.cshtml) - CSharp - await Foo(boolValue: false) HtmlContent - (993:23,81 [5] Await.cshtml) - RazorIRToken - (993:23,81 [4] Await.cshtml) - Html - - RazorIRToken - (997:23,85 [1] Await.cshtml) - Html - + IntermediateToken - (993:23,81 [4] Await.cshtml) - Html - + IntermediateToken - (997:23,85 [1] Await.cshtml) - Html - CSharpCode - (998:23,86 [0] Await.cshtml) - RazorIRToken - (998:23,86 [0] Await.cshtml) - CSharp - + IntermediateToken - (998:23,86 [0] Await.cshtml) - CSharp - HtmlContent - (999:23,87 [57] Await.cshtml) - RazorIRToken - (999:23,87 [4] Await.cshtml) - Html -

- RazorIRToken - (1003:23,91 [6] Await.cshtml) - Html - \n - RazorIRToken - (1009:24,4 [3] Await.cshtml) - Html -

- RazorIRToken - (1012:24,7 [44] Await.cshtml) - Html - Advanced Incomplete Asynchronous Statement: + IntermediateToken - (999:23,87 [4] Await.cshtml) - Html -

+ IntermediateToken - (1003:23,91 [6] Await.cshtml) - Html - \n + IntermediateToken - (1009:24,4 [3] Await.cshtml) - Html -

+ IntermediateToken - (1012:24,7 [44] Await.cshtml) - Html - Advanced Incomplete Asynchronous Statement: CSharpExpression - (1057:24,52 [19] Await.cshtml) - RazorIRToken - (1057:24,52 [19] Await.cshtml) - CSharp - await ("wrrronggg") + IntermediateToken - (1057:24,52 [19] Await.cshtml) - CSharp - await ("wrrronggg") HtmlContent - (1076:24,71 [16] Await.cshtml) - RazorIRToken - (1076:24,71 [4] Await.cshtml) - Html -

- RazorIRToken - (1080:24,75 [2] Await.cshtml) - Html - \n - RazorIRToken - (1082:25,0 [10] Await.cshtml) - Html -
+ IntermediateToken - (1076:24,71 [4] Await.cshtml) - Html -

+ IntermediateToken - (1080:24,75 [2] Await.cshtml) - Html - \n + IntermediateToken - (1082:25,0 [10] Await.cshtml) - Html -
CSharpCode - (12:0,12 [76] Await.cshtml) - RazorIRToken - (12:0,12 [76] Await.cshtml) - CSharp - \n public async Task Foo()\n {\n return "Bar";\n }\n + IntermediateToken - (12:0,12 [76] Await.cshtml) - CSharp - \n public async Task Foo()\n {\n return "Bar";\n }\n 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 4cde05bef..699191e5e 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 @@ -7,10 +7,10 @@ Document - DesignTimeDirective - DirectiveToken - (119:4,10 [5] BasicImports_Imports0.cshtml) - Hello CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] BasicImports.cshtml) - RazorIRToken - (0:0,0 [3] BasicImports.cshtml) - Html -

- RazorIRToken - (3:0,3 [9] BasicImports.cshtml) - Html - Hi there! - RazorIRToken - (12:0,12 [4] BasicImports.cshtml) - Html -

- RazorIRToken - (16:0,16 [2] BasicImports.cshtml) - Html - \n + IntermediateToken - (0:0,0 [3] BasicImports.cshtml) - Html -

+ IntermediateToken - (3:0,3 [9] BasicImports.cshtml) - Html - Hi there! + IntermediateToken - (12:0,12 [4] BasicImports.cshtml) - Html -

+ IntermediateToken - (16:0,16 [2] BasicImports.cshtml) - Html - \n 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 b5bf9862c..32bec3fc4 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 @@ -6,7 +6,7 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicImports_Runtime - Hello - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] BasicImports.cshtml) - RazorIRToken - (0:0,0 [3] BasicImports.cshtml) - Html -

- RazorIRToken - (3:0,3 [9] BasicImports.cshtml) - Html - Hi there! - RazorIRToken - (12:0,12 [4] BasicImports.cshtml) - Html -

- RazorIRToken - (16:0,16 [2] BasicImports.cshtml) - Html - \n + IntermediateToken - (0:0,0 [3] BasicImports.cshtml) - Html -

+ IntermediateToken - (3:0,3 [9] BasicImports.cshtml) - Html - Hi there! + IntermediateToken - (12:0,12 [4] BasicImports.cshtml) - Html -

+ IntermediateToken - (16:0,16 [2] BasicImports.cshtml) - Html - \n 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 415536647..d0bd9c417 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 @@ -4,70 +4,70 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] BasicTagHelpers.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [73] BasicTagHelpers.cshtml) - RazorIRToken - (31:0,31 [4] BasicTagHelpers.cshtml) - Html - \n\n - RazorIRToken - (35:2,0 [4] BasicTagHelpers.cshtml) - Html -
- RazorIRToken - (98:2,63 [6] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (31:0,31 [4] BasicTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (35:2,0 [4] BasicTagHelpers.cshtml) - Html -
+ IntermediateToken - (98:2,63 [6] BasicTagHelpers.cshtml) - Html - \n TagHelper - (104:3,4 [216] BasicTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (145:3,45 [10] BasicTagHelpers.cshtml) - RazorIRToken - (145:3,45 [10] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (145:3,45 [10] BasicTagHelpers.cshtml) - Html - \n TagHelper - (155:4,8 [25] BasicTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - data - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (164:4,17 [10] BasicTagHelpers.cshtml) - RazorIRToken - (164:4,17 [10] BasicTagHelpers.cshtml) - Html - -delay1000 + IntermediateToken - (164:4,17 [10] BasicTagHelpers.cshtml) - Html - -delay1000 HtmlContent - (180:4,33 [10] BasicTagHelpers.cshtml) - RazorIRToken - (180:4,33 [10] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (180:4,33 [10] BasicTagHelpers.cshtml) - Html - \n TagHelper - (190:5,8 [71] BasicTagHelpers.cshtml) - input - TagMode.StartTagOnly TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 AddTagHelperHtmlAttribute - - data-interval - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (212:5,30 [7] BasicTagHelpers.cshtml) - RazorIRToken - (212:5,30 [7] BasicTagHelpers.cshtml) - Html - 2000 + + IntermediateToken - (212:5,30 [7] BasicTagHelpers.cshtml) - Html - 2000 + CSharpExpression - (220:5,38 [23] BasicTagHelpers.cshtml) - RazorIRToken - (220:5,38 [23] BasicTagHelpers.cshtml) - CSharp - ViewBag.DefaultInterval + IntermediateToken - (220:5,38 [23] BasicTagHelpers.cshtml) - CSharp - ViewBag.DefaultInterval HtmlContent - (243:5,61 [4] BasicTagHelpers.cshtml) - RazorIRToken - (243:5,61 [4] BasicTagHelpers.cshtml) - Html - + 1 + IntermediateToken - (243:5,61 [4] BasicTagHelpers.cshtml) - Html - + 1 SetTagHelperProperty - (255:5,73 [4] BasicTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (255:5,73 [4] BasicTagHelpers.cshtml) - RazorIRToken - (255:5,73 [4] BasicTagHelpers.cshtml) - Html - text + IntermediateToken - (255:5,73 [4] BasicTagHelpers.cshtml) - Html - text SetTagHelperProperty - (255:5,73 [4] BasicTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (255:5,73 [4] BasicTagHelpers.cshtml) - RazorIRToken - (255:5,73 [4] BasicTagHelpers.cshtml) - Html - text + IntermediateToken - (255:5,73 [4] BasicTagHelpers.cshtml) - Html - text HtmlContent - (261:5,79 [10] BasicTagHelpers.cshtml) - RazorIRToken - (261:5,79 [10] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (261:5,79 [10] BasicTagHelpers.cshtml) - Html - \n TagHelper - (271:6,8 [39] BasicTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (284:6,21 [8] BasicTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (284:6,21 [8] BasicTagHelpers.cshtml) - RazorIRToken - (284:6,21 [8] BasicTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (284:6,21 [8] BasicTagHelpers.cshtml) - Html - checkbox SetTagHelperProperty - (284:6,21 [8] BasicTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (284:6,21 [8] BasicTagHelpers.cshtml) - RazorIRToken - (284:6,21 [8] BasicTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (284:6,21 [8] BasicTagHelpers.cshtml) - Html - checkbox SetTagHelperProperty - (303:6,40 [4] BasicTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (303:6,40 [4] BasicTagHelpers.cshtml) - CSharp - true + IntermediateToken - (303:6,40 [4] BasicTagHelpers.cshtml) - CSharp - true HtmlContent - (310:6,47 [6] BasicTagHelpers.cshtml) - RazorIRToken - (310:6,47 [6] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (310:6,47 [6] BasicTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (114:3,14 [11] BasicTagHelpers.cshtml) - RazorIRToken - (114:3,14 [11] BasicTagHelpers.cshtml) - Html - Hello World + IntermediateToken - (114:3,14 [11] BasicTagHelpers.cshtml) - Html - Hello World AddTagHelperHtmlAttribute - - data-delay - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (139:3,39 [4] BasicTagHelpers.cshtml) - RazorIRToken - (139:3,39 [4] BasicTagHelpers.cshtml) - Html - 1000 + IntermediateToken - (139:3,39 [4] BasicTagHelpers.cshtml) - Html - 1000 HtmlContent - (320:7,8 [8] BasicTagHelpers.cshtml) - RazorIRToken - (320:7,8 [2] BasicTagHelpers.cshtml) - Html - \n - RazorIRToken - (322:8,0 [6] BasicTagHelpers.cshtml) - Html -
+ IntermediateToken - (320:7,8 [2] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (322:8,0 [6] BasicTagHelpers.cshtml) - Html -
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.ir.txt index 2e0b9f5be..3f2e82617 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.ir.txt @@ -5,46 +5,46 @@ Document - DirectiveToken - (17:0,17 [5] BasicTagHelpers_Prefixed.cshtml) - "THS" DirectiveToken - (38:1,14 [17] BasicTagHelpers_Prefixed.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (22:0,22 [2] BasicTagHelpers_Prefixed.cshtml) - RazorIRToken - (22:0,22 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (22:0,22 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n HtmlContent - (55:1,31 [54] BasicTagHelpers_Prefixed.cshtml) - RazorIRToken - (55:1,31 [4] BasicTagHelpers_Prefixed.cshtml) - Html - \n\n - RazorIRToken - (59:3,0 [7] BasicTagHelpers_Prefixed.cshtml) - Html - - RazorIRToken - (103:3,44 [6] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (55:1,31 [4] BasicTagHelpers_Prefixed.cshtml) - Html - \n\n + IntermediateToken - (59:3,0 [7] BasicTagHelpers_Prefixed.cshtml) - Html - + IntermediateToken - (103:3,44 [6] BasicTagHelpers_Prefixed.cshtml) - Html - \n TagHelper - (109:4,4 [136] BasicTagHelpers_Prefixed.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (135:4,30 [56] BasicTagHelpers_Prefixed.cshtml) - RazorIRToken - (135:4,30 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n - RazorIRToken - (145:5,8 [3] BasicTagHelpers_Prefixed.cshtml) - Html -

- RazorIRToken - (148:5,11 [4] BasicTagHelpers_Prefixed.cshtml) - Html -

- RazorIRToken - (152:5,15 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n - RazorIRToken - (162:6,8 [6] BasicTagHelpers_Prefixed.cshtml) - Html - - RazorIRToken - (181:6,27 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (135:4,30 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (145:5,8 [3] BasicTagHelpers_Prefixed.cshtml) - Html -

+ IntermediateToken - (148:5,11 [4] BasicTagHelpers_Prefixed.cshtml) - Html -

+ IntermediateToken - (152:5,15 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (162:6,8 [6] BasicTagHelpers_Prefixed.cshtml) - Html - + IntermediateToken - (181:6,27 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n TagHelper - (191:7,8 [41] BasicTagHelpers_Prefixed.cshtml) - input - TagMode.StartTagOnly TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - RazorIRToken - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - Html - checkbox + IntermediateToken - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - Html - checkbox SetTagHelperProperty - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - RazorIRToken - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - Html - checkbox + IntermediateToken - (207:7,24 [8] BasicTagHelpers_Prefixed.cshtml) - Html - checkbox SetTagHelperProperty - (226:7,43 [4] BasicTagHelpers_Prefixed.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (226:7,43 [4] BasicTagHelpers_Prefixed.cshtml) - CSharp - true + IntermediateToken - (226:7,43 [4] BasicTagHelpers_Prefixed.cshtml) - CSharp - true HtmlContent - (232:7,49 [6] BasicTagHelpers_Prefixed.cshtml) - RazorIRToken - (232:7,49 [6] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (232:7,49 [6] BasicTagHelpers_Prefixed.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (122:4,17 [11] BasicTagHelpers_Prefixed.cshtml) - RazorIRToken - (122:4,17 [11] BasicTagHelpers_Prefixed.cshtml) - Html - Hello World + IntermediateToken - (122:4,17 [11] BasicTagHelpers_Prefixed.cshtml) - Html - Hello World HtmlContent - (245:8,11 [11] BasicTagHelpers_Prefixed.cshtml) - RazorIRToken - (245:8,11 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n - RazorIRToken - (247:9,0 [9] BasicTagHelpers_Prefixed.cshtml) - Html -
+ IntermediateToken - (245:8,11 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (247:9,0 [9] BasicTagHelpers_Prefixed.cshtml) - Html -
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.ir.txt index 6be2fe65e..16e5973b7 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.ir.txt @@ -6,22 +6,22 @@ Document - DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (57:2,0 [52] BasicTagHelpers_Prefixed.cshtml) - RazorIRToken - (57:2,0 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n - RazorIRToken - (59:3,0 [7] BasicTagHelpers_Prefixed.cshtml) - Html - - RazorIRToken - (103:3,44 [6] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (57:2,0 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (59:3,0 [7] BasicTagHelpers_Prefixed.cshtml) - Html - + IntermediateToken - (103:3,44 [6] BasicTagHelpers_Prefixed.cshtml) - Html - \n TagHelper - (109:4,4 [136] BasicTagHelpers_Prefixed.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (135:4,30 [56] BasicTagHelpers_Prefixed.cshtml) - RazorIRToken - (135:4,30 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n - RazorIRToken - (145:5,8 [3] BasicTagHelpers_Prefixed.cshtml) - Html -

- RazorIRToken - (148:5,11 [4] BasicTagHelpers_Prefixed.cshtml) - Html -

- RazorIRToken - (152:5,15 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n - RazorIRToken - (162:6,8 [6] BasicTagHelpers_Prefixed.cshtml) - Html - - RazorIRToken - (181:6,27 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (135:4,30 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (145:5,8 [3] BasicTagHelpers_Prefixed.cshtml) - Html -

+ IntermediateToken - (148:5,11 [4] BasicTagHelpers_Prefixed.cshtml) - Html -

+ IntermediateToken - (152:5,15 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (162:6,8 [6] BasicTagHelpers_Prefixed.cshtml) - Html - + IntermediateToken - (181:6,27 [10] BasicTagHelpers_Prefixed.cshtml) - Html - \n TagHelper - (191:7,8 [41] BasicTagHelpers_Prefixed.cshtml) - input - TagMode.StartTagOnly TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -29,11 +29,11 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type SetTagHelperProperty - (226:7,43 [4] BasicTagHelpers_Prefixed.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (226:7,43 [4] BasicTagHelpers_Prefixed.cshtml) - CSharp - true + IntermediateToken - (226:7,43 [4] BasicTagHelpers_Prefixed.cshtml) - CSharp - true HtmlContent - (232:7,49 [6] BasicTagHelpers_Prefixed.cshtml) - RazorIRToken - (232:7,49 [6] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (232:7,49 [6] BasicTagHelpers_Prefixed.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 HtmlContent - (245:8,11 [11] BasicTagHelpers_Prefixed.cshtml) - RazorIRToken - (245:8,11 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n - RazorIRToken - (247:9,0 [9] BasicTagHelpers_Prefixed.cshtml) - Html -
+ IntermediateToken - (245:8,11 [2] BasicTagHelpers_Prefixed.cshtml) - Html - \n + IntermediateToken - (247:9,0 [9] BasicTagHelpers_Prefixed.cshtml) - Html -
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.ir.txt index 1825004c0..11fb3385b 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.ir.txt @@ -7,20 +7,20 @@ Document - DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (72:2,0 [49] BasicTagHelpers_RemoveTagHelper.cshtml) - RazorIRToken - (72:2,0 [2] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n - RazorIRToken - (74:3,0 [4] BasicTagHelpers_RemoveTagHelper.cshtml) - Html -
- RazorIRToken - (115:3,41 [6] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n + IntermediateToken - (72:2,0 [2] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n + IntermediateToken - (74:3,0 [4] BasicTagHelpers_RemoveTagHelper.cshtml) - Html -
+ IntermediateToken - (115:3,41 [6] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n TagHelper - (121:4,4 [130] BasicTagHelpers_RemoveTagHelper.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (144:4,27 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - RazorIRToken - (144:4,27 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n + IntermediateToken - (144:4,27 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n TagHelper - (154:5,8 [7] BasicTagHelpers_RemoveTagHelper.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper HtmlContent - (161:5,15 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - RazorIRToken - (161:5,15 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n + IntermediateToken - (161:5,15 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n TagHelper - (171:6,8 [21] BasicTagHelpers_RemoveTagHelper.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -28,7 +28,7 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type HtmlContent - (192:6,29 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - RazorIRToken - (192:6,29 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n + IntermediateToken - (192:6,29 [10] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n TagHelper - (202:7,8 [39] BasicTagHelpers_RemoveTagHelper.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -36,11 +36,11 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_1 - type - Type SetPreallocatedTagHelperProperty - - __tagHelperAttribute_1 - type - Type SetTagHelperProperty - (234:7,40 [4] BasicTagHelpers_RemoveTagHelper.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (234:7,40 [4] BasicTagHelpers_RemoveTagHelper.cshtml) - CSharp - true + IntermediateToken - (234:7,40 [4] BasicTagHelpers_RemoveTagHelper.cshtml) - CSharp - true HtmlContent - (241:7,47 [6] BasicTagHelpers_RemoveTagHelper.cshtml) - RazorIRToken - (241:7,47 [6] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n + IntermediateToken - (241:7,47 [6] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 HtmlContent - (251:8,8 [8] BasicTagHelpers_RemoveTagHelper.cshtml) - RazorIRToken - (251:8,8 [2] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n - RazorIRToken - (253:9,0 [6] BasicTagHelpers_RemoveTagHelper.cshtml) - Html -
+ IntermediateToken - (251:8,8 [2] BasicTagHelpers_RemoveTagHelper.cshtml) - Html - \n + IntermediateToken - (253:9,0 [6] BasicTagHelpers_RemoveTagHelper.cshtml) - Html -
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.ir.txt index c487581ff..294a73547 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.ir.txt @@ -9,39 +9,39 @@ Document - DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [71] BasicTagHelpers.cshtml) - RazorIRToken - (33:1,0 [2] BasicTagHelpers.cshtml) - Html - \n - RazorIRToken - (35:2,0 [4] BasicTagHelpers.cshtml) - Html -
- RazorIRToken - (98:2,63 [6] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (35:2,0 [4] BasicTagHelpers.cshtml) - Html -
+ IntermediateToken - (98:2,63 [6] BasicTagHelpers.cshtml) - Html - \n TagHelper - (104:3,4 [216] BasicTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (145:3,45 [10] BasicTagHelpers.cshtml) - RazorIRToken - (145:3,45 [10] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (145:3,45 [10] BasicTagHelpers.cshtml) - Html - \n TagHelper - (155:4,8 [25] BasicTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 HtmlContent - (180:4,33 [10] BasicTagHelpers.cshtml) - RazorIRToken - (180:4,33 [10] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (180:4,33 [10] BasicTagHelpers.cshtml) - Html - \n TagHelper - (190:5,8 [71] BasicTagHelpers.cshtml) - input - TagMode.StartTagOnly TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 AddTagHelperHtmlAttribute - - data-interval - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (212:5,30 [7] BasicTagHelpers.cshtml) - RazorIRToken - (212:5,30 [7] BasicTagHelpers.cshtml) - Html - 2000 + + IntermediateToken - (212:5,30 [7] BasicTagHelpers.cshtml) - Html - 2000 + CSharpExpression - (220:5,38 [23] BasicTagHelpers.cshtml) - RazorIRToken - (220:5,38 [23] BasicTagHelpers.cshtml) - CSharp - ViewBag.DefaultInterval + IntermediateToken - (220:5,38 [23] BasicTagHelpers.cshtml) - CSharp - ViewBag.DefaultInterval HtmlContent - (243:5,61 [4] BasicTagHelpers.cshtml) - RazorIRToken - (243:5,61 [4] BasicTagHelpers.cshtml) - Html - + 1 + IntermediateToken - (243:5,61 [4] BasicTagHelpers.cshtml) - Html - + 1 SetPreallocatedTagHelperProperty - - __tagHelperAttribute_1 - type - Type SetPreallocatedTagHelperProperty - - __tagHelperAttribute_1 - type - Type HtmlContent - (261:5,79 [10] BasicTagHelpers.cshtml) - RazorIRToken - (261:5,79 [10] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (261:5,79 [10] BasicTagHelpers.cshtml) - Html - \n TagHelper - (271:6,8 [39] BasicTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -49,12 +49,12 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_2 - type - Type SetPreallocatedTagHelperProperty - - __tagHelperAttribute_2 - type - Type SetTagHelperProperty - (303:6,40 [4] BasicTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (303:6,40 [4] BasicTagHelpers.cshtml) - CSharp - true + IntermediateToken - (303:6,40 [4] BasicTagHelpers.cshtml) - CSharp - true HtmlContent - (310:6,47 [6] BasicTagHelpers.cshtml) - RazorIRToken - (310:6,47 [6] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (310:6,47 [6] BasicTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_4 HtmlContent - (320:7,8 [8] BasicTagHelpers.cshtml) - RazorIRToken - (320:7,8 [2] BasicTagHelpers.cshtml) - Html - \n - RazorIRToken - (322:8,0 [6] BasicTagHelpers.cshtml) - Html -
+ IntermediateToken - (320:7,8 [2] BasicTagHelpers.cshtml) - Html - \n + IntermediateToken - (322:8,0 [6] BasicTagHelpers.cshtml) - Html -
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.ir.txt index 053c7efa5..17b9767ad 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.ir.txt @@ -3,95 +3,95 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Blocks_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [18] Blocks.cshtml) - RazorIRToken - (2:0,2 [18] Blocks.cshtml) - CSharp - \n int i = 1;\n + IntermediateToken - (2:0,2 [18] Blocks.cshtml) - CSharp - \n int i = 1;\n HtmlContent - (23:3,0 [2] Blocks.cshtml) - RazorIRToken - (23:3,0 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (23:3,0 [2] Blocks.cshtml) - Html - \n CSharpCode - (26:4,1 [22] Blocks.cshtml) - RazorIRToken - (26:4,1 [22] Blocks.cshtml) - CSharp - while(i <= 10) {\n + IntermediateToken - (26:4,1 [22] Blocks.cshtml) - CSharp - while(i <= 10) {\n HtmlContent - (48:5,4 [19] Blocks.cshtml) - RazorIRToken - (48:5,4 [3] Blocks.cshtml) - Html -

- RazorIRToken - (51:5,7 [16] Blocks.cshtml) - Html - Hello from C#, # + IntermediateToken - (48:5,4 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (51:5,7 [16] Blocks.cshtml) - Html - Hello from C#, # CSharpExpression - (69:5,25 [1] Blocks.cshtml) - RazorIRToken - (69:5,25 [1] Blocks.cshtml) - CSharp - i + IntermediateToken - (69:5,25 [1] Blocks.cshtml) - CSharp - i HtmlContent - (71:5,27 [4] Blocks.cshtml) - RazorIRToken - (71:5,27 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (71:5,27 [4] Blocks.cshtml) - Html -

CSharpCode - (75:5,31 [16] Blocks.cshtml) - RazorIRToken - (75:5,31 [16] Blocks.cshtml) - CSharp - \n i += 1;\n} + IntermediateToken - (75:5,31 [16] Blocks.cshtml) - CSharp - \n i += 1;\n} HtmlContent - (91:7,1 [4] Blocks.cshtml) - RazorIRToken - (91:7,1 [4] Blocks.cshtml) - Html - \n\n + IntermediateToken - (91:7,1 [4] Blocks.cshtml) - Html - \n\n CSharpCode - (96:9,1 [19] Blocks.cshtml) - RazorIRToken - (96:9,1 [19] Blocks.cshtml) - CSharp - if(i == 11) {\n + IntermediateToken - (96:9,1 [19] Blocks.cshtml) - CSharp - if(i == 11) {\n HtmlContent - (115:10,4 [25] Blocks.cshtml) - RazorIRToken - (115:10,4 [3] Blocks.cshtml) - Html -

- RazorIRToken - (118:10,7 [18] Blocks.cshtml) - Html - We wrote 10 lines! - RazorIRToken - (136:10,25 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (115:10,4 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (118:10,7 [18] Blocks.cshtml) - Html - We wrote 10 lines! + IntermediateToken - (136:10,25 [4] Blocks.cshtml) - Html -

CSharpCode - (140:10,29 [3] Blocks.cshtml) - RazorIRToken - (140:10,29 [3] Blocks.cshtml) - CSharp - \n} + IntermediateToken - (140:10,29 [3] Blocks.cshtml) - CSharp - \n} HtmlContent - (143:11,1 [4] Blocks.cshtml) - RazorIRToken - (143:11,1 [4] Blocks.cshtml) - Html - \n\n + IntermediateToken - (143:11,1 [4] Blocks.cshtml) - Html - \n\n CSharpCode - (148:13,1 [35] Blocks.cshtml) - RazorIRToken - (148:13,1 [35] Blocks.cshtml) - CSharp - switch(i) {\n case 11:\n + IntermediateToken - (148:13,1 [35] Blocks.cshtml) - CSharp - switch(i) {\n case 11:\n HtmlContent - (183:15,8 [36] Blocks.cshtml) - RazorIRToken - (183:15,8 [3] Blocks.cshtml) - Html -

- RazorIRToken - (186:15,11 [29] Blocks.cshtml) - Html - No really, we wrote 10 lines! - RazorIRToken - (215:15,40 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (183:15,8 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (186:15,11 [29] Blocks.cshtml) - Html - No really, we wrote 10 lines! + IntermediateToken - (215:15,40 [4] Blocks.cshtml) - Html -

CSharpCode - (219:15,44 [40] Blocks.cshtml) - RazorIRToken - (219:15,44 [40] Blocks.cshtml) - CSharp - \n break;\n default:\n + IntermediateToken - (219:15,44 [40] Blocks.cshtml) - CSharp - \n break;\n default:\n HtmlContent - (259:18,8 [29] Blocks.cshtml) - RazorIRToken - (259:18,8 [3] Blocks.cshtml) - Html -

- RazorIRToken - (262:18,11 [22] Blocks.cshtml) - Html - Actually, we didn't... - RazorIRToken - (284:18,33 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (259:18,8 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (262:18,11 [22] Blocks.cshtml) - Html - Actually, we didn't... + IntermediateToken - (284:18,33 [4] Blocks.cshtml) - Html -

CSharpCode - (288:18,37 [19] Blocks.cshtml) - RazorIRToken - (288:18,37 [19] Blocks.cshtml) - CSharp - \n break;\n} + IntermediateToken - (288:18,37 [19] Blocks.cshtml) - CSharp - \n break;\n} HtmlContent - (307:20,1 [4] Blocks.cshtml) - RazorIRToken - (307:20,1 [4] Blocks.cshtml) - Html - \n\n + IntermediateToken - (307:20,1 [4] Blocks.cshtml) - Html - \n\n CSharpCode - (312:22,1 [39] Blocks.cshtml) - RazorIRToken - (312:22,1 [39] Blocks.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n + IntermediateToken - (312:22,1 [39] Blocks.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n HtmlContent - (351:23,4 [25] Blocks.cshtml) - RazorIRToken - (351:23,4 [3] Blocks.cshtml) - Html -

- RazorIRToken - (354:23,7 [22] Blocks.cshtml) - Html - Hello again from C#, # + IntermediateToken - (351:23,4 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (354:23,7 [22] Blocks.cshtml) - Html - Hello again from C#, # CSharpExpression - (378:23,31 [1] Blocks.cshtml) - RazorIRToken - (378:23,31 [1] Blocks.cshtml) - CSharp - j + IntermediateToken - (378:23,31 [1] Blocks.cshtml) - CSharp - j HtmlContent - (380:23,33 [4] Blocks.cshtml) - RazorIRToken - (380:23,33 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (380:23,33 [4] Blocks.cshtml) - Html -

CSharpCode - (384:23,37 [3] Blocks.cshtml) - RazorIRToken - (384:23,37 [3] Blocks.cshtml) - CSharp - \n} + IntermediateToken - (384:23,37 [3] Blocks.cshtml) - CSharp - \n} HtmlContent - (387:24,1 [4] Blocks.cshtml) - RazorIRToken - (387:24,1 [4] Blocks.cshtml) - Html - \n\n + IntermediateToken - (387:24,1 [4] Blocks.cshtml) - Html - \n\n CSharpCode - (392:26,1 [11] Blocks.cshtml) - RazorIRToken - (392:26,1 [11] Blocks.cshtml) - CSharp - try {\n + IntermediateToken - (392:26,1 [11] Blocks.cshtml) - CSharp - try {\n HtmlContent - (403:27,4 [35] Blocks.cshtml) - RazorIRToken - (403:27,4 [3] Blocks.cshtml) - Html -

- RazorIRToken - (406:27,7 [28] Blocks.cshtml) - Html - That time, we wrote 5 lines! - RazorIRToken - (434:27,35 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (403:27,4 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (406:27,7 [28] Blocks.cshtml) - Html - That time, we wrote 5 lines! + IntermediateToken - (434:27,35 [4] Blocks.cshtml) - Html -

CSharpCode - (438:27,39 [31] Blocks.cshtml) - RazorIRToken - (438:27,39 [31] Blocks.cshtml) - CSharp - \n} catch(Exception ex) {\n + IntermediateToken - (438:27,39 [31] Blocks.cshtml) - CSharp - \n} catch(Exception ex) {\n HtmlContent - (469:29,4 [29] Blocks.cshtml) - RazorIRToken - (469:29,4 [3] Blocks.cshtml) - Html -

- RazorIRToken - (472:29,7 [26] Blocks.cshtml) - Html - Oh no! An error occurred: + IntermediateToken - (469:29,4 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (472:29,7 [26] Blocks.cshtml) - Html - Oh no! An error occurred: CSharpExpression - (500:29,35 [10] Blocks.cshtml) - RazorIRToken - (500:29,35 [10] Blocks.cshtml) - CSharp - ex.Message + IntermediateToken - (500:29,35 [10] Blocks.cshtml) - CSharp - ex.Message HtmlContent - (511:29,46 [4] Blocks.cshtml) - RazorIRToken - (511:29,46 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (511:29,46 [4] Blocks.cshtml) - Html -

CSharpCode - (515:29,50 [3] Blocks.cshtml) - RazorIRToken - (515:29,50 [3] Blocks.cshtml) - CSharp - \n} + IntermediateToken - (515:29,50 [3] Blocks.cshtml) - CSharp - \n} HtmlContent - (518:30,1 [16] Blocks.cshtml) - RazorIRToken - (518:30,1 [4] Blocks.cshtml) - Html - \n\n - RazorIRToken - (522:32,0 [3] Blocks.cshtml) - Html -

- RazorIRToken - (525:32,3 [9] Blocks.cshtml) - Html - i is now + IntermediateToken - (518:30,1 [4] Blocks.cshtml) - Html - \n\n + IntermediateToken - (522:32,0 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (525:32,3 [9] Blocks.cshtml) - Html - i is now CSharpExpression - (535:32,13 [1] Blocks.cshtml) - RazorIRToken - (535:32,13 [1] Blocks.cshtml) - CSharp - i + IntermediateToken - (535:32,13 [1] Blocks.cshtml) - CSharp - i HtmlContent - (536:32,14 [8] Blocks.cshtml) - RazorIRToken - (536:32,14 [4] Blocks.cshtml) - Html -

- RazorIRToken - (540:32,18 [4] Blocks.cshtml) - Html - \n\n + IntermediateToken - (536:32,14 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (540:32,18 [4] Blocks.cshtml) - Html - \n\n CSharpCode - (545:34,1 [26] Blocks.cshtml) - RazorIRToken - (545:34,1 [26] Blocks.cshtml) - CSharp - lock(new object()) {\n + IntermediateToken - (545:34,1 [26] Blocks.cshtml) - CSharp - lock(new object()) {\n HtmlContent - (571:35,4 [47] Blocks.cshtml) - RazorIRToken - (571:35,4 [3] Blocks.cshtml) - Html -

- RazorIRToken - (574:35,7 [40] Blocks.cshtml) - Html - This block is locked, for your security! - RazorIRToken - (614:35,47 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (571:35,4 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (574:35,7 [40] Blocks.cshtml) - Html - This block is locked, for your security! + IntermediateToken - (614:35,47 [4] Blocks.cshtml) - Html -

CSharpCode - (618:35,51 [3] Blocks.cshtml) - RazorIRToken - (618:35,51 [3] Blocks.cshtml) - CSharp - \n} + IntermediateToken - (618:35,51 [3] Blocks.cshtml) - CSharp - \n} diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.ir.txt index 09f1ad21d..a11522a2c 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.ir.txt @@ -3,108 +3,108 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Blocks_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [18] Blocks.cshtml) - RazorIRToken - (2:0,2 [18] Blocks.cshtml) - CSharp - \n int i = 1;\n + IntermediateToken - (2:0,2 [18] Blocks.cshtml) - CSharp - \n int i = 1;\n HtmlContent - (23:3,0 [2] Blocks.cshtml) - RazorIRToken - (23:3,0 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (23:3,0 [2] Blocks.cshtml) - Html - \n CSharpCode - (26:4,1 [18] Blocks.cshtml) - RazorIRToken - (26:4,1 [18] Blocks.cshtml) - CSharp - while(i <= 10) {\n + IntermediateToken - (26:4,1 [18] Blocks.cshtml) - CSharp - while(i <= 10) {\n HtmlContent - (44:5,0 [23] Blocks.cshtml) - RazorIRToken - (44:5,0 [4] Blocks.cshtml) - Html - - RazorIRToken - (48:5,4 [3] Blocks.cshtml) - Html -

- RazorIRToken - (51:5,7 [16] Blocks.cshtml) - Html - Hello from C#, # + IntermediateToken - (44:5,0 [4] Blocks.cshtml) - Html - + IntermediateToken - (48:5,4 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (51:5,7 [16] Blocks.cshtml) - Html - Hello from C#, # CSharpExpression - (69:5,25 [1] Blocks.cshtml) - RazorIRToken - (69:5,25 [1] Blocks.cshtml) - CSharp - i + IntermediateToken - (69:5,25 [1] Blocks.cshtml) - CSharp - i HtmlContent - (71:5,27 [6] Blocks.cshtml) - RazorIRToken - (71:5,27 [4] Blocks.cshtml) - Html -

- RazorIRToken - (75:5,31 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (71:5,27 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (75:5,31 [2] Blocks.cshtml) - Html - \n CSharpCode - (77:6,0 [16] Blocks.cshtml) - RazorIRToken - (77:6,0 [16] Blocks.cshtml) - CSharp - i += 1;\n}\n + IntermediateToken - (77:6,0 [16] Blocks.cshtml) - CSharp - i += 1;\n}\n HtmlContent - (93:8,0 [2] Blocks.cshtml) - RazorIRToken - (93:8,0 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (93:8,0 [2] Blocks.cshtml) - Html - \n CSharpCode - (96:9,1 [15] Blocks.cshtml) - RazorIRToken - (96:9,1 [15] Blocks.cshtml) - CSharp - if(i == 11) {\n + IntermediateToken - (96:9,1 [15] Blocks.cshtml) - CSharp - if(i == 11) {\n HtmlContent - (111:10,0 [31] Blocks.cshtml) - RazorIRToken - (111:10,0 [4] Blocks.cshtml) - Html - - RazorIRToken - (115:10,4 [3] Blocks.cshtml) - Html -

- RazorIRToken - (118:10,7 [18] Blocks.cshtml) - Html - We wrote 10 lines! - RazorIRToken - (136:10,25 [4] Blocks.cshtml) - Html -

- RazorIRToken - (140:10,29 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (111:10,0 [4] Blocks.cshtml) - Html - + IntermediateToken - (115:10,4 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (118:10,7 [18] Blocks.cshtml) - Html - We wrote 10 lines! + IntermediateToken - (136:10,25 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (140:10,29 [2] Blocks.cshtml) - Html - \n CSharpCode - (142:11,0 [3] Blocks.cshtml) - RazorIRToken - (142:11,0 [3] Blocks.cshtml) - CSharp - }\n + IntermediateToken - (142:11,0 [3] Blocks.cshtml) - CSharp - }\n HtmlContent - (145:12,0 [2] Blocks.cshtml) - RazorIRToken - (145:12,0 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (145:12,0 [2] Blocks.cshtml) - Html - \n CSharpCode - (148:13,1 [27] Blocks.cshtml) - RazorIRToken - (148:13,1 [27] Blocks.cshtml) - CSharp - switch(i) {\n case 11:\n + IntermediateToken - (148:13,1 [27] Blocks.cshtml) - CSharp - switch(i) {\n case 11:\n HtmlContent - (175:15,0 [46] Blocks.cshtml) - RazorIRToken - (175:15,0 [8] Blocks.cshtml) - Html - - RazorIRToken - (183:15,8 [3] Blocks.cshtml) - Html -

- RazorIRToken - (186:15,11 [29] Blocks.cshtml) - Html - No really, we wrote 10 lines! - RazorIRToken - (215:15,40 [4] Blocks.cshtml) - Html -

- RazorIRToken - (219:15,44 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (175:15,0 [8] Blocks.cshtml) - Html - + IntermediateToken - (183:15,8 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (186:15,11 [29] Blocks.cshtml) - Html - No really, we wrote 10 lines! + IntermediateToken - (215:15,40 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (219:15,44 [2] Blocks.cshtml) - Html - \n CSharpCode - (221:16,0 [30] Blocks.cshtml) - RazorIRToken - (221:16,0 [30] Blocks.cshtml) - CSharp - break;\n default:\n + IntermediateToken - (221:16,0 [30] Blocks.cshtml) - CSharp - break;\n default:\n HtmlContent - (251:18,0 [39] Blocks.cshtml) - RazorIRToken - (251:18,0 [8] Blocks.cshtml) - Html - - RazorIRToken - (259:18,8 [3] Blocks.cshtml) - Html -

- RazorIRToken - (262:18,11 [22] Blocks.cshtml) - Html - Actually, we didn't... - RazorIRToken - (284:18,33 [4] Blocks.cshtml) - Html -

- RazorIRToken - (288:18,37 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (251:18,0 [8] Blocks.cshtml) - Html - + IntermediateToken - (259:18,8 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (262:18,11 [22] Blocks.cshtml) - Html - Actually, we didn't... + IntermediateToken - (284:18,33 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (288:18,37 [2] Blocks.cshtml) - Html - \n CSharpCode - (290:19,0 [19] Blocks.cshtml) - RazorIRToken - (290:19,0 [19] Blocks.cshtml) - CSharp - break;\n}\n + IntermediateToken - (290:19,0 [19] Blocks.cshtml) - CSharp - break;\n}\n HtmlContent - (309:21,0 [2] Blocks.cshtml) - RazorIRToken - (309:21,0 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (309:21,0 [2] Blocks.cshtml) - Html - \n CSharpCode - (312:22,1 [35] Blocks.cshtml) - RazorIRToken - (312:22,1 [35] Blocks.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n + IntermediateToken - (312:22,1 [35] Blocks.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n HtmlContent - (347:23,0 [29] Blocks.cshtml) - RazorIRToken - (347:23,0 [4] Blocks.cshtml) - Html - - RazorIRToken - (351:23,4 [3] Blocks.cshtml) - Html -

- RazorIRToken - (354:23,7 [22] Blocks.cshtml) - Html - Hello again from C#, # + IntermediateToken - (347:23,0 [4] Blocks.cshtml) - Html - + IntermediateToken - (351:23,4 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (354:23,7 [22] Blocks.cshtml) - Html - Hello again from C#, # CSharpExpression - (378:23,31 [1] Blocks.cshtml) - RazorIRToken - (378:23,31 [1] Blocks.cshtml) - CSharp - j + IntermediateToken - (378:23,31 [1] Blocks.cshtml) - CSharp - j HtmlContent - (380:23,33 [6] Blocks.cshtml) - RazorIRToken - (380:23,33 [4] Blocks.cshtml) - Html -

- RazorIRToken - (384:23,37 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (380:23,33 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (384:23,37 [2] Blocks.cshtml) - Html - \n CSharpCode - (386:24,0 [3] Blocks.cshtml) - RazorIRToken - (386:24,0 [3] Blocks.cshtml) - CSharp - }\n + IntermediateToken - (386:24,0 [3] Blocks.cshtml) - CSharp - }\n HtmlContent - (389:25,0 [2] Blocks.cshtml) - RazorIRToken - (389:25,0 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (389:25,0 [2] Blocks.cshtml) - Html - \n CSharpCode - (392:26,1 [7] Blocks.cshtml) - RazorIRToken - (392:26,1 [7] Blocks.cshtml) - CSharp - try {\n + IntermediateToken - (392:26,1 [7] Blocks.cshtml) - CSharp - try {\n HtmlContent - (399:27,0 [41] Blocks.cshtml) - RazorIRToken - (399:27,0 [4] Blocks.cshtml) - Html - - RazorIRToken - (403:27,4 [3] Blocks.cshtml) - Html -

- RazorIRToken - (406:27,7 [28] Blocks.cshtml) - Html - That time, we wrote 5 lines! - RazorIRToken - (434:27,35 [4] Blocks.cshtml) - Html -

- RazorIRToken - (438:27,39 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (399:27,0 [4] Blocks.cshtml) - Html - + IntermediateToken - (403:27,4 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (406:27,7 [28] Blocks.cshtml) - Html - That time, we wrote 5 lines! + IntermediateToken - (434:27,35 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (438:27,39 [2] Blocks.cshtml) - Html - \n CSharpCode - (440:28,0 [25] Blocks.cshtml) - RazorIRToken - (440:28,0 [25] Blocks.cshtml) - CSharp - } catch(Exception ex) {\n + IntermediateToken - (440:28,0 [25] Blocks.cshtml) - CSharp - } catch(Exception ex) {\n HtmlContent - (465:29,0 [33] Blocks.cshtml) - RazorIRToken - (465:29,0 [4] Blocks.cshtml) - Html - - RazorIRToken - (469:29,4 [3] Blocks.cshtml) - Html -

- RazorIRToken - (472:29,7 [26] Blocks.cshtml) - Html - Oh no! An error occurred: + IntermediateToken - (465:29,0 [4] Blocks.cshtml) - Html - + IntermediateToken - (469:29,4 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (472:29,7 [26] Blocks.cshtml) - Html - Oh no! An error occurred: CSharpExpression - (500:29,35 [10] Blocks.cshtml) - RazorIRToken - (500:29,35 [10] Blocks.cshtml) - CSharp - ex.Message + IntermediateToken - (500:29,35 [10] Blocks.cshtml) - CSharp - ex.Message HtmlContent - (511:29,46 [6] Blocks.cshtml) - RazorIRToken - (511:29,46 [4] Blocks.cshtml) - Html -

- RazorIRToken - (515:29,50 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (511:29,46 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (515:29,50 [2] Blocks.cshtml) - Html - \n CSharpCode - (517:30,0 [3] Blocks.cshtml) - RazorIRToken - (517:30,0 [3] Blocks.cshtml) - CSharp - }\n + IntermediateToken - (517:30,0 [3] Blocks.cshtml) - CSharp - }\n HtmlContent - (520:31,0 [14] Blocks.cshtml) - RazorIRToken - (520:31,0 [2] Blocks.cshtml) - Html - \n - RazorIRToken - (522:32,0 [3] Blocks.cshtml) - Html -

- RazorIRToken - (525:32,3 [9] Blocks.cshtml) - Html - i is now + IntermediateToken - (520:31,0 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (522:32,0 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (525:32,3 [9] Blocks.cshtml) - Html - i is now CSharpExpression - (535:32,13 [1] Blocks.cshtml) - RazorIRToken - (535:32,13 [1] Blocks.cshtml) - CSharp - i + IntermediateToken - (535:32,13 [1] Blocks.cshtml) - CSharp - i HtmlContent - (536:32,14 [8] Blocks.cshtml) - RazorIRToken - (536:32,14 [4] Blocks.cshtml) - Html -

- RazorIRToken - (540:32,18 [4] Blocks.cshtml) - Html - \n\n + IntermediateToken - (536:32,14 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (540:32,18 [4] Blocks.cshtml) - Html - \n\n CSharpCode - (545:34,1 [22] Blocks.cshtml) - RazorIRToken - (545:34,1 [22] Blocks.cshtml) - CSharp - lock(new object()) {\n + IntermediateToken - (545:34,1 [22] Blocks.cshtml) - CSharp - lock(new object()) {\n HtmlContent - (567:35,0 [53] Blocks.cshtml) - RazorIRToken - (567:35,0 [4] Blocks.cshtml) - Html - - RazorIRToken - (571:35,4 [3] Blocks.cshtml) - Html -

- RazorIRToken - (574:35,7 [40] Blocks.cshtml) - Html - This block is locked, for your security! - RazorIRToken - (614:35,47 [4] Blocks.cshtml) - Html -

- RazorIRToken - (618:35,51 [2] Blocks.cshtml) - Html - \n + IntermediateToken - (567:35,0 [4] Blocks.cshtml) - Html - + IntermediateToken - (571:35,4 [3] Blocks.cshtml) - Html -

+ IntermediateToken - (574:35,7 [40] Blocks.cshtml) - Html - This block is locked, for your security! + IntermediateToken - (614:35,47 [4] Blocks.cshtml) - Html -

+ IntermediateToken - (618:35,51 [2] Blocks.cshtml) - Html - \n CSharpCode - (620:36,0 [1] Blocks.cshtml) - RazorIRToken - (620:36,0 [1] Blocks.cshtml) - CSharp - } + IntermediateToken - (620:36,0 [1] Blocks.cshtml) - CSharp - } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.ir.txt index 425de868e..5f838b42c 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.ir.txt @@ -3,39 +3,39 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [12] CSharp7.cshtml) - RazorIRToken - (0:0,0 [6] CSharp7.cshtml) - Html - - RazorIRToken - (6:0,6 [6] CSharp7.cshtml) - Html - \n + IntermediateToken - (0:0,0 [6] CSharp7.cshtml) - Html - + IntermediateToken - (6:0,6 [6] CSharp7.cshtml) - Html - \n CSharpCode - (14:1,6 [187] CSharp7.cshtml) - RazorIRToken - (14:1,6 [187] CSharp7.cshtml) - CSharp - \n var nameLookup = new Dictionary()\n {\n ["John Doe"] = ("John", "Doe", true)\n };\n\n + IntermediateToken - (14:1,6 [187] CSharp7.cshtml) - CSharp - \n var nameLookup = new Dictionary()\n {\n ["John Doe"] = ("John", "Doe", true)\n };\n\n CSharpCode - (246:7,53 [253] CSharp7.cshtml) - RazorIRToken - (246:7,53 [253] CSharp7.cshtml) - CSharp - \n\n int Sixteen = 0b0001_0000;\n long BillionsAndBillions = 100_000_000_000;\n double AvogadroConstant = 6.022_140_857_747_474e23;\n decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;\n + IntermediateToken - (246:7,53 [253] CSharp7.cshtml) - CSharp - \n\n int Sixteen = 0b0001_0000;\n long BillionsAndBillions = 100_000_000_000;\n double AvogadroConstant = 6.022_140_857_747_474e23;\n decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;\n HtmlContent - (502:14,0 [6] CSharp7.cshtml) - RazorIRToken - (502:14,0 [6] CSharp7.cshtml) - Html - \n + IntermediateToken - (502:14,0 [6] CSharp7.cshtml) - Html - \n CSharpCode - (509:15,5 [159] CSharp7.cshtml) - RazorIRToken - (509:15,5 [159] CSharp7.cshtml) - CSharp - if (nameLookup.TryGetValue("John Doe", out var entry))\n {\n if (entry.Extra is bool alive)\n {\n // Do Something\n }\n } + IntermediateToken - (509:15,5 [159] CSharp7.cshtml) - CSharp - if (nameLookup.TryGetValue("John Doe", out var entry))\n {\n if (entry.Extra is bool alive)\n {\n // Do Something\n }\n } HtmlContent - (668:21,5 [48] CSharp7.cshtml) - RazorIRToken - (668:21,5 [6] CSharp7.cshtml) - Html - \n - RazorIRToken - (674:22,4 [3] CSharp7.cshtml) - Html -

- RazorIRToken - (677:22,7 [39] CSharp7.cshtml) - Html - \n Here's a very unique number: + IntermediateToken - (668:21,5 [6] CSharp7.cshtml) - Html - \n + IntermediateToken - (674:22,4 [3] CSharp7.cshtml) - Html -

+ IntermediateToken - (677:22,7 [39] CSharp7.cshtml) - Html - \n Here's a very unique number: CSharpExpression - (718:23,39 [62] CSharp7.cshtml) - RazorIRToken - (718:23,39 [62] CSharp7.cshtml) - CSharp - 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M + IntermediateToken - (718:23,39 [62] CSharp7.cshtml) - CSharp - 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M HtmlContent - (781:23,102 [33] CSharp7.cshtml) - RazorIRToken - (781:23,102 [6] CSharp7.cshtml) - Html - \n - RazorIRToken - (787:24,4 [4] CSharp7.cshtml) - Html -

- RazorIRToken - (791:24,8 [8] CSharp7.cshtml) - Html - \n\n - RazorIRToken - (799:26,4 [5] CSharp7.cshtml) - Html -
- RazorIRToken - (804:26,9 [10] CSharp7.cshtml) - Html - \n + IntermediateToken - (781:23,102 [6] CSharp7.cshtml) - Html - \n + IntermediateToken - (787:24,4 [4] CSharp7.cshtml) - Html -

+ IntermediateToken - (791:24,8 [8] CSharp7.cshtml) - Html - \n\n + IntermediateToken - (799:26,4 [5] CSharp7.cshtml) - Html -
+ IntermediateToken - (804:26,9 [10] CSharp7.cshtml) - Html - \n CSharpExpression - (816:27,10 [34] CSharp7.cshtml) - RazorIRToken - (816:27,10 [34] CSharp7.cshtml) - CSharp - (First: "John", Last: "Doe").First + IntermediateToken - (816:27,10 [34] CSharp7.cshtml) - CSharp - (First: "John", Last: "Doe").First HtmlContent - (872:28,0 [18] CSharp7.cshtml) - RazorIRToken - (872:28,0 [4] CSharp7.cshtml) - Html - - RazorIRToken - (876:28,4 [6] CSharp7.cshtml) - Html -
- RazorIRToken - (882:28,10 [8] CSharp7.cshtml) - Html - \n\n + IntermediateToken - (872:28,0 [4] CSharp7.cshtml) - Html - + IntermediateToken - (876:28,4 [6] CSharp7.cshtml) - Html -
+ IntermediateToken - (882:28,10 [8] CSharp7.cshtml) - Html - \n\n CSharpCode - (891:30,5 [291] CSharp7.cshtml) - RazorIRToken - (891:30,5 [291] CSharp7.cshtml) - CSharp - switch (entry.Extra)\n {\n case int age:\n // Do something\n break;\n case IEnumerable childrenNames:\n // Do more something\n break;\n case null:\n // Do even more of something\n break;\n } + IntermediateToken - (891:30,5 [291] CSharp7.cshtml) - CSharp - switch (entry.Extra)\n {\n case int age:\n // Do something\n break;\n case IEnumerable childrenNames:\n // Do more something\n break;\n case null:\n // Do even more of something\n break;\n } HtmlContent - (1182:41,5 [9] CSharp7.cshtml) - RazorIRToken - (1182:41,5 [2] CSharp7.cshtml) - Html - \n - RazorIRToken - (1184:42,0 [7] CSharp7.cshtml) - Html - + IntermediateToken - (1182:41,5 [2] CSharp7.cshtml) - Html - \n + IntermediateToken - (1184:42,0 [7] CSharp7.cshtml) - Html - 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 c20d3a6ce..122cfe049 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 @@ -3,44 +3,44 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [8] CSharp7.cshtml) - RazorIRToken - (0:0,0 [6] CSharp7.cshtml) - Html - - RazorIRToken - (6:0,6 [2] CSharp7.cshtml) - Html - \n + IntermediateToken - (0:0,0 [6] CSharp7.cshtml) - Html - + IntermediateToken - (6:0,6 [2] CSharp7.cshtml) - Html - \n CSharpCode - (8:1,0 [4] CSharp7.cshtml) - RazorIRToken - (8:1,0 [4] CSharp7.cshtml) - CSharp - + IntermediateToken - (8:1,0 [4] CSharp7.cshtml) - CSharp - CSharpCode - (14:1,6 [187] CSharp7.cshtml) - RazorIRToken - (14:1,6 [187] CSharp7.cshtml) - CSharp - \n var nameLookup = new Dictionary()\n {\n ["John Doe"] = ("John", "Doe", true)\n };\n\n + IntermediateToken - (14:1,6 [187] CSharp7.cshtml) - CSharp - \n var nameLookup = new Dictionary()\n {\n ["John Doe"] = ("John", "Doe", true)\n };\n\n CSharpCode - (246:7,53 [253] CSharp7.cshtml) - RazorIRToken - (246:7,53 [253] CSharp7.cshtml) - CSharp - \n\n int Sixteen = 0b0001_0000;\n long BillionsAndBillions = 100_000_000_000;\n double AvogadroConstant = 6.022_140_857_747_474e23;\n decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;\n + IntermediateToken - (246:7,53 [253] CSharp7.cshtml) - CSharp - \n\n int Sixteen = 0b0001_0000;\n long BillionsAndBillions = 100_000_000_000;\n double AvogadroConstant = 6.022_140_857_747_474e23;\n decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;\n HtmlContent - (502:14,0 [2] CSharp7.cshtml) - RazorIRToken - (502:14,0 [2] CSharp7.cshtml) - Html - \n + IntermediateToken - (502:14,0 [2] CSharp7.cshtml) - Html - \n CSharpCode - (504:15,0 [4] CSharp7.cshtml) - RazorIRToken - (504:15,0 [4] CSharp7.cshtml) - CSharp - + IntermediateToken - (504:15,0 [4] CSharp7.cshtml) - CSharp - CSharpCode - (509:15,5 [161] CSharp7.cshtml) - RazorIRToken - (509:15,5 [161] CSharp7.cshtml) - CSharp - if (nameLookup.TryGetValue("John Doe", out var entry))\n {\n if (entry.Extra is bool alive)\n {\n // Do Something\n }\n }\n + IntermediateToken - (509:15,5 [161] CSharp7.cshtml) - CSharp - if (nameLookup.TryGetValue("John Doe", out var entry))\n {\n if (entry.Extra is bool alive)\n {\n // Do Something\n }\n }\n HtmlContent - (670:22,0 [46] CSharp7.cshtml) - RazorIRToken - (670:22,0 [4] CSharp7.cshtml) - Html - - RazorIRToken - (674:22,4 [3] CSharp7.cshtml) - Html -

- RazorIRToken - (677:22,7 [39] CSharp7.cshtml) - Html - \n Here's a very unique number: + IntermediateToken - (670:22,0 [4] CSharp7.cshtml) - Html - + IntermediateToken - (674:22,4 [3] CSharp7.cshtml) - Html -

+ IntermediateToken - (677:22,7 [39] CSharp7.cshtml) - Html - \n Here's a very unique number: CSharpExpression - (718:23,39 [62] CSharp7.cshtml) - RazorIRToken - (718:23,39 [62] CSharp7.cshtml) - CSharp - 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M + IntermediateToken - (718:23,39 [62] CSharp7.cshtml) - CSharp - 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M HtmlContent - (781:23,102 [33] CSharp7.cshtml) - RazorIRToken - (781:23,102 [6] CSharp7.cshtml) - Html - \n - RazorIRToken - (787:24,4 [4] CSharp7.cshtml) - Html -

- RazorIRToken - (791:24,8 [8] CSharp7.cshtml) - Html - \n\n - RazorIRToken - (799:26,4 [5] CSharp7.cshtml) - Html -
- RazorIRToken - (804:26,9 [2] CSharp7.cshtml) - Html - \n - RazorIRToken - (806:27,0 [8] CSharp7.cshtml) - Html - + IntermediateToken - (781:23,102 [6] CSharp7.cshtml) - Html - \n + IntermediateToken - (787:24,4 [4] CSharp7.cshtml) - Html -

+ IntermediateToken - (791:24,8 [8] CSharp7.cshtml) - Html - \n\n + IntermediateToken - (799:26,4 [5] CSharp7.cshtml) - Html -
+ IntermediateToken - (804:26,9 [2] CSharp7.cshtml) - Html - \n + IntermediateToken - (806:27,0 [8] CSharp7.cshtml) - Html - CSharpExpression - (816:27,10 [34] CSharp7.cshtml) - RazorIRToken - (816:27,10 [34] CSharp7.cshtml) - CSharp - (First: "John", Last: "Doe").First + IntermediateToken - (816:27,10 [34] CSharp7.cshtml) - CSharp - (First: "John", Last: "Doe").First HtmlContent - (851:27,45 [1] CSharp7.cshtml) - RazorIRToken - (851:27,45 [1] CSharp7.cshtml) - Html - + IntermediateToken - (851:27,45 [1] CSharp7.cshtml) - Html - HtmlContent - (870:27,64 [16] CSharp7.cshtml) - RazorIRToken - (870:27,64 [6] CSharp7.cshtml) - Html - \n - RazorIRToken - (876:28,4 [6] CSharp7.cshtml) - Html -
- RazorIRToken - (882:28,10 [4] CSharp7.cshtml) - Html - \n\n + IntermediateToken - (870:27,64 [6] CSharp7.cshtml) - Html - \n + IntermediateToken - (876:28,4 [6] CSharp7.cshtml) - Html -
+ IntermediateToken - (882:28,10 [4] CSharp7.cshtml) - Html - \n\n CSharpCode - (886:30,0 [4] CSharp7.cshtml) - RazorIRToken - (886:30,0 [4] CSharp7.cshtml) - CSharp - + IntermediateToken - (886:30,0 [4] CSharp7.cshtml) - CSharp - CSharpCode - (891:30,5 [293] CSharp7.cshtml) - RazorIRToken - (891:30,5 [293] CSharp7.cshtml) - CSharp - switch (entry.Extra)\n {\n case int age:\n // Do something\n break;\n case IEnumerable childrenNames:\n // Do more something\n break;\n case null:\n // Do even more of something\n break;\n }\n + IntermediateToken - (891:30,5 [293] CSharp7.cshtml) - CSharp - switch (entry.Extra)\n {\n case int age:\n // Do something\n break;\n case IEnumerable childrenNames:\n // Do more something\n break;\n case null:\n // Do even more of something\n break;\n }\n HtmlContent - (1184:42,0 [7] CSharp7.cshtml) - RazorIRToken - (1184:42,0 [7] CSharp7.cshtml) - Html - + IntermediateToken - (1184:42,0 [7] CSharp7.cshtml) - Html - 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 d5866ae78..bd124aa55 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 @@ -3,7 +3,7 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [0] CodeBlockAtEOF.cshtml) - RazorIRToken - (2:0,2 [0] CodeBlockAtEOF.cshtml) - CSharp - + 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 ea9ad7d3a..fead6eb6b 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 @@ -3,4 +3,4 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [0] CodeBlockAtEOF.cshtml) - RazorIRToken - (2:0,2 [0] CodeBlockAtEOF.cshtml) - CSharp - + 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 383355b96..3a17f2fd7 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 @@ -3,17 +3,17 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - RazorIRToken - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - CSharp - \n var a = 1; + IntermediateToken - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - CSharp - \n var a = 1; HtmlContent - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - RazorIRToken - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - Html - foo + IntermediateToken - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - Html - foo CSharpCode - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - RazorIRToken - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - CSharp - \n var b = 1; + IntermediateToken - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - CSharp - \n var b = 1; HtmlContent - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - RazorIRToken - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - Html - bar + IntermediateToken - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - Html - bar CSharpExpression - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - RazorIRToken - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - CSharp - a+b + IntermediateToken - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - CSharp - a+b CSharpCode - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - RazorIRToken - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - CSharp - \n + IntermediateToken - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - CSharp - \n 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 166c6878d..b7a478b05 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 @@ -3,14 +3,14 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - RazorIRToken - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - CSharp - \n var a = 1; + IntermediateToken - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - CSharp - \n var a = 1; HtmlContent - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - RazorIRToken - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - Html - foo + IntermediateToken - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - Html - foo CSharpCode - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - RazorIRToken - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - CSharp - \n var b = 1; + IntermediateToken - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - CSharp - \n var b = 1; HtmlContent - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - RazorIRToken - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - Html - bar + IntermediateToken - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - Html - bar CSharpExpression - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - RazorIRToken - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - CSharp - a+b + IntermediateToken - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - CSharp - a+b CSharpCode - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - RazorIRToken - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - CSharp - \n + IntermediateToken - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - CSharp - \n 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 f39072eac..e6375039b 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 @@ -3,7 +3,7 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [115] CodeBlock.cshtml) - RazorIRToken - (2:0,2 [115] CodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n Output.Write("

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

");\n }\n + 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 a35b42383..b02e8f4e5 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 @@ -3,4 +3,4 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [115] CodeBlock.cshtml) - RazorIRToken - (2:0,2 [115] CodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n Output.Write("

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

");\n }\n + 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 50523f7ce..2a7e03f2f 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 @@ -4,251 +4,251 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] ComplexTagHelpers.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] ComplexTagHelpers.cshtml) - RazorIRToken - (31:0,31 [4] ComplexTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (31:0,31 [4] ComplexTagHelpers.cshtml) - Html - \n\n CSharpCode - (36:2,1 [52] ComplexTagHelpers.cshtml) - RazorIRToken - (36:2,1 [52] ComplexTagHelpers.cshtml) - CSharp - if (true)\n{\n var checkbox = "checkbox";\n\n + IntermediateToken - (36:2,1 [52] ComplexTagHelpers.cshtml) - CSharp - if (true)\n{\n var checkbox = "checkbox";\n\n HtmlContent - (88:6,4 [51] ComplexTagHelpers.cshtml) - RazorIRToken - (88:6,4 [4] ComplexTagHelpers.cshtml) - Html -
- RazorIRToken - (129:6,45 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (88:6,4 [4] ComplexTagHelpers.cshtml) - Html -
+ IntermediateToken - (129:6,45 [10] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (139:7,8 [39] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (147:7,16 [8] ComplexTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (147:7,16 [1] ComplexTagHelpers.cshtml) - CSharp - @ - RazorIRToken - (149:7,18 [0] ComplexTagHelpers.cshtml) - CSharp - + IntermediateToken - (147:7,16 [1] ComplexTagHelpers.cshtml) - CSharp - @ + IntermediateToken - (149:7,18 [0] ComplexTagHelpers.cshtml) - CSharp - CSharpExpression - (149:7,18 [6] ComplexTagHelpers.cshtml) - RazorIRToken - (149:7,18 [1] ComplexTagHelpers.cshtml) - CSharp - @ - RazorIRToken - (150:7,19 [1] ComplexTagHelpers.cshtml) - CSharp - ( - RazorIRToken - (151:7,20 [3] ComplexTagHelpers.cshtml) - CSharp - 1+2 - RazorIRToken - (154:7,23 [1] ComplexTagHelpers.cshtml) - CSharp - ) + IntermediateToken - (149:7,18 [1] ComplexTagHelpers.cshtml) - CSharp - @ + IntermediateToken - (150:7,19 [1] ComplexTagHelpers.cshtml) - CSharp - ( + IntermediateToken - (151:7,20 [3] ComplexTagHelpers.cshtml) - CSharp - 1+2 + IntermediateToken - (154:7,23 [1] ComplexTagHelpers.cshtml) - CSharp - ) AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (164:7,33 [1] ComplexTagHelpers.cshtml) - RazorIRToken - (164:7,33 [1] ComplexTagHelpers.cshtml) - Html - @ + IntermediateToken - (164:7,33 [1] ComplexTagHelpers.cshtml) - Html - @ HtmlContent - (166:7,35 [6] ComplexTagHelpers.cshtml) - RazorIRToken - (166:7,35 [6] ComplexTagHelpers.cshtml) - Html - string + IntermediateToken - (166:7,35 [6] ComplexTagHelpers.cshtml) - Html - string HtmlContent - (178:7,47 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (178:7,47 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (178:7,47 [10] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (188:8,8 [531] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (226:8,46 [46] ComplexTagHelpers.cshtml) - RazorIRToken - (226:8,46 [14] ComplexTagHelpers.cshtml) - Html - \n - RazorIRToken - (240:9,12 [4] ComplexTagHelpers.cshtml) - Html -

- RazorIRToken - (244:9,16 [9] ComplexTagHelpers.cshtml) - Html - Set Time: - RazorIRToken - (253:9,25 [5] ComplexTagHelpers.cshtml) - Html -

- RazorIRToken - (258:9,30 [14] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (226:8,46 [14] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (240:9,12 [4] ComplexTagHelpers.cshtml) - Html -

+ IntermediateToken - (244:9,16 [9] ComplexTagHelpers.cshtml) - Html - Set Time: + IntermediateToken - (253:9,25 [5] ComplexTagHelpers.cshtml) - Html -

+ IntermediateToken - (258:9,30 [14] ComplexTagHelpers.cshtml) - Html - \n CSharpCode - (273:10,13 [43] ComplexTagHelpers.cshtml) - RazorIRToken - (273:10,13 [43] ComplexTagHelpers.cshtml) - CSharp - if (false)\n {\n + IntermediateToken - (273:10,13 [43] ComplexTagHelpers.cshtml) - CSharp - if (false)\n {\n TagHelper - (316:12,16 [83] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (319:12,19 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (319:12,19 [10] ComplexTagHelpers.cshtml) - Html - New Time: + IntermediateToken - (319:12,19 [10] ComplexTagHelpers.cshtml) - Html - New Time: TagHelper - (329:12,29 [66] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (342:12,42 [4] ComplexTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (342:12,42 [4] ComplexTagHelpers.cshtml) - RazorIRToken - (342:12,42 [4] ComplexTagHelpers.cshtml) - Html - text + IntermediateToken - (342:12,42 [4] ComplexTagHelpers.cshtml) - Html - text SetTagHelperProperty - (342:12,42 [4] ComplexTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (342:12,42 [4] ComplexTagHelpers.cshtml) - RazorIRToken - (342:12,42 [4] ComplexTagHelpers.cshtml) - Html - text + IntermediateToken - (342:12,42 [4] ComplexTagHelpers.cshtml) - Html - text AddTagHelperHtmlAttribute - - value - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (355:12,55 [0] ComplexTagHelpers.cshtml) - RazorIRToken - (355:12,55 [0] ComplexTagHelpers.cshtml) - Html - + IntermediateToken - (355:12,55 [0] ComplexTagHelpers.cshtml) - Html - AddTagHelperHtmlAttribute - - placeholder - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (370:12,70 [22] ComplexTagHelpers.cshtml) - RazorIRToken - (370:12,70 [22] ComplexTagHelpers.cshtml) - Html - Enter in a new time... + IntermediateToken - (370:12,70 [22] ComplexTagHelpers.cshtml) - Html - Enter in a new time... CreateTagHelper - - TestNamespace.PTagHelper CSharpCode - (399:12,99 [66] ComplexTagHelpers.cshtml) - RazorIRToken - (399:12,99 [66] ComplexTagHelpers.cshtml) - CSharp - \n }\n else\n {\n + IntermediateToken - (399:12,99 [66] ComplexTagHelpers.cshtml) - CSharp - \n }\n else\n {\n TagHelper - (465:16,16 [58] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (468:16,19 [14] ComplexTagHelpers.cshtml) - RazorIRToken - (468:16,19 [14] ComplexTagHelpers.cshtml) - Html - Current Time: + IntermediateToken - (468:16,19 [14] ComplexTagHelpers.cshtml) - Html - Current Time: TagHelper - (482:16,33 [37] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (494:16,45 [9] ComplexTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (495:16,46 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (495:16,46 [8] ComplexTagHelpers.cshtml) - CSharp - checkbox + IntermediateToken - (495:16,46 [8] ComplexTagHelpers.cshtml) - CSharp - checkbox SetTagHelperProperty - (494:16,45 [9] ComplexTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (495:16,46 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (495:16,46 [8] ComplexTagHelpers.cshtml) - CSharp - checkbox + IntermediateToken - (495:16,46 [8] ComplexTagHelpers.cshtml) - CSharp - checkbox SetTagHelperProperty - (512:16,63 [4] ComplexTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (512:16,63 [4] ComplexTagHelpers.cshtml) - CSharp - true + IntermediateToken - (512:16,63 [4] ComplexTagHelpers.cshtml) - CSharp - true CreateTagHelper - - TestNamespace.PTagHelper CSharpCode - (523:16,74 [18] ComplexTagHelpers.cshtml) - RazorIRToken - (523:16,74 [18] ComplexTagHelpers.cshtml) - CSharp - \n + IntermediateToken - (523:16,74 [18] ComplexTagHelpers.cshtml) - CSharp - \n TagHelper - (541:17,16 [50] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (554:17,29 [33] ComplexTagHelpers.cshtml) - tYPe - Type - HtmlAttributeValueStyle.SingleQuotes CSharpExpression - (556:17,31 [30] ComplexTagHelpers.cshtml) - RazorIRToken - (556:17,31 [30] ComplexTagHelpers.cshtml) - CSharp - true ? "checkbox" : "anything" + IntermediateToken - (556:17,31 [30] ComplexTagHelpers.cshtml) - CSharp - true ? "checkbox" : "anything" SetTagHelperProperty - (554:17,29 [33] ComplexTagHelpers.cshtml) - tYPe - Type - HtmlAttributeValueStyle.SingleQuotes CSharpExpression - (556:17,31 [30] ComplexTagHelpers.cshtml) - RazorIRToken - (556:17,31 [30] ComplexTagHelpers.cshtml) - CSharp - true ? "checkbox" : "anything" + IntermediateToken - (556:17,31 [30] ComplexTagHelpers.cshtml) - CSharp - true ? "checkbox" : "anything" CSharpCode - (591:17,66 [18] ComplexTagHelpers.cshtml) - RazorIRToken - (591:17,66 [18] ComplexTagHelpers.cshtml) - CSharp - \n + IntermediateToken - (591:17,66 [18] ComplexTagHelpers.cshtml) - CSharp - \n TagHelper - (609:18,16 [81] ComplexTagHelpers.cshtml) - input - TagMode.StartTagOnly TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (622:18,29 [66] ComplexTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.SingleQuotes CSharpCode - (623:18,30 [11] ComplexTagHelpers.cshtml) - RazorIRToken - (623:18,30 [11] ComplexTagHelpers.cshtml) - CSharp - if(true) { + IntermediateToken - (623:18,30 [11] ComplexTagHelpers.cshtml) - CSharp - if(true) { HtmlContent - (640:18,47 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (640:18,47 [8] ComplexTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (640:18,47 [8] ComplexTagHelpers.cshtml) - Html - checkbox CSharpCode - (655:18,62 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (655:18,62 [10] ComplexTagHelpers.cshtml) - CSharp - } else { + IntermediateToken - (655:18,62 [10] ComplexTagHelpers.cshtml) - CSharp - } else { HtmlContent - (671:18,78 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (671:18,78 [8] ComplexTagHelpers.cshtml) - Html - anything + IntermediateToken - (671:18,78 [8] ComplexTagHelpers.cshtml) - Html - anything CSharpCode - (686:18,93 [2] ComplexTagHelpers.cshtml) - RazorIRToken - (686:18,93 [2] ComplexTagHelpers.cshtml) - CSharp - } + IntermediateToken - (686:18,93 [2] ComplexTagHelpers.cshtml) - CSharp - } SetTagHelperProperty - (622:18,29 [66] ComplexTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.SingleQuotes CSharpCode - (623:18,30 [11] ComplexTagHelpers.cshtml) - RazorIRToken - (623:18,30 [11] ComplexTagHelpers.cshtml) - CSharp - if(true) { + IntermediateToken - (623:18,30 [11] ComplexTagHelpers.cshtml) - CSharp - if(true) { HtmlContent - (640:18,47 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (640:18,47 [8] ComplexTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (640:18,47 [8] ComplexTagHelpers.cshtml) - Html - checkbox CSharpCode - (655:18,62 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (655:18,62 [10] ComplexTagHelpers.cshtml) - CSharp - } else { + IntermediateToken - (655:18,62 [10] ComplexTagHelpers.cshtml) - CSharp - } else { HtmlContent - (671:18,78 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (671:18,78 [8] ComplexTagHelpers.cshtml) - Html - anything + IntermediateToken - (671:18,78 [8] ComplexTagHelpers.cshtml) - Html - anything CSharpCode - (686:18,93 [2] ComplexTagHelpers.cshtml) - RazorIRToken - (686:18,93 [2] ComplexTagHelpers.cshtml) - CSharp - } + IntermediateToken - (686:18,93 [2] ComplexTagHelpers.cshtml) - CSharp - } CSharpCode - (690:18,97 [15] ComplexTagHelpers.cshtml) - RazorIRToken - (690:18,97 [15] ComplexTagHelpers.cshtml) - CSharp - \n } + IntermediateToken - (690:18,97 [15] ComplexTagHelpers.cshtml) - CSharp - \n } HtmlContent - (705:19,13 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (705:19,13 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (705:19,13 [10] ComplexTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - time - HtmlAttributeValueStyle.DoubleQuotes HtmlAttributeValue - (197:8,17 [7] ComplexTagHelpers.cshtml) - - RazorIRToken - (197:8,17 [7] ComplexTagHelpers.cshtml) - Html - Current + IntermediateToken - (197:8,17 [7] ComplexTagHelpers.cshtml) - Html - Current HtmlAttributeValue - (204:8,24 [6] ComplexTagHelpers.cshtml) - - RazorIRToken - (205:8,25 [5] ComplexTagHelpers.cshtml) - Html - Time: + IntermediateToken - (205:8,25 [5] ComplexTagHelpers.cshtml) - Html - Time: CSharpExpressionAttributeValue - (210:8,30 [14] ComplexTagHelpers.cshtml) - - RazorIRToken - (212:8,32 [12] ComplexTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (212:8,32 [12] ComplexTagHelpers.cshtml) - CSharp - DateTime.Now HtmlContent - (719:20,12 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (719:20,12 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (719:20,12 [10] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (729:21,8 [181] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (816:21,95 [14] ComplexTagHelpers.cshtml) - RazorIRToken - (816:21,95 [14] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (816:21,95 [14] ComplexTagHelpers.cshtml) - Html - \n CSharpCode - (832:22,14 [21] ComplexTagHelpers.cshtml) - RazorIRToken - (832:22,14 [21] ComplexTagHelpers.cshtml) - CSharp - var @object = false; + IntermediateToken - (832:22,14 [21] ComplexTagHelpers.cshtml) - CSharp - var @object = false; HtmlContent - (856:23,0 [12] ComplexTagHelpers.cshtml) - RazorIRToken - (856:23,0 [12] ComplexTagHelpers.cshtml) - Html - + IntermediateToken - (856:23,0 [12] ComplexTagHelpers.cshtml) - Html - TagHelper - (868:23,12 [28] ComplexTagHelpers.cshtml) - input - TagMode.StartTagOnly TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (884:23,28 [10] ComplexTagHelpers.cshtml) - ChecKED - Checked - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (885:23,29 [9] ComplexTagHelpers.cshtml) - RazorIRToken - (885:23,29 [1] ComplexTagHelpers.cshtml) - CSharp - ( - RazorIRToken - (886:23,30 [7] ComplexTagHelpers.cshtml) - CSharp - @object - RazorIRToken - (893:23,37 [1] ComplexTagHelpers.cshtml) - CSharp - ) + IntermediateToken - (885:23,29 [1] ComplexTagHelpers.cshtml) - CSharp - ( + IntermediateToken - (886:23,30 [7] ComplexTagHelpers.cshtml) - CSharp - @object + IntermediateToken - (893:23,37 [1] ComplexTagHelpers.cshtml) - CSharp - ) HtmlContent - (896:23,40 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (896:23,40 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (896:23,40 [10] ComplexTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (741:21,20 [11] ComplexTagHelpers.cshtml) - RazorIRToken - (741:21,20 [11] ComplexTagHelpers.cshtml) - Html - first value + IntermediateToken - (741:21,20 [11] ComplexTagHelpers.cshtml) - Html - first value SetTagHelperProperty - (759:21,38 [31] ComplexTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (760:21,39 [23] ComplexTagHelpers.cshtml) - RazorIRToken - (760:21,39 [23] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year - RazorIRToken - (783:21,62 [2] ComplexTagHelpers.cshtml) - CSharp - - - RazorIRToken - (785:21,64 [5] ComplexTagHelpers.cshtml) - CSharp - 1970 + IntermediateToken - (760:21,39 [23] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year + IntermediateToken - (783:21,62 [2] ComplexTagHelpers.cshtml) - CSharp - - + IntermediateToken - (785:21,64 [5] ComplexTagHelpers.cshtml) - CSharp - 1970 AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (801:21,80 [12] ComplexTagHelpers.cshtml) - RazorIRToken - (801:21,80 [12] ComplexTagHelpers.cshtml) - Html - second value + IntermediateToken - (801:21,80 [12] ComplexTagHelpers.cshtml) - Html - second value HtmlContent - (910:24,12 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (910:24,12 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (910:24,12 [10] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (920:25,8 [155] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (962:25,50 [14] ComplexTagHelpers.cshtml) - RazorIRToken - (962:25,50 [14] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (962:25,50 [14] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (976:26,12 [85] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (992:26,28 [5] ComplexTagHelpers.cshtml) - RazorIRToken - (992:26,28 [5] ComplexTagHelpers.cshtml) - Html - hello + IntermediateToken - (992:26,28 [5] ComplexTagHelpers.cshtml) - Html - hello AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (1008:26,44 [5] ComplexTagHelpers.cshtml) - RazorIRToken - (1008:26,44 [5] ComplexTagHelpers.cshtml) - Html - world + IntermediateToken - (1008:26,44 [5] ComplexTagHelpers.cshtml) - Html - world SetTagHelperProperty - (1024:26,60 [33] ComplexTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (1025:26,61 [32] ComplexTagHelpers.cshtml) - RazorIRToken - (1025:26,61 [1] ComplexTagHelpers.cshtml) - CSharp - ( - RazorIRToken - (1026:26,62 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year > 2014 - RazorIRToken - (1056:26,92 [1] ComplexTagHelpers.cshtml) - CSharp - ) + IntermediateToken - (1025:26,61 [1] ComplexTagHelpers.cshtml) - CSharp - ( + IntermediateToken - (1026:26,62 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year > 2014 + IntermediateToken - (1056:26,92 [1] ComplexTagHelpers.cshtml) - CSharp - ) HtmlContent - (1061:26,97 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (1061:26,97 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1061:26,97 [10] ComplexTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (928:25,16 [32] ComplexTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (928:25,16 [5] ComplexTagHelpers.cshtml) - CSharp - -1970 - RazorIRToken - (933:25,21 [2] ComplexTagHelpers.cshtml) - CSharp - + - RazorIRToken - (935:25,23 [1] ComplexTagHelpers.cshtml) - CSharp - + IntermediateToken - (928:25,16 [5] ComplexTagHelpers.cshtml) - CSharp - -1970 + IntermediateToken - (933:25,21 [2] ComplexTagHelpers.cshtml) - CSharp - + + IntermediateToken - (935:25,23 [1] ComplexTagHelpers.cshtml) - CSharp - CSharpExpression - (936:25,24 [24] ComplexTagHelpers.cshtml) - RazorIRToken - (936:25,24 [1] ComplexTagHelpers.cshtml) - CSharp - @ - RazorIRToken - (937:25,25 [23] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year + IntermediateToken - (936:25,24 [1] ComplexTagHelpers.cshtml) - CSharp - @ + IntermediateToken - (937:25,25 [23] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year HtmlContent - (1075:27,12 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (1075:27,12 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1075:27,12 [10] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (1085:28,8 [116] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (1125:28,48 [14] ComplexTagHelpers.cshtml) - RazorIRToken - (1125:28,48 [14] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1125:28,48 [14] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (1139:29,12 [48] ComplexTagHelpers.cshtml) - input - TagMode.StartTagOnly TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (1155:29,28 [30] ComplexTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (1155:29,28 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year > 2014 + IntermediateToken - (1155:29,28 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year > 2014 HtmlContent - (1187:29,60 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (1187:29,60 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1187:29,60 [10] ComplexTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (1093:28,16 [30] ComplexTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (1093:28,16 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year\-1970 + IntermediateToken - (1093:28,16 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year\-1970 HtmlContent - (1201:30,12 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (1201:30,12 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1201:30,12 [10] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (1211:31,8 [133] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (1253:31,50 [14] ComplexTagHelpers.cshtml) - RazorIRToken - (1253:31,50 [14] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1253:31,50 [14] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (1267:32,12 [63] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (1283:32,28 [43] ComplexTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (1283:32,28 [3] ComplexTagHelpers.cshtml) - CSharp - + IntermediateToken - (1283:32,28 [3] ComplexTagHelpers.cshtml) - CSharp - CSharpExpression - (1286:32,31 [30] ComplexTagHelpers.cshtml) - RazorIRToken - (1286:32,31 [1] ComplexTagHelpers.cshtml) - CSharp - @ - RazorIRToken - (1287:32,32 [1] ComplexTagHelpers.cshtml) - CSharp - ( - RazorIRToken - (1288:32,33 [27] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year - RazorIRToken - (1315:32,60 [1] ComplexTagHelpers.cshtml) - CSharp - ) - RazorIRToken - (1316:32,61 [2] ComplexTagHelpers.cshtml) - CSharp - > - RazorIRToken - (1318:32,63 [5] ComplexTagHelpers.cshtml) - CSharp - 2014 - RazorIRToken - (1323:32,68 [3] ComplexTagHelpers.cshtml) - CSharp - + IntermediateToken - (1286:32,31 [1] ComplexTagHelpers.cshtml) - CSharp - @ + IntermediateToken - (1287:32,32 [1] ComplexTagHelpers.cshtml) - CSharp - ( + IntermediateToken - (1288:32,33 [27] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year + IntermediateToken - (1315:32,60 [1] ComplexTagHelpers.cshtml) - CSharp - ) + IntermediateToken - (1316:32,61 [2] ComplexTagHelpers.cshtml) - CSharp - > + IntermediateToken - (1318:32,63 [5] ComplexTagHelpers.cshtml) - CSharp - 2014 + IntermediateToken - (1323:32,68 [3] ComplexTagHelpers.cshtml) - CSharp - HtmlContent - (1330:32,75 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (1330:32,75 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1330:32,75 [10] ComplexTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (1219:31,16 [32] ComplexTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (1220:31,17 [31] ComplexTagHelpers.cshtml) - RazorIRToken - (1220:31,17 [1] ComplexTagHelpers.cshtml) - CSharp - ( - RazorIRToken - (1221:31,18 [29] ComplexTagHelpers.cshtml) - CSharp - "My age is this long.".Length - RazorIRToken - (1250:31,47 [1] ComplexTagHelpers.cshtml) - CSharp - ) + IntermediateToken - (1220:31,17 [1] ComplexTagHelpers.cshtml) - CSharp - ( + IntermediateToken - (1221:31,18 [29] ComplexTagHelpers.cshtml) - CSharp - "My age is this long.".Length + IntermediateToken - (1250:31,47 [1] ComplexTagHelpers.cshtml) - CSharp - ) HtmlContent - (1344:33,12 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (1344:33,12 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1344:33,12 [10] ComplexTagHelpers.cshtml) - Html - \n CSharpExpression - (1355:34,9 [69] ComplexTagHelpers.cshtml) - RazorIRToken - (1355:34,9 [11] ComplexTagHelpers.cshtml) - CSharp - someMethod( + IntermediateToken - (1355:34,9 [11] ComplexTagHelpers.cshtml) - CSharp - someMethod( Template - (1367:34,21 [57] ComplexTagHelpers.cshtml) TagHelper - (1367:34,21 [57] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - @@ -258,16 +258,16 @@ Document - CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (1409:34,63 [8] ComplexTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (1410:34,64 [7] ComplexTagHelpers.cshtml) - RazorIRToken - (1410:34,64 [7] ComplexTagHelpers.cshtml) - CSharp - checked + IntermediateToken - (1410:34,64 [7] ComplexTagHelpers.cshtml) - CSharp - checked CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (1375:34,29 [3] ComplexTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (1375:34,29 [3] ComplexTagHelpers.cshtml) - CSharp - 123 + IntermediateToken - (1375:34,29 [3] ComplexTagHelpers.cshtml) - CSharp - 123 AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (1387:34,41 [5] ComplexTagHelpers.cshtml) - RazorIRToken - (1387:34,41 [5] ComplexTagHelpers.cshtml) - Html - hello - RazorIRToken - (1424:34,78 [1] ComplexTagHelpers.cshtml) - CSharp - ) + IntermediateToken - (1387:34,41 [5] ComplexTagHelpers.cshtml) - Html - hello + IntermediateToken - (1424:34,78 [1] ComplexTagHelpers.cshtml) - CSharp - ) HtmlContent - (1425:34,79 [12] ComplexTagHelpers.cshtml) - RazorIRToken - (1425:34,79 [6] ComplexTagHelpers.cshtml) - Html - \n - RazorIRToken - (1431:35,4 [6] ComplexTagHelpers.cshtml) - Html -
+ IntermediateToken - (1425:34,79 [6] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1431:35,4 [6] ComplexTagHelpers.cshtml) - Html -
CSharpCode - (1437:35,10 [3] ComplexTagHelpers.cshtml) - RazorIRToken - (1437:35,10 [3] ComplexTagHelpers.cshtml) - CSharp - \n} + IntermediateToken - (1437:35,10 [3] ComplexTagHelpers.cshtml) - CSharp - \n} 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 84e8e155d..9b7d489c9 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 @@ -12,51 +12,51 @@ Document - DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] ComplexTagHelpers.cshtml) - RazorIRToken - (33:1,0 [2] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] ComplexTagHelpers.cshtml) - Html - \n CSharpCode - (36:2,1 [48] ComplexTagHelpers.cshtml) - RazorIRToken - (36:2,1 [48] ComplexTagHelpers.cshtml) - CSharp - if (true)\n{\n var checkbox = "checkbox";\n\n + IntermediateToken - (36:2,1 [48] ComplexTagHelpers.cshtml) - CSharp - if (true)\n{\n var checkbox = "checkbox";\n\n HtmlContent - (84:6,0 [55] ComplexTagHelpers.cshtml) - RazorIRToken - (84:6,0 [4] ComplexTagHelpers.cshtml) - Html - - RazorIRToken - (88:6,4 [4] ComplexTagHelpers.cshtml) - Html -
- RazorIRToken - (129:6,45 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (84:6,0 [4] ComplexTagHelpers.cshtml) - Html - + IntermediateToken - (88:6,4 [4] ComplexTagHelpers.cshtml) - Html -
+ IntermediateToken - (129:6,45 [10] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (139:7,8 [39] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (147:7,16 [8] ComplexTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (147:7,16 [1] ComplexTagHelpers.cshtml) - CSharp - @ - RazorIRToken - (149:7,18 [0] ComplexTagHelpers.cshtml) - CSharp - + IntermediateToken - (147:7,16 [1] ComplexTagHelpers.cshtml) - CSharp - @ + IntermediateToken - (149:7,18 [0] ComplexTagHelpers.cshtml) - CSharp - CSharpExpression - (149:7,18 [6] ComplexTagHelpers.cshtml) - RazorIRToken - (149:7,18 [1] ComplexTagHelpers.cshtml) - CSharp - @ - RazorIRToken - (150:7,19 [1] ComplexTagHelpers.cshtml) - CSharp - ( - RazorIRToken - (151:7,20 [3] ComplexTagHelpers.cshtml) - CSharp - 1+2 - RazorIRToken - (154:7,23 [1] ComplexTagHelpers.cshtml) - CSharp - ) + IntermediateToken - (149:7,18 [1] ComplexTagHelpers.cshtml) - CSharp - @ + IntermediateToken - (150:7,19 [1] ComplexTagHelpers.cshtml) - CSharp - ( + IntermediateToken - (151:7,20 [3] ComplexTagHelpers.cshtml) - CSharp - 1+2 + IntermediateToken - (154:7,23 [1] ComplexTagHelpers.cshtml) - CSharp - ) AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (164:7,33 [1] ComplexTagHelpers.cshtml) - RazorIRToken - (164:7,33 [1] ComplexTagHelpers.cshtml) - Html - @ + IntermediateToken - (164:7,33 [1] ComplexTagHelpers.cshtml) - Html - @ HtmlContent - (166:7,35 [6] ComplexTagHelpers.cshtml) - RazorIRToken - (166:7,35 [6] ComplexTagHelpers.cshtml) - Html - string + IntermediateToken - (166:7,35 [6] ComplexTagHelpers.cshtml) - Html - string HtmlContent - (178:7,47 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (178:7,47 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (178:7,47 [10] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (188:8,8 [531] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (226:8,46 [34] ComplexTagHelpers.cshtml) - RazorIRToken - (226:8,46 [14] ComplexTagHelpers.cshtml) - Html - \n - RazorIRToken - (240:9,12 [4] ComplexTagHelpers.cshtml) - Html -

- RazorIRToken - (244:9,16 [9] ComplexTagHelpers.cshtml) - Html - Set Time: - RazorIRToken - (253:9,25 [5] ComplexTagHelpers.cshtml) - Html -

- RazorIRToken - (258:9,30 [2] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (226:8,46 [14] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (240:9,12 [4] ComplexTagHelpers.cshtml) - Html -

+ IntermediateToken - (244:9,16 [9] ComplexTagHelpers.cshtml) - Html - Set Time: + IntermediateToken - (253:9,25 [5] ComplexTagHelpers.cshtml) - Html -

+ IntermediateToken - (258:9,30 [2] ComplexTagHelpers.cshtml) - Html - \n CSharpCode - (260:10,0 [12] ComplexTagHelpers.cshtml) - RazorIRToken - (260:10,0 [12] ComplexTagHelpers.cshtml) - CSharp - + IntermediateToken - (260:10,0 [12] ComplexTagHelpers.cshtml) - CSharp - CSharpCode - (273:10,13 [27] ComplexTagHelpers.cshtml) - RazorIRToken - (273:10,13 [27] ComplexTagHelpers.cshtml) - CSharp - if (false)\n {\n + IntermediateToken - (273:10,13 [27] ComplexTagHelpers.cshtml) - CSharp - if (false)\n {\n HtmlContent - (300:12,0 [16] ComplexTagHelpers.cshtml) - RazorIRToken - (300:12,0 [16] ComplexTagHelpers.cshtml) - Html - + IntermediateToken - (300:12,0 [16] ComplexTagHelpers.cshtml) - Html - TagHelper - (316:12,16 [83] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (319:12,19 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (319:12,19 [10] ComplexTagHelpers.cshtml) - Html - New Time: + IntermediateToken - (319:12,19 [10] ComplexTagHelpers.cshtml) - Html - New Time: TagHelper - (329:12,29 [66] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -67,121 +67,121 @@ Document - AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 CreateTagHelper - - TestNamespace.PTagHelper HtmlContent - (399:12,99 [2] ComplexTagHelpers.cshtml) - RazorIRToken - (399:12,99 [2] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (399:12,99 [2] ComplexTagHelpers.cshtml) - Html - \n CSharpCode - (401:13,0 [48] ComplexTagHelpers.cshtml) - RazorIRToken - (401:13,0 [48] ComplexTagHelpers.cshtml) - CSharp - }\n else\n {\n + IntermediateToken - (401:13,0 [48] ComplexTagHelpers.cshtml) - CSharp - }\n else\n {\n HtmlContent - (449:16,0 [16] ComplexTagHelpers.cshtml) - RazorIRToken - (449:16,0 [16] ComplexTagHelpers.cshtml) - Html - + IntermediateToken - (449:16,0 [16] ComplexTagHelpers.cshtml) - Html - TagHelper - (465:16,16 [58] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (468:16,19 [14] ComplexTagHelpers.cshtml) - RazorIRToken - (468:16,19 [14] ComplexTagHelpers.cshtml) - Html - Current Time: + IntermediateToken - (468:16,19 [14] ComplexTagHelpers.cshtml) - Html - Current Time: TagHelper - (482:16,33 [37] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (494:16,45 [9] ComplexTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (495:16,46 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (495:16,46 [8] ComplexTagHelpers.cshtml) - CSharp - checkbox + IntermediateToken - (495:16,46 [8] ComplexTagHelpers.cshtml) - CSharp - checkbox SetTagHelperProperty - (494:16,45 [9] ComplexTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (495:16,46 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (495:16,46 [8] ComplexTagHelpers.cshtml) - CSharp - checkbox + IntermediateToken - (495:16,46 [8] ComplexTagHelpers.cshtml) - CSharp - checkbox SetTagHelperProperty - (512:16,63 [4] ComplexTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (512:16,63 [4] ComplexTagHelpers.cshtml) - CSharp - true + IntermediateToken - (512:16,63 [4] ComplexTagHelpers.cshtml) - CSharp - true CreateTagHelper - - TestNamespace.PTagHelper HtmlContent - (523:16,74 [18] ComplexTagHelpers.cshtml) - RazorIRToken - (523:16,74 [2] ComplexTagHelpers.cshtml) - Html - \n - RazorIRToken - (525:17,0 [16] ComplexTagHelpers.cshtml) - Html - + IntermediateToken - (523:16,74 [2] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (525:17,0 [16] ComplexTagHelpers.cshtml) - Html - TagHelper - (541:17,16 [50] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (554:17,29 [33] ComplexTagHelpers.cshtml) - tYPe - Type - HtmlAttributeValueStyle.SingleQuotes CSharpExpression - (556:17,31 [30] ComplexTagHelpers.cshtml) - RazorIRToken - (556:17,31 [30] ComplexTagHelpers.cshtml) - CSharp - true ? "checkbox" : "anything" + IntermediateToken - (556:17,31 [30] ComplexTagHelpers.cshtml) - CSharp - true ? "checkbox" : "anything" SetTagHelperProperty - (554:17,29 [33] ComplexTagHelpers.cshtml) - tYPe - Type - HtmlAttributeValueStyle.SingleQuotes CSharpExpression - (556:17,31 [30] ComplexTagHelpers.cshtml) - RazorIRToken - (556:17,31 [30] ComplexTagHelpers.cshtml) - CSharp - true ? "checkbox" : "anything" + IntermediateToken - (556:17,31 [30] ComplexTagHelpers.cshtml) - CSharp - true ? "checkbox" : "anything" HtmlContent - (591:17,66 [18] ComplexTagHelpers.cshtml) - RazorIRToken - (591:17,66 [2] ComplexTagHelpers.cshtml) - Html - \n - RazorIRToken - (593:18,0 [16] ComplexTagHelpers.cshtml) - Html - + IntermediateToken - (591:17,66 [2] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (593:18,0 [16] ComplexTagHelpers.cshtml) - Html - TagHelper - (609:18,16 [81] ComplexTagHelpers.cshtml) - input - TagMode.StartTagOnly TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (622:18,29 [66] ComplexTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.SingleQuotes CSharpCode - (623:18,30 [11] ComplexTagHelpers.cshtml) - RazorIRToken - (623:18,30 [11] ComplexTagHelpers.cshtml) - CSharp - if(true) { + IntermediateToken - (623:18,30 [11] ComplexTagHelpers.cshtml) - CSharp - if(true) { HtmlContent - (640:18,47 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (640:18,47 [8] ComplexTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (640:18,47 [8] ComplexTagHelpers.cshtml) - Html - checkbox CSharpCode - (655:18,62 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (655:18,62 [10] ComplexTagHelpers.cshtml) - CSharp - } else { + IntermediateToken - (655:18,62 [10] ComplexTagHelpers.cshtml) - CSharp - } else { HtmlContent - (671:18,78 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (671:18,78 [8] ComplexTagHelpers.cshtml) - Html - anything + IntermediateToken - (671:18,78 [8] ComplexTagHelpers.cshtml) - Html - anything CSharpCode - (686:18,93 [2] ComplexTagHelpers.cshtml) - RazorIRToken - (686:18,93 [2] ComplexTagHelpers.cshtml) - CSharp - } + IntermediateToken - (686:18,93 [2] ComplexTagHelpers.cshtml) - CSharp - } SetTagHelperProperty - (622:18,29 [66] ComplexTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.SingleQuotes CSharpCode - (623:18,30 [11] ComplexTagHelpers.cshtml) - RazorIRToken - (623:18,30 [11] ComplexTagHelpers.cshtml) - CSharp - if(true) { + IntermediateToken - (623:18,30 [11] ComplexTagHelpers.cshtml) - CSharp - if(true) { HtmlContent - (640:18,47 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (640:18,47 [8] ComplexTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (640:18,47 [8] ComplexTagHelpers.cshtml) - Html - checkbox CSharpCode - (655:18,62 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (655:18,62 [10] ComplexTagHelpers.cshtml) - CSharp - } else { + IntermediateToken - (655:18,62 [10] ComplexTagHelpers.cshtml) - CSharp - } else { HtmlContent - (671:18,78 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (671:18,78 [8] ComplexTagHelpers.cshtml) - Html - anything + IntermediateToken - (671:18,78 [8] ComplexTagHelpers.cshtml) - Html - anything CSharpCode - (686:18,93 [2] ComplexTagHelpers.cshtml) - RazorIRToken - (686:18,93 [2] ComplexTagHelpers.cshtml) - CSharp - } + IntermediateToken - (686:18,93 [2] ComplexTagHelpers.cshtml) - CSharp - } HtmlContent - (690:18,97 [2] ComplexTagHelpers.cshtml) - RazorIRToken - (690:18,97 [2] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (690:18,97 [2] ComplexTagHelpers.cshtml) - Html - \n CSharpCode - (692:19,0 [15] ComplexTagHelpers.cshtml) - RazorIRToken - (692:19,0 [15] ComplexTagHelpers.cshtml) - CSharp - }\n + IntermediateToken - (692:19,0 [15] ComplexTagHelpers.cshtml) - CSharp - }\n HtmlContent - (707:20,0 [8] ComplexTagHelpers.cshtml) - RazorIRToken - (707:20,0 [8] ComplexTagHelpers.cshtml) - Html - + IntermediateToken - (707:20,0 [8] ComplexTagHelpers.cshtml) - Html - CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - time - HtmlAttributeValueStyle.DoubleQuotes HtmlAttributeValue - (197:8,17 [7] ComplexTagHelpers.cshtml) - - RazorIRToken - (197:8,17 [7] ComplexTagHelpers.cshtml) - Html - Current + IntermediateToken - (197:8,17 [7] ComplexTagHelpers.cshtml) - Html - Current HtmlAttributeValue - (204:8,24 [6] ComplexTagHelpers.cshtml) - - RazorIRToken - (205:8,25 [5] ComplexTagHelpers.cshtml) - Html - Time: + IntermediateToken - (205:8,25 [5] ComplexTagHelpers.cshtml) - Html - Time: CSharpExpressionAttributeValue - (210:8,30 [14] ComplexTagHelpers.cshtml) - - RazorIRToken - (212:8,32 [12] ComplexTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (212:8,32 [12] ComplexTagHelpers.cshtml) - CSharp - DateTime.Now HtmlContent - (719:20,12 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (719:20,12 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (719:20,12 [10] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (729:21,8 [181] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (816:21,95 [2] ComplexTagHelpers.cshtml) - RazorIRToken - (816:21,95 [2] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (816:21,95 [2] ComplexTagHelpers.cshtml) - Html - \n CSharpCode - (818:22,0 [12] ComplexTagHelpers.cshtml) - RazorIRToken - (818:22,0 [12] ComplexTagHelpers.cshtml) - CSharp - + IntermediateToken - (818:22,0 [12] ComplexTagHelpers.cshtml) - CSharp - CSharpCode - (832:22,14 [21] ComplexTagHelpers.cshtml) - RazorIRToken - (832:22,14 [21] ComplexTagHelpers.cshtml) - CSharp - var @object = false; + IntermediateToken - (832:22,14 [21] ComplexTagHelpers.cshtml) - CSharp - var @object = false; HtmlContent - (856:23,0 [12] ComplexTagHelpers.cshtml) - RazorIRToken - (856:23,0 [12] ComplexTagHelpers.cshtml) - Html - + IntermediateToken - (856:23,0 [12] ComplexTagHelpers.cshtml) - Html - TagHelper - (868:23,12 [28] ComplexTagHelpers.cshtml) - input - TagMode.StartTagOnly TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (884:23,28 [10] ComplexTagHelpers.cshtml) - ChecKED - Checked - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (885:23,29 [9] ComplexTagHelpers.cshtml) - RazorIRToken - (885:23,29 [1] ComplexTagHelpers.cshtml) - CSharp - ( - RazorIRToken - (886:23,30 [7] ComplexTagHelpers.cshtml) - CSharp - @object - RazorIRToken - (893:23,37 [1] ComplexTagHelpers.cshtml) - CSharp - ) + IntermediateToken - (885:23,29 [1] ComplexTagHelpers.cshtml) - CSharp - ( + IntermediateToken - (886:23,30 [7] ComplexTagHelpers.cshtml) - CSharp - @object + IntermediateToken - (893:23,37 [1] ComplexTagHelpers.cshtml) - CSharp - ) HtmlContent - (896:23,40 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (896:23,40 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (896:23,40 [10] ComplexTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 SetTagHelperProperty - (759:21,38 [31] ComplexTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (760:21,39 [23] ComplexTagHelpers.cshtml) - RazorIRToken - (760:21,39 [23] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year - RazorIRToken - (783:21,62 [2] ComplexTagHelpers.cshtml) - CSharp - - - RazorIRToken - (785:21,64 [5] ComplexTagHelpers.cshtml) - CSharp - 1970 + IntermediateToken - (760:21,39 [23] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year + IntermediateToken - (783:21,62 [2] ComplexTagHelpers.cshtml) - CSharp - - + IntermediateToken - (785:21,64 [5] ComplexTagHelpers.cshtml) - CSharp - 1970 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_4 HtmlContent - (910:24,12 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (910:24,12 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (910:24,12 [10] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (920:25,8 [155] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (962:25,50 [14] ComplexTagHelpers.cshtml) - RazorIRToken - (962:25,50 [14] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (962:25,50 [14] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (976:26,12 [85] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -190,69 +190,69 @@ Document - AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_6 SetTagHelperProperty - (1024:26,60 [33] ComplexTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (1025:26,61 [32] ComplexTagHelpers.cshtml) - RazorIRToken - (1025:26,61 [1] ComplexTagHelpers.cshtml) - CSharp - ( - RazorIRToken - (1026:26,62 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year > 2014 - RazorIRToken - (1056:26,92 [1] ComplexTagHelpers.cshtml) - CSharp - ) + IntermediateToken - (1025:26,61 [1] ComplexTagHelpers.cshtml) - CSharp - ( + IntermediateToken - (1026:26,62 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year > 2014 + IntermediateToken - (1056:26,92 [1] ComplexTagHelpers.cshtml) - CSharp - ) HtmlContent - (1061:26,97 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (1061:26,97 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1061:26,97 [10] ComplexTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (928:25,16 [32] ComplexTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (928:25,16 [5] ComplexTagHelpers.cshtml) - CSharp - -1970 - RazorIRToken - (933:25,21 [2] ComplexTagHelpers.cshtml) - CSharp - + - RazorIRToken - (935:25,23 [1] ComplexTagHelpers.cshtml) - CSharp - + IntermediateToken - (928:25,16 [5] ComplexTagHelpers.cshtml) - CSharp - -1970 + IntermediateToken - (933:25,21 [2] ComplexTagHelpers.cshtml) - CSharp - + + IntermediateToken - (935:25,23 [1] ComplexTagHelpers.cshtml) - CSharp - CSharpExpression - (936:25,24 [24] ComplexTagHelpers.cshtml) - RazorIRToken - (936:25,24 [1] ComplexTagHelpers.cshtml) - CSharp - @ - RazorIRToken - (937:25,25 [23] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year + IntermediateToken - (936:25,24 [1] ComplexTagHelpers.cshtml) - CSharp - @ + IntermediateToken - (937:25,25 [23] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year HtmlContent - (1075:27,12 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (1075:27,12 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1075:27,12 [10] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (1085:28,8 [116] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (1125:28,48 [14] ComplexTagHelpers.cshtml) - RazorIRToken - (1125:28,48 [14] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1125:28,48 [14] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (1139:29,12 [48] ComplexTagHelpers.cshtml) - input - TagMode.StartTagOnly TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (1155:29,28 [30] ComplexTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (1155:29,28 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year > 2014 + IntermediateToken - (1155:29,28 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year > 2014 HtmlContent - (1187:29,60 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (1187:29,60 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1187:29,60 [10] ComplexTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (1093:28,16 [30] ComplexTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (1093:28,16 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year\-1970 + IntermediateToken - (1093:28,16 [30] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year\-1970 HtmlContent - (1201:30,12 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (1201:30,12 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1201:30,12 [10] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (1211:31,8 [133] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (1253:31,50 [14] ComplexTagHelpers.cshtml) - RazorIRToken - (1253:31,50 [14] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1253:31,50 [14] ComplexTagHelpers.cshtml) - Html - \n TagHelper - (1267:32,12 [63] ComplexTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (1283:32,28 [43] ComplexTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (1283:32,28 [3] ComplexTagHelpers.cshtml) - CSharp - + IntermediateToken - (1283:32,28 [3] ComplexTagHelpers.cshtml) - CSharp - CSharpExpression - (1286:32,31 [30] ComplexTagHelpers.cshtml) - RazorIRToken - (1286:32,31 [1] ComplexTagHelpers.cshtml) - CSharp - @ - RazorIRToken - (1287:32,32 [1] ComplexTagHelpers.cshtml) - CSharp - ( - RazorIRToken - (1288:32,33 [27] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year - RazorIRToken - (1315:32,60 [1] ComplexTagHelpers.cshtml) - CSharp - ) - RazorIRToken - (1316:32,61 [2] ComplexTagHelpers.cshtml) - CSharp - > - RazorIRToken - (1318:32,63 [5] ComplexTagHelpers.cshtml) - CSharp - 2014 - RazorIRToken - (1323:32,68 [3] ComplexTagHelpers.cshtml) - CSharp - + IntermediateToken - (1286:32,31 [1] ComplexTagHelpers.cshtml) - CSharp - @ + IntermediateToken - (1287:32,32 [1] ComplexTagHelpers.cshtml) - CSharp - ( + IntermediateToken - (1288:32,33 [27] ComplexTagHelpers.cshtml) - CSharp - DateTimeOffset.Now.Year + IntermediateToken - (1315:32,60 [1] ComplexTagHelpers.cshtml) - CSharp - ) + IntermediateToken - (1316:32,61 [2] ComplexTagHelpers.cshtml) - CSharp - > + IntermediateToken - (1318:32,63 [5] ComplexTagHelpers.cshtml) - CSharp - 2014 + IntermediateToken - (1323:32,68 [3] ComplexTagHelpers.cshtml) - CSharp - HtmlContent - (1330:32,75 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (1330:32,75 [10] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1330:32,75 [10] ComplexTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (1219:31,16 [32] ComplexTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (1220:31,17 [31] ComplexTagHelpers.cshtml) - RazorIRToken - (1220:31,17 [1] ComplexTagHelpers.cshtml) - CSharp - ( - RazorIRToken - (1221:31,18 [29] ComplexTagHelpers.cshtml) - CSharp - "My age is this long.".Length - RazorIRToken - (1250:31,47 [1] ComplexTagHelpers.cshtml) - CSharp - ) + IntermediateToken - (1220:31,17 [1] ComplexTagHelpers.cshtml) - CSharp - ( + IntermediateToken - (1221:31,18 [29] ComplexTagHelpers.cshtml) - CSharp - "My age is this long.".Length + IntermediateToken - (1250:31,47 [1] ComplexTagHelpers.cshtml) - CSharp - ) HtmlContent - (1344:33,12 [10] ComplexTagHelpers.cshtml) - RazorIRToken - (1344:33,12 [2] ComplexTagHelpers.cshtml) - Html - \n - RazorIRToken - (1346:34,0 [8] ComplexTagHelpers.cshtml) - Html - + IntermediateToken - (1344:33,12 [2] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1346:34,0 [8] ComplexTagHelpers.cshtml) - Html - CSharpExpression - (1355:34,9 [69] ComplexTagHelpers.cshtml) - RazorIRToken - (1355:34,9 [11] ComplexTagHelpers.cshtml) - CSharp - someMethod( + IntermediateToken - (1355:34,9 [11] ComplexTagHelpers.cshtml) - CSharp - someMethod( Template - (1367:34,21 [57] ComplexTagHelpers.cshtml) TagHelper - (1367:34,21 [57] ComplexTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - @@ -262,15 +262,15 @@ Document - CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (1409:34,63 [8] ComplexTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (1410:34,64 [7] ComplexTagHelpers.cshtml) - RazorIRToken - (1410:34,64 [7] ComplexTagHelpers.cshtml) - CSharp - checked + IntermediateToken - (1410:34,64 [7] ComplexTagHelpers.cshtml) - CSharp - checked CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (1375:34,29 [3] ComplexTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (1375:34,29 [3] ComplexTagHelpers.cshtml) - CSharp - 123 + IntermediateToken - (1375:34,29 [3] ComplexTagHelpers.cshtml) - CSharp - 123 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_7 - RazorIRToken - (1424:34,78 [1] ComplexTagHelpers.cshtml) - CSharp - ) + IntermediateToken - (1424:34,78 [1] ComplexTagHelpers.cshtml) - CSharp - ) HtmlContent - (1425:34,79 [14] ComplexTagHelpers.cshtml) - RazorIRToken - (1425:34,79 [6] ComplexTagHelpers.cshtml) - Html - \n - RazorIRToken - (1431:35,4 [6] ComplexTagHelpers.cshtml) - Html -
- RazorIRToken - (1437:35,10 [2] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1425:34,79 [6] ComplexTagHelpers.cshtml) - Html - \n + IntermediateToken - (1431:35,4 [6] ComplexTagHelpers.cshtml) - Html -
+ IntermediateToken - (1437:35,10 [2] ComplexTagHelpers.cshtml) - Html - \n CSharpCode - (1439:36,0 [1] ComplexTagHelpers.cshtml) - RazorIRToken - (1439:36,0 [1] ComplexTagHelpers.cshtml) - CSharp - } + IntermediateToken - (1439:36,0 [1] ComplexTagHelpers.cshtml) - CSharp - } 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 bc60f5bca..29666f133 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 @@ -3,114 +3,114 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [48] ConditionalAttributes.cshtml) - RazorIRToken - (2:0,2 [48] ConditionalAttributes.cshtml) - CSharp - \n var ch = true;\n var cls = "bar";\n + IntermediateToken - (2:0,2 [48] ConditionalAttributes.cshtml) - CSharp - \n var ch = true;\n var cls = "bar";\n HtmlContent - (50:3,4 [16] ConditionalAttributes.cshtml) - RazorIRToken - (50:3,4 [2] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (50:3,4 [2] ConditionalAttributes.cshtml) - Html - CSharpCode - (66:3,20 [6] ConditionalAttributes.cshtml) - RazorIRToken - (66:3,20 [6] ConditionalAttributes.cshtml) - CSharp - \n + IntermediateToken - (66:3,20 [6] ConditionalAttributes.cshtml) - CSharp - \n HtmlContent - (72:4,4 [2] ConditionalAttributes.cshtml) - RazorIRToken - (72:4,4 [2] ConditionalAttributes.cshtml) - Html -

+ IntermediateToken - (87:4,19 [3] ConditionalAttributes.cshtml) - Html - /> CSharpCode - (90:4,22 [6] ConditionalAttributes.cshtml) - RazorIRToken - (90:4,22 [6] ConditionalAttributes.cshtml) - CSharp - \n + IntermediateToken - (90:4,22 [6] ConditionalAttributes.cshtml) - CSharp - \n HtmlContent - (96:5,4 [2] ConditionalAttributes.cshtml) - RazorIRToken - (96:5,4 [2] ConditionalAttributes.cshtml) - Html -

+ IntermediateToken - (115:5,23 [3] ConditionalAttributes.cshtml) - Html - /> CSharpCode - (118:5,26 [6] ConditionalAttributes.cshtml) - RazorIRToken - (118:5,26 [6] ConditionalAttributes.cshtml) - CSharp - \n + IntermediateToken - (118:5,26 [6] ConditionalAttributes.cshtml) - CSharp - \n HtmlContent - (124:6,4 [2] ConditionalAttributes.cshtml) - RazorIRToken - (124:6,4 [2] ConditionalAttributes.cshtml) - Html -

+ IntermediateToken - (143:6,23 [3] ConditionalAttributes.cshtml) - Html - /> CSharpCode - (146:6,26 [6] ConditionalAttributes.cshtml) - RazorIRToken - (146:6,26 [6] ConditionalAttributes.cshtml) - CSharp - \n + IntermediateToken - (146:6,26 [6] ConditionalAttributes.cshtml) - CSharp - \n HtmlContent - (152:7,4 [22] ConditionalAttributes.cshtml) - RazorIRToken - (152:7,4 [6] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (188:7,40 [3] ConditionalAttributes.cshtml) - Html - /> CSharpCode - (191:7,43 [6] ConditionalAttributes.cshtml) - RazorIRToken - (191:7,43 [6] ConditionalAttributes.cshtml) - CSharp - \n + IntermediateToken - (191:7,43 [6] ConditionalAttributes.cshtml) - CSharp - \n HtmlContent - (197:8,4 [22] ConditionalAttributes.cshtml) - RazorIRToken - (197:8,4 [6] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (237:8,44 [3] ConditionalAttributes.cshtml) - Html - /> CSharpCode - (240:8,47 [6] ConditionalAttributes.cshtml) - RazorIRToken - (240:8,47 [6] ConditionalAttributes.cshtml) - CSharp - \n + IntermediateToken - (240:8,47 [6] ConditionalAttributes.cshtml) - CSharp - \n HtmlContent - (246:9,4 [2] ConditionalAttributes.cshtml) - RazorIRToken - (246:9,4 [2] ConditionalAttributes.cshtml) - Html -

+ IntermediateToken - (282:9,40 [3] ConditionalAttributes.cshtml) - Html - /> CSharpCode - (285:9,43 [6] ConditionalAttributes.cshtml) - RazorIRToken - (285:9,43 [6] ConditionalAttributes.cshtml) - CSharp - \n + IntermediateToken - (285:9,43 [6] ConditionalAttributes.cshtml) - CSharp - \n HtmlContent - (291:10,4 [18] ConditionalAttributes.cshtml) - RazorIRToken - (291:10,4 [2] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (291:10,4 [2] ConditionalAttributes.cshtml) - Html - CSharpCode - (309:10,22 [6] ConditionalAttributes.cshtml) - RazorIRToken - (309:10,22 [6] ConditionalAttributes.cshtml) - CSharp - \n + IntermediateToken - (309:10,22 [6] ConditionalAttributes.cshtml) - CSharp - \n HtmlContent - (315:11,4 [7] ConditionalAttributes.cshtml) - RazorIRToken - (315:11,4 [7] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (374:11,63 [23] ConditionalAttributes.cshtml) - Html - type="text/javascript" + IntermediateToken - (397:11,86 [1] ConditionalAttributes.cshtml) - Html - > + IntermediateToken - (398:11,87 [9] ConditionalAttributes.cshtml) - Html - CSharpCode - (407:11,96 [6] ConditionalAttributes.cshtml) - RazorIRToken - (407:11,96 [6] ConditionalAttributes.cshtml) - CSharp - \n + IntermediateToken - (407:11,96 [6] ConditionalAttributes.cshtml) - CSharp - \n HtmlContent - (413:12,4 [7] ConditionalAttributes.cshtml) - RazorIRToken - (413:12,4 [7] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (488:12,79 [23] ConditionalAttributes.cshtml) - Html - type="text/javascript" + IntermediateToken - (511:12,102 [1] ConditionalAttributes.cshtml) - Html - > + IntermediateToken - (512:12,103 [9] ConditionalAttributes.cshtml) - Html - CSharpCode - (521:12,112 [6] ConditionalAttributes.cshtml) - RazorIRToken - (521:12,112 [6] ConditionalAttributes.cshtml) - CSharp - \n + IntermediateToken - (521:12,112 [6] ConditionalAttributes.cshtml) - CSharp - \n HtmlContent - (527:13,4 [111] ConditionalAttributes.cshtml) - RazorIRToken - (527:13,4 [7] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (527:13,4 [7] ConditionalAttributes.cshtml) - Html - CSharpCode - (638:13,115 [2] ConditionalAttributes.cshtml) - RazorIRToken - (638:13,115 [2] ConditionalAttributes.cshtml) - CSharp - \n + IntermediateToken - (638:13,115 [2] ConditionalAttributes.cshtml) - CSharp - \n 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 be74b6c63..3e193123b 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 @@ -3,103 +3,103 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ConditionalAttributes_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [44] ConditionalAttributes.cshtml) - RazorIRToken - (2:0,2 [44] ConditionalAttributes.cshtml) - CSharp - \n var ch = true;\n var cls = "bar";\n + IntermediateToken - (2:0,2 [44] ConditionalAttributes.cshtml) - CSharp - \n var ch = true;\n var cls = "bar";\n HtmlContent - (46:3,0 [28] ConditionalAttributes.cshtml) - RazorIRToken - (46:3,0 [4] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (50:3,4 [2] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (66:3,20 [2] ConditionalAttributes.cshtml) - Html - \n - RazorIRToken - (68:4,0 [4] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (72:4,4 [2] ConditionalAttributes.cshtml) - Html -

+ IntermediateToken - (66:3,20 [2] ConditionalAttributes.cshtml) - Html - \n + IntermediateToken - (68:4,0 [4] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (72:4,4 [2] ConditionalAttributes.cshtml) - Html -

- RazorIRToken - (90:4,22 [2] ConditionalAttributes.cshtml) - Html - \n - RazorIRToken - (92:5,0 [4] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (96:5,4 [2] ConditionalAttributes.cshtml) - Html -

+ IntermediateToken - (90:4,22 [2] ConditionalAttributes.cshtml) - Html - \n + IntermediateToken - (92:5,0 [4] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (96:5,4 [2] ConditionalAttributes.cshtml) - Html -

- RazorIRToken - (118:5,26 [2] ConditionalAttributes.cshtml) - Html - \n - RazorIRToken - (120:6,0 [4] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (124:6,4 [2] ConditionalAttributes.cshtml) - Html -

+ IntermediateToken - (118:5,26 [2] ConditionalAttributes.cshtml) - Html - \n + IntermediateToken - (120:6,0 [4] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (124:6,4 [2] ConditionalAttributes.cshtml) - Html -

- RazorIRToken - (146:6,26 [2] ConditionalAttributes.cshtml) - Html - \n - RazorIRToken - (148:7,0 [4] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (152:7,4 [6] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (146:6,26 [2] ConditionalAttributes.cshtml) - Html - \n + IntermediateToken - (148:7,0 [4] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (152:7,4 [6] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (191:7,43 [2] ConditionalAttributes.cshtml) - Html - \n - RazorIRToken - (193:8,0 [4] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (197:8,4 [6] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (191:7,43 [2] ConditionalAttributes.cshtml) - Html - \n + IntermediateToken - (193:8,0 [4] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (197:8,4 [6] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (240:8,47 [2] ConditionalAttributes.cshtml) - Html - \n - RazorIRToken - (242:9,0 [4] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (246:9,4 [2] ConditionalAttributes.cshtml) - Html -

+ IntermediateToken - (240:8,47 [2] ConditionalAttributes.cshtml) - Html - \n + IntermediateToken - (242:9,0 [4] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (246:9,4 [2] ConditionalAttributes.cshtml) - Html -

- RazorIRToken - (285:9,43 [2] ConditionalAttributes.cshtml) - Html - \n - RazorIRToken - (287:10,0 [4] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (291:10,4 [2] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (309:10,22 [2] ConditionalAttributes.cshtml) - Html - \n - RazorIRToken - (311:11,0 [4] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (315:11,4 [7] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (407:11,96 [2] ConditionalAttributes.cshtml) - Html - \n - RazorIRToken - (409:12,0 [4] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (413:12,4 [7] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (407:11,96 [2] ConditionalAttributes.cshtml) - Html - \n + IntermediateToken - (409:12,0 [4] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (413:12,4 [7] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (521:12,112 [2] ConditionalAttributes.cshtml) - Html - \n - RazorIRToken - (523:13,0 [4] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (527:13,4 [7] ConditionalAttributes.cshtml) - Html - - RazorIRToken - (638:13,115 [2] ConditionalAttributes.cshtml) - Html - \n + IntermediateToken - (488:12,79 [23] ConditionalAttributes.cshtml) - Html - type="text/javascript" + IntermediateToken - (511:12,102 [1] ConditionalAttributes.cshtml) - Html - > + IntermediateToken - (512:12,103 [9] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (521:12,112 [2] ConditionalAttributes.cshtml) - Html - \n + IntermediateToken - (523:13,0 [4] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (527:13,4 [7] ConditionalAttributes.cshtml) - Html - + IntermediateToken - (638:13,115 [2] ConditionalAttributes.cshtml) - Html - \n CSharpCode - (640:14,0 [0] ConditionalAttributes.cshtml) - RazorIRToken - (640:14,0 [0] ConditionalAttributes.cshtml) - CSharp - + IntermediateToken - (640:14,0 [0] ConditionalAttributes.cshtml) - CSharp - 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 ea9354108..627ff38fd 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 @@ -13,86 +13,86 @@ Document - DeclareTagHelperFields - - TestNamespace.ATagHelper - TestNamespace.CatchAllTagHelper - TestNamespace.ATagHelperMultipleSelectors - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.CatchAllTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (33:1,0 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n TagHelper - (35:2,0 [30] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (48:2,13 [13] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (48:2,13 [13] CssSelectorTagHelperAttributes.cshtml) - Html - 2 TagHelpers. + IntermediateToken - (48:2,13 [13] CssSelectorTagHelperAttributes.cshtml) - Html - 2 TagHelpers. CreateTagHelper - - TestNamespace.ATagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 HtmlContent - (65:2,30 [2] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (65:2,30 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (65:2,30 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n TagHelper - (67:3,0 [32] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (83:3,16 [12] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (83:3,16 [12] CssSelectorTagHelperAttributes.cshtml) - Html - 1 TagHelper. + IntermediateToken - (83:3,16 [12] CssSelectorTagHelperAttributes.cshtml) - Html - 1 TagHelper. CreateTagHelper - - TestNamespace.CatchAllTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 HtmlContent - (99:3,32 [2] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (99:3,32 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (99:3,32 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n TagHelper - (101:4,0 [41] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (126:4,25 [12] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (126:4,25 [12] CssSelectorTagHelperAttributes.cshtml) - Html - 2 TagHelpers + IntermediateToken - (126:4,25 [12] CssSelectorTagHelperAttributes.cshtml) - Html - 2 TagHelpers CreateTagHelper - - TestNamespace.ATagHelperMultipleSelectors CreateTagHelper - - TestNamespace.CatchAllTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 HtmlContent - (142:4,41 [2] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (142:4,41 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (142:4,41 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n TagHelper - (144:5,0 [47] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (175:5,31 [12] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (175:5,31 [12] CssSelectorTagHelperAttributes.cshtml) - Html - 2 TagHelpers + IntermediateToken - (175:5,31 [12] CssSelectorTagHelperAttributes.cshtml) - Html - 2 TagHelpers CreateTagHelper - - TestNamespace.ATagHelperMultipleSelectors CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - href - HtmlAttributeValueStyle.DoubleQuotes HtmlAttributeValue - (153:5,9 [2] CssSelectorTagHelperAttributes.cshtml) - - RazorIRToken - (153:5,9 [2] CssSelectorTagHelperAttributes.cshtml) - Html - ~/ + IntermediateToken - (153:5,9 [2] CssSelectorTagHelperAttributes.cshtml) - Html - ~/ CSharpExpressionAttributeValue - (155:5,11 [6] CssSelectorTagHelperAttributes.cshtml) - - RazorIRToken - (156:5,12 [5] CssSelectorTagHelperAttributes.cshtml) - CSharp - false + IntermediateToken - (156:5,12 [5] CssSelectorTagHelperAttributes.cshtml) - CSharp - false HtmlAttributeValue - (161:5,17 [12] CssSelectorTagHelperAttributes.cshtml) - - RazorIRToken - (161:5,17 [12] CssSelectorTagHelperAttributes.cshtml) - Html - ?hello=world + IntermediateToken - (161:5,17 [12] CssSelectorTagHelperAttributes.cshtml) - Html - ?hello=world HtmlContent - (191:5,47 [35] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (191:5,47 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n - RazorIRToken - (193:6,0 [2] CssSelectorTagHelperAttributes.cshtml) - Html - - RazorIRToken - (207:6,14 [13] CssSelectorTagHelperAttributes.cshtml) - Html - 0 TagHelpers. - RazorIRToken - (220:6,27 [4] CssSelectorTagHelperAttributes.cshtml) - Html - - RazorIRToken - (224:6,31 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (191:5,47 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (193:6,0 [2] CssSelectorTagHelperAttributes.cshtml) - Html - + IntermediateToken - (207:6,14 [13] CssSelectorTagHelperAttributes.cshtml) - Html - 0 TagHelpers. + IntermediateToken - (220:6,27 [4] CssSelectorTagHelperAttributes.cshtml) - Html - + IntermediateToken - (224:6,31 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n TagHelper - (226:7,0 [32] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (243:7,17 [11] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (243:7,17 [11] CssSelectorTagHelperAttributes.cshtml) - Html - 1 TagHelper + IntermediateToken - (243:7,17 [11] CssSelectorTagHelperAttributes.cshtml) - Html - 1 TagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - href - HtmlAttributeValueStyle.DoubleQuotes HtmlAttributeValue - (234:7,8 [2] CssSelectorTagHelperAttributes.cshtml) - - RazorIRToken - (234:7,8 [2] CssSelectorTagHelperAttributes.cshtml) - Html - ~/ + IntermediateToken - (234:7,8 [2] CssSelectorTagHelperAttributes.cshtml) - Html - ~/ CSharpExpressionAttributeValue - (236:7,10 [6] CssSelectorTagHelperAttributes.cshtml) - - RazorIRToken - (237:7,11 [5] CssSelectorTagHelperAttributes.cshtml) - CSharp - false + IntermediateToken - (237:7,11 [5] CssSelectorTagHelperAttributes.cshtml) - CSharp - false HtmlContent - (258:7,32 [2] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (258:7,32 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (258:7,32 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n TagHelper - (260:8,0 [46] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (291:8,31 [11] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (291:8,31 [11] CssSelectorTagHelperAttributes.cshtml) - Html - 1 TagHelper + IntermediateToken - (291:8,31 [11] CssSelectorTagHelperAttributes.cshtml) - Html - 1 TagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 HtmlContent - (306:8,46 [2] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (306:8,46 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (306:8,46 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n TagHelper - (308:9,0 [47] CssSelectorTagHelperAttributes.cshtml) - a - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (340:9,32 [11] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (340:9,32 [11] CssSelectorTagHelperAttributes.cshtml) - Html - 1 TagHelper + IntermediateToken - (340:9,32 [11] CssSelectorTagHelperAttributes.cshtml) - Html - 1 TagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - href - HtmlAttributeValueStyle.SingleQuotes HtmlAttributeValue - (317:9,9 [14] CssSelectorTagHelperAttributes.cshtml) - - RazorIRToken - (317:9,9 [14] CssSelectorTagHelperAttributes.cshtml) - Html - ~/?hello=world + IntermediateToken - (317:9,9 [14] CssSelectorTagHelperAttributes.cshtml) - Html - ~/?hello=world CSharpExpressionAttributeValue - (331:9,23 [7] CssSelectorTagHelperAttributes.cshtml) - - RazorIRToken - (333:9,25 [5] CssSelectorTagHelperAttributes.cshtml) - CSharp - false + IntermediateToken - (333:9,25 [5] CssSelectorTagHelperAttributes.cshtml) - CSharp - false HtmlContent - (355:9,47 [2] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (355:9,47 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (355:9,47 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n TagHelper - (357:10,0 [42] CssSelectorTagHelperAttributes.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -102,7 +102,7 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_4 - type - Type AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 HtmlContent - (399:10,42 [2] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (399:10,42 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (399:10,42 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n TagHelper - (401:11,0 [43] CssSelectorTagHelperAttributes.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper2 @@ -110,7 +110,7 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_6 - type - Type AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 HtmlContent - (444:11,43 [2] CssSelectorTagHelperAttributes.cshtml) - RazorIRToken - (444:11,43 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (444:11,43 [2] CssSelectorTagHelperAttributes.cshtml) - Html - \n TagHelper - (446:12,0 [45] CssSelectorTagHelperAttributes.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper2 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 f2a34a52d..e53c2e783 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 @@ -4,56 +4,56 @@ Document - DesignTimeDirective - DirectiveToken - (173:11,9 [6] DesignTime.cshtml) - Footer CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [19] DesignTime.cshtml) - RazorIRToken - (0:0,0 [5] DesignTime.cshtml) - Html -

- RazorIRToken - (5:0,5 [14] DesignTime.cshtml) - Html - \n + IntermediateToken - (0:0,0 [5] DesignTime.cshtml) - Html -
+ IntermediateToken - (5:0,5 [14] DesignTime.cshtml) - Html - \n CSharpCode - (20:1,13 [36] DesignTime.cshtml) - RazorIRToken - (20:1,13 [36] DesignTime.cshtml) - CSharp - for(int i = 1; i <= 10; i++) {\n + IntermediateToken - (20:1,13 [36] DesignTime.cshtml) - CSharp - for(int i = 1; i <= 10; i++) {\n HtmlContent - (56:2,4 [17] DesignTime.cshtml) - RazorIRToken - (56:2,4 [3] DesignTime.cshtml) - Html -

- RazorIRToken - (59:2,7 [14] DesignTime.cshtml) - Html - This is item # + IntermediateToken - (56:2,4 [3] DesignTime.cshtml) - Html -

+ IntermediateToken - (59:2,7 [14] DesignTime.cshtml) - Html - This is item # CSharpExpression - (74:2,22 [1] DesignTime.cshtml) - RazorIRToken - (74:2,22 [1] DesignTime.cshtml) - CSharp - i + IntermediateToken - (74:2,22 [1] DesignTime.cshtml) - CSharp - i HtmlContent - (75:2,23 [4] DesignTime.cshtml) - RazorIRToken - (75:2,23 [4] DesignTime.cshtml) - Html -

+ IntermediateToken - (75:2,23 [4] DesignTime.cshtml) - Html -

CSharpCode - (79:2,27 [15] DesignTime.cshtml) - RazorIRToken - (79:2,27 [15] DesignTime.cshtml) - CSharp - \n } + IntermediateToken - (79:2,27 [15] DesignTime.cshtml) - CSharp - \n } HtmlContent - (94:3,13 [17] DesignTime.cshtml) - RazorIRToken - (94:3,13 [2] DesignTime.cshtml) - Html - \n - RazorIRToken - (96:4,0 [6] DesignTime.cshtml) - Html -
- RazorIRToken - (102:4,6 [4] DesignTime.cshtml) - Html - \n\n - RazorIRToken - (106:6,0 [3] DesignTime.cshtml) - Html -

- RazorIRToken - (109:6,3 [2] DesignTime.cshtml) - Html - \n + IntermediateToken - (94:3,13 [2] DesignTime.cshtml) - Html - \n + IntermediateToken - (96:4,0 [6] DesignTime.cshtml) - Html -

+ IntermediateToken - (102:4,6 [4] DesignTime.cshtml) - Html - \n\n + IntermediateToken - (106:6,0 [3] DesignTime.cshtml) - Html -

+ IntermediateToken - (109:6,3 [2] DesignTime.cshtml) - Html - \n CSharpExpression - (113:7,2 [12] DesignTime.cshtml) - RazorIRToken - (113:7,2 [12] DesignTime.cshtml) - CSharp - Foo(Bar.Baz) + IntermediateToken - (113:7,2 [12] DesignTime.cshtml) - CSharp - Foo(Bar.Baz) HtmlContent - (126:7,15 [2] DesignTime.cshtml) - RazorIRToken - (126:7,15 [2] DesignTime.cshtml) - Html - \n + IntermediateToken - (126:7,15 [2] DesignTime.cshtml) - Html - \n CSharpExpression - (129:8,1 [23] DesignTime.cshtml) - RazorIRToken - (129:8,1 [4] DesignTime.cshtml) - CSharp - Foo( + IntermediateToken - (129:8,1 [4] DesignTime.cshtml) - CSharp - Foo( Template - (134:8,6 [18] DesignTime.cshtml) HtmlContent - (134:8,6 [7] DesignTime.cshtml) - RazorIRToken - (134:8,6 [3] DesignTime.cshtml) - Html -

- RazorIRToken - (137:8,9 [4] DesignTime.cshtml) - Html - Bar + IntermediateToken - (134:8,6 [3] DesignTime.cshtml) - Html -

+ IntermediateToken - (137:8,9 [4] DesignTime.cshtml) - Html - Bar CSharpExpression - (142:8,14 [3] DesignTime.cshtml) - RazorIRToken - (142:8,14 [3] DesignTime.cshtml) - CSharp - baz + IntermediateToken - (142:8,14 [3] DesignTime.cshtml) - CSharp - baz HtmlContent - (145:8,17 [8] DesignTime.cshtml) - RazorIRToken - (145:8,17 [4] DesignTime.cshtml) - Html - Biz - RazorIRToken - (149:8,21 [4] DesignTime.cshtml) - Html -

- RazorIRToken - (153:8,25 [1] DesignTime.cshtml) - CSharp - ) + IntermediateToken - (145:8,17 [4] DesignTime.cshtml) - Html - Biz + IntermediateToken - (149:8,21 [4] DesignTime.cshtml) - Html -

+ IntermediateToken - (153:8,25 [1] DesignTime.cshtml) - CSharp - ) HtmlContent - (154:8,26 [10] DesignTime.cshtml) - RazorIRToken - (154:8,26 [2] DesignTime.cshtml) - Html - \n - RazorIRToken - (156:9,0 [4] DesignTime.cshtml) - Html -

- RazorIRToken - (160:9,4 [4] DesignTime.cshtml) - Html - \n\n + IntermediateToken - (154:8,26 [2] DesignTime.cshtml) - Html - \n + IntermediateToken - (156:9,0 [4] DesignTime.cshtml) - Html -

+ IntermediateToken - (160:9,4 [4] DesignTime.cshtml) - Html - \n\n Section - - Footer HtmlContent - (181:11,17 [22] DesignTime.cshtml) - RazorIRToken - (181:11,17 [6] DesignTime.cshtml) - Html - \n - RazorIRToken - (187:12,4 [3] DesignTime.cshtml) - Html -

- RazorIRToken - (190:12,7 [3] DesignTime.cshtml) - Html - Foo - RazorIRToken - (193:12,10 [4] DesignTime.cshtml) - Html -

- RazorIRToken - (197:12,14 [6] DesignTime.cshtml) - Html - \n + IntermediateToken - (181:11,17 [6] DesignTime.cshtml) - Html - \n + IntermediateToken - (187:12,4 [3] DesignTime.cshtml) - Html -

+ IntermediateToken - (190:12,7 [3] DesignTime.cshtml) - Html - Foo + IntermediateToken - (193:12,10 [4] DesignTime.cshtml) - Html -

+ IntermediateToken - (197:12,14 [6] DesignTime.cshtml) - Html - \n CSharpExpression - (204:13,5 [3] DesignTime.cshtml) - RazorIRToken - (204:13,5 [3] DesignTime.cshtml) - CSharp - bar + IntermediateToken - (204:13,5 [3] DesignTime.cshtml) - CSharp - bar HtmlContent - (207:13,8 [2] DesignTime.cshtml) - RazorIRToken - (207:13,8 [2] DesignTime.cshtml) - Html - \n + IntermediateToken - (207:13,8 [2] 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 489fa4bd6..831223226 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 @@ -4,82 +4,82 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] DuplicateAttributeTagHelpers.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (31:0,31 [4] DuplicateAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (31:0,31 [4] DuplicateAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (35:2,0 [259] DuplicateAttributeTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (65:2,30 [6] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (65:2,30 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (65:2,30 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n TagHelper - (71:3,4 [39] DuplicateAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button + IntermediateToken - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button SetTagHelperProperty - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button + IntermediateToken - (84:3,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button AddTagHelperHtmlAttribute - - TYPE - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (98:3,31 [8] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (98:3,31 [8] DuplicateAttributeTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (98:3,31 [8] DuplicateAttributeTagHelpers.cshtml) - Html - checkbox HtmlContent - (110:3,43 [6] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (110:3,43 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (110:3,43 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n TagHelper - (116:4,4 [70] DuplicateAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button + IntermediateToken - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button SetTagHelperProperty - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button + IntermediateToken - (129:4,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button SetTagHelperProperty - (146:4,34 [4] DuplicateAttributeTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (146:4,34 [4] DuplicateAttributeTagHelpers.cshtml) - CSharp - true + IntermediateToken - (146:4,34 [4] DuplicateAttributeTagHelpers.cshtml) - CSharp - true AddTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (158:4,46 [8] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (158:4,46 [8] DuplicateAttributeTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (158:4,46 [8] DuplicateAttributeTagHelpers.cshtml) - Html - checkbox AddTagHelperHtmlAttribute - - checked - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (177:4,65 [5] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (177:4,65 [5] DuplicateAttributeTagHelpers.cshtml) - Html - false + IntermediateToken - (177:4,65 [5] DuplicateAttributeTagHelpers.cshtml) - Html - false HtmlContent - (186:4,74 [6] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (186:4,74 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (186:4,74 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n TagHelper - (192:5,4 [96] DuplicateAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.SingleQuotes HtmlContent - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button + IntermediateToken - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button SetTagHelperProperty - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.SingleQuotes HtmlContent - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button + IntermediateToken - (205:5,17 [6] DuplicateAttributeTagHelpers.cshtml) - Html - button SetTagHelperProperty - (222:5,34 [4] DuplicateAttributeTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (222:5,34 [4] DuplicateAttributeTagHelpers.cshtml) - CSharp - true + IntermediateToken - (222:5,34 [4] DuplicateAttributeTagHelpers.cshtml) - CSharp - true AddTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (233:5,45 [8] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (233:5,45 [8] DuplicateAttributeTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (233:5,45 [8] DuplicateAttributeTagHelpers.cshtml) - Html - checkbox AddTagHelperHtmlAttribute - - checked - HtmlAttributeValueStyle.SingleQuotes HtmlContent - (251:5,63 [4] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (251:5,63 [4] DuplicateAttributeTagHelpers.cshtml) - Html - true + IntermediateToken - (251:5,63 [4] DuplicateAttributeTagHelpers.cshtml) - Html - true AddTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (263:5,75 [8] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (263:5,75 [8] DuplicateAttributeTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (263:5,75 [8] DuplicateAttributeTagHelpers.cshtml) - Html - checkbox AddTagHelperHtmlAttribute - - checked - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (281:5,93 [4] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (281:5,93 [4] DuplicateAttributeTagHelpers.cshtml) - Html - true + IntermediateToken - (281:5,93 [4] DuplicateAttributeTagHelpers.cshtml) - Html - true HtmlContent - (288:5,100 [2] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (288:5,100 [2] DuplicateAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (288:5,100 [2] DuplicateAttributeTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (43:2,8 [1] DuplicateAttributeTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (43:2,8 [1] DuplicateAttributeTagHelpers.cshtml) - CSharp - 3 + IntermediateToken - (43:2,8 [1] DuplicateAttributeTagHelpers.cshtml) - CSharp - 3 AddTagHelperHtmlAttribute - - AGE - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (51:2,16 [2] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (51:2,16 [2] DuplicateAttributeTagHelpers.cshtml) - Html - 40 + IntermediateToken - (51:2,16 [2] DuplicateAttributeTagHelpers.cshtml) - Html - 40 AddTagHelperHtmlAttribute - - Age - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (60:2,25 [3] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (60:2,25 [3] DuplicateAttributeTagHelpers.cshtml) - Html - 500 + IntermediateToken - (60:2,25 [3] DuplicateAttributeTagHelpers.cshtml) - Html - 500 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 a0b7c42d9..8595c0adf 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 @@ -13,11 +13,11 @@ Document - DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (33:1,0 [2] DuplicateAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] DuplicateAttributeTagHelpers.cshtml) - Html - \n TagHelper - (35:2,0 [259] DuplicateAttributeTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (65:2,30 [6] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (65:2,30 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (65:2,30 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n TagHelper - (71:3,4 [39] DuplicateAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -26,7 +26,7 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 HtmlContent - (110:3,43 [6] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (110:3,43 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (110:3,43 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n TagHelper - (116:4,4 [70] DuplicateAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -34,11 +34,11 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type SetTagHelperProperty - (146:4,34 [4] DuplicateAttributeTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (146:4,34 [4] DuplicateAttributeTagHelpers.cshtml) - CSharp - true + IntermediateToken - (146:4,34 [4] DuplicateAttributeTagHelpers.cshtml) - CSharp - true AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 HtmlContent - (186:4,74 [6] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (186:4,74 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (186:4,74 [6] DuplicateAttributeTagHelpers.cshtml) - Html - \n TagHelper - (192:5,4 [96] DuplicateAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -46,15 +46,15 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_4 - type - Type SetPreallocatedTagHelperProperty - - __tagHelperAttribute_4 - type - Type SetTagHelperProperty - (222:5,34 [4] DuplicateAttributeTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (222:5,34 [4] DuplicateAttributeTagHelpers.cshtml) - CSharp - true + IntermediateToken - (222:5,34 [4] DuplicateAttributeTagHelpers.cshtml) - CSharp - true AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_6 HtmlContent - (288:5,100 [2] DuplicateAttributeTagHelpers.cshtml) - RazorIRToken - (288:5,100 [2] DuplicateAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (288:5,100 [2] DuplicateAttributeTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (43:2,8 [1] DuplicateAttributeTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (43:2,8 [1] DuplicateAttributeTagHelpers.cshtml) - CSharp - 3 + IntermediateToken - (43:2,8 [1] DuplicateAttributeTagHelpers.cshtml) - CSharp - 3 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_7 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_8 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 549c77d15..b2120735c 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 @@ -4,22 +4,22 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] DuplicateTargetTagHelper.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.CatchAllTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] DuplicateTargetTagHelper.cshtml) - RazorIRToken - (31:0,31 [4] DuplicateTargetTagHelper.cshtml) - Html - \n\n + IntermediateToken - (31:0,31 [4] DuplicateTargetTagHelper.cshtml) - Html - \n\n TagHelper - (35:2,0 [40] DuplicateTargetTagHelper.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper SetTagHelperProperty - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - RazorIRToken - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - Html - checkbox + IntermediateToken - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - Html - checkbox SetTagHelperProperty - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - RazorIRToken - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - Html - checkbox + IntermediateToken - (48:2,13 [8] DuplicateTargetTagHelper.cshtml) - Html - checkbox SetTagHelperProperty - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - CSharp - true + IntermediateToken - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - CSharp - true SetTagHelperProperty - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - CSharp - true + IntermediateToken - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - CSharp - true 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 2d4d9edc9..9e4cfb7bd 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 @@ -5,7 +5,7 @@ Document - DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.CatchAllTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] DuplicateTargetTagHelper.cshtml) - RazorIRToken - (33:1,0 [2] DuplicateTargetTagHelper.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] DuplicateTargetTagHelper.cshtml) - Html - \n TagHelper - (35:2,0 [40] DuplicateTargetTagHelper.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -13,6 +13,6 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type SetTagHelperProperty - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - CSharp - true + IntermediateToken - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - CSharp - true SetTagHelperProperty - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - CSharp - true + IntermediateToken - (67:2,32 [4] DuplicateTargetTagHelper.cshtml) - CSharp - true 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 cde32b8ae..3ba86d04f 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 @@ -4,119 +4,119 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] DynamicAttributeTagHelpers.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (31:0,31 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (31:0,31 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (35:2,0 [40] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes HtmlAttributeValue - (51:2,16 [6] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (51:2,16 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix + IntermediateToken - (51:2,16 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix CSharpExpressionAttributeValue - (57:2,22 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (59:2,24 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (59:2,24 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now HtmlContent - (75:2,40 [4] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (75:2,40 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (75:2,40 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (79:4,0 [71] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes CSharpCodeAttributeValue - (95:4,16 [44] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (96:4,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { + IntermediateToken - (96:4,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - RazorIRToken - (121:4,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { + IntermediateToken - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty + IntermediateToken - (121:4,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - RazorIRToken - (137:4,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } + IntermediateToken - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false + IntermediateToken - (137:4,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } HtmlAttributeValue - (139:4,60 [7] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (140:4,61 [6] DynamicAttributeTagHelpers.cshtml) - Html - suffix + IntermediateToken - (140:4,61 [6] DynamicAttributeTagHelpers.cshtml) - Html - suffix HtmlContent - (150:4,71 [4] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (150:4,71 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (150:4,71 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (154:6,0 [83] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper SetTagHelperProperty - (168:6,14 [27] DynamicAttributeTagHelpers.cshtml) - bound - Bound - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (168:6,14 [7] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (168:6,14 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix - RazorIRToken - (174:6,20 [1] DynamicAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (168:6,14 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix + IntermediateToken - (174:6,20 [1] DynamicAttributeTagHelpers.cshtml) - Html - CSharpExpression - (176:6,22 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (176:6,22 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (176:6,22 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now HtmlContent - (188:6,34 [7] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (188:6,34 [7] DynamicAttributeTagHelpers.cshtml) - Html - suffix + IntermediateToken - (188:6,34 [7] DynamicAttributeTagHelpers.cshtml) - Html - suffix AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes HtmlAttributeValue - (206:6,52 [6] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (206:6,52 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix + IntermediateToken - (206:6,52 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix CSharpExpressionAttributeValue - (212:6,58 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (214:6,60 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (214:6,60 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now HtmlAttributeValue - (226:6,72 [7] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (227:6,73 [6] DynamicAttributeTagHelpers.cshtml) - Html - suffix + IntermediateToken - (227:6,73 [6] DynamicAttributeTagHelpers.cshtml) - Html - suffix HtmlContent - (237:6,83 [4] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (237:6,83 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (237:6,83 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (241:8,0 [183] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper SetTagHelperProperty - (255:8,14 [73] DynamicAttributeTagHelpers.cshtml) - bound - Bound - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue + IntermediateToken - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue HtmlContent - (269:8,28 [1] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (269:8,28 [1] DynamicAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (269:8,28 [1] DynamicAttributeTagHelpers.cshtml) - Html - CSharpCode - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { + IntermediateToken - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty + IntermediateToken - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty CSharpCode - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { + IntermediateToken - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false + IntermediateToken - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false CSharpCode - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } + IntermediateToken - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } HtmlContent - (314:8,73 [1] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (314:8,73 [1] DynamicAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (314:8,73 [1] DynamicAttributeTagHelpers.cshtml) - Html - CSharpExpression - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue + IntermediateToken - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes CSharpExpressionAttributeValue - (347:9,16 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (348:9,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue + IntermediateToken - (348:9,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue CSharpCodeAttributeValue - (361:9,30 [45] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (363:9,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { + IntermediateToken - (363:9,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - RazorIRToken - (388:9,57 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { + IntermediateToken - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty + IntermediateToken - (388:9,57 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - RazorIRToken - (404:9,73 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } + IntermediateToken - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false + IntermediateToken - (404:9,73 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } CSharpExpressionAttributeValue - (406:9,75 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (408:9,77 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue + IntermediateToken - (408:9,77 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue HtmlContent - (424:9,93 [4] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (424:9,93 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (424:9,93 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (428:11,0 [80] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes CSharpExpressionAttributeValue - (444:11,16 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (445:11,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue + IntermediateToken - (445:11,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue CSharpExpressionAttributeValue - (458:11,30 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (460:11,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (460:11,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now HtmlAttributeValue - (472:11,44 [7] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (473:11,45 [6] DynamicAttributeTagHelpers.cshtml) - Html - static + IntermediateToken - (473:11,45 [6] DynamicAttributeTagHelpers.cshtml) - Html - static HtmlAttributeValue - (479:11,51 [11] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (483:11,55 [7] DynamicAttributeTagHelpers.cshtml) - Html - content + IntermediateToken - (483:11,55 [7] DynamicAttributeTagHelpers.cshtml) - Html - content CSharpExpressionAttributeValue - (490:11,62 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (492:11,64 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue + IntermediateToken - (492:11,64 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue HtmlContent - (508:11,80 [4] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (508:11,80 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (508:11,80 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (512:13,0 [64] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes CSharpCodeAttributeValue - (528:13,16 [44] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (529:13,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { + IntermediateToken - (529:13,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - RazorIRToken - (554:13,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { + IntermediateToken - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty + IntermediateToken - (554:13,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - RazorIRToken - (570:13,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } + IntermediateToken - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false + IntermediateToken - (570:13,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } 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 9cf479ab5..109d41eee 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 @@ -4,115 +4,115 @@ Document - DeclareTagHelperFields - - TestNamespace.InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (33:1,0 [2] DynamicAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] DynamicAttributeTagHelpers.cshtml) - Html - \n TagHelper - (35:2,0 [40] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes HtmlAttributeValue - (51:2,16 [6] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (51:2,16 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix + IntermediateToken - (51:2,16 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix CSharpExpressionAttributeValue - (57:2,22 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (59:2,24 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (59:2,24 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now HtmlContent - (75:2,40 [4] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (75:2,40 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (75:2,40 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (79:4,0 [71] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes CSharpCodeAttributeValue - (95:4,16 [44] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (96:4,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { + IntermediateToken - (96:4,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - RazorIRToken - (121:4,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { + IntermediateToken - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty + IntermediateToken - (121:4,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - RazorIRToken - (137:4,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } + IntermediateToken - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false + IntermediateToken - (137:4,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } HtmlAttributeValue - (139:4,60 [7] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (140:4,61 [6] DynamicAttributeTagHelpers.cshtml) - Html - suffix + IntermediateToken - (140:4,61 [6] DynamicAttributeTagHelpers.cshtml) - Html - suffix HtmlContent - (150:4,71 [4] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (150:4,71 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (150:4,71 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (154:6,0 [83] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper SetTagHelperProperty - (168:6,14 [27] DynamicAttributeTagHelpers.cshtml) - bound - Bound - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (168:6,14 [7] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (168:6,14 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix - RazorIRToken - (174:6,20 [1] DynamicAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (168:6,14 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix + IntermediateToken - (174:6,20 [1] DynamicAttributeTagHelpers.cshtml) - Html - CSharpExpression - (176:6,22 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (176:6,22 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (176:6,22 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now HtmlContent - (188:6,34 [7] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (188:6,34 [7] DynamicAttributeTagHelpers.cshtml) - Html - suffix + IntermediateToken - (188:6,34 [7] DynamicAttributeTagHelpers.cshtml) - Html - suffix AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes HtmlAttributeValue - (206:6,52 [6] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (206:6,52 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix + IntermediateToken - (206:6,52 [6] DynamicAttributeTagHelpers.cshtml) - Html - prefix CSharpExpressionAttributeValue - (212:6,58 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (214:6,60 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (214:6,60 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now HtmlAttributeValue - (226:6,72 [7] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (227:6,73 [6] DynamicAttributeTagHelpers.cshtml) - Html - suffix + IntermediateToken - (227:6,73 [6] DynamicAttributeTagHelpers.cshtml) - Html - suffix HtmlContent - (237:6,83 [4] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (237:6,83 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (237:6,83 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (241:8,0 [183] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper SetTagHelperProperty - (255:8,14 [73] DynamicAttributeTagHelpers.cshtml) - bound - Bound - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue + IntermediateToken - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue HtmlContent - (269:8,28 [1] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (269:8,28 [1] DynamicAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (269:8,28 [1] DynamicAttributeTagHelpers.cshtml) - Html - CSharpCode - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { + IntermediateToken - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty + IntermediateToken - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty CSharpCode - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { + IntermediateToken - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false + IntermediateToken - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false CSharpCode - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } + IntermediateToken - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } HtmlContent - (314:8,73 [1] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (314:8,73 [1] DynamicAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (314:8,73 [1] DynamicAttributeTagHelpers.cshtml) - Html - CSharpExpression - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue + IntermediateToken - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes CSharpExpressionAttributeValue - (347:9,16 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (348:9,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue + IntermediateToken - (348:9,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue CSharpCodeAttributeValue - (361:9,30 [45] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (363:9,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { + IntermediateToken - (363:9,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - RazorIRToken - (388:9,57 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { + IntermediateToken - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty + IntermediateToken - (388:9,57 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - RazorIRToken - (404:9,73 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } + IntermediateToken - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false + IntermediateToken - (404:9,73 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } CSharpExpressionAttributeValue - (406:9,75 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (408:9,77 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue + IntermediateToken - (408:9,77 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue HtmlContent - (424:9,93 [4] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (424:9,93 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (424:9,93 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (428:11,0 [80] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes CSharpExpressionAttributeValue - (444:11,16 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (445:11,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue + IntermediateToken - (445:11,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue CSharpExpressionAttributeValue - (458:11,30 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (460:11,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (460:11,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - DateTime.Now HtmlAttributeValue - (472:11,44 [7] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (473:11,45 [6] DynamicAttributeTagHelpers.cshtml) - Html - static + IntermediateToken - (473:11,45 [6] DynamicAttributeTagHelpers.cshtml) - Html - static HtmlAttributeValue - (479:11,51 [11] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (483:11,55 [7] DynamicAttributeTagHelpers.cshtml) - Html - content + IntermediateToken - (483:11,55 [7] DynamicAttributeTagHelpers.cshtml) - Html - content CSharpExpressionAttributeValue - (490:11,62 [14] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (492:11,64 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue + IntermediateToken - (492:11,64 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue HtmlContent - (508:11,80 [4] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (508:11,80 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (508:11,80 [4] DynamicAttributeTagHelpers.cshtml) - Html - \n\n TagHelper - (512:13,0 [64] DynamicAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes CSharpCodeAttributeValue - (528:13,16 [44] DynamicAttributeTagHelpers.cshtml) - - RazorIRToken - (529:13,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { + IntermediateToken - (529:13,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - RazorIRToken - (554:13,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { + IntermediateToken - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty + IntermediateToken - (554:13,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) - RazorIRToken - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - RazorIRToken - (570:13,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } + IntermediateToken - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false + IntermediateToken - (570:13,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } 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 e945a909d..686fa347e 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 @@ -4,54 +4,54 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [15] EmptyAttributeTagHelpers.cshtml) - *, TestAssembly CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.PTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [15] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (29:0,29 [4] EmptyAttributeTagHelpers.cshtml) - Html - \n\n - RazorIRToken - (33:2,0 [5] EmptyAttributeTagHelpers.cshtml) - Html -
- RazorIRToken - (38:2,5 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (29:0,29 [4] EmptyAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (33:2,0 [5] EmptyAttributeTagHelpers.cshtml) - Html -
+ IntermediateToken - (38:2,5 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n TagHelper - (44:3,4 [34] EmptyAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - Html - SetTagHelperProperty - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (56:3,16 [0] EmptyAttributeTagHelpers.cshtml) - Html - SetTagHelperProperty - (66:3,26 [0] EmptyAttributeTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (66:3,26 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - + IntermediateToken - (66:3,26 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (74:3,34 [0] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (74:3,34 [0] EmptyAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (74:3,34 [0] EmptyAttributeTagHelpers.cshtml) - Html - HtmlContent - (78:3,38 [6] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (78:3,38 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (78:3,38 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n TagHelper - (84:4,4 [64] EmptyAttributeTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (94:4,14 [10] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (94:4,14 [10] EmptyAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (94:4,14 [10] EmptyAttributeTagHelpers.cshtml) - Html - \n TagHelper - (104:5,8 [34] EmptyAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - Html - SetTagHelperProperty - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (117:5,21 [0] EmptyAttributeTagHelpers.cshtml) - Html - SetTagHelperProperty - (126:5,30 [0] EmptyAttributeTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (126:5,30 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - + IntermediateToken - (126:5,30 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (134:5,38 [0] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (134:5,38 [0] EmptyAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (134:5,38 [0] EmptyAttributeTagHelpers.cshtml) - Html - HtmlContent - (138:5,42 [6] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (138:5,42 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (138:5,42 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (92:4,12 [0] EmptyAttributeTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.SingleQuotes - RazorIRToken - (92:4,12 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - + IntermediateToken - (92:4,12 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - HtmlContent - (148:6,8 [8] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (148:6,8 [2] EmptyAttributeTagHelpers.cshtml) - Html - \n - RazorIRToken - (150:7,0 [6] EmptyAttributeTagHelpers.cshtml) - Html -
+ IntermediateToken - (148:6,8 [2] EmptyAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (150:7,0 [6] 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 c97aac7df..91d8e2e7a 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 @@ -6,9 +6,9 @@ Document - DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.PTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [13] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (31:1,0 [2] EmptyAttributeTagHelpers.cshtml) - Html - \n - RazorIRToken - (33:2,0 [5] EmptyAttributeTagHelpers.cshtml) - Html -
- RazorIRToken - (38:2,5 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (31:1,0 [2] EmptyAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (33:2,0 [5] EmptyAttributeTagHelpers.cshtml) - Html -
+ IntermediateToken - (38:2,5 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n TagHelper - (44:3,4 [34] EmptyAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -16,14 +16,14 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type SetTagHelperProperty - (66:3,26 [0] EmptyAttributeTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (66:3,26 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - + IntermediateToken - (66:3,26 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 HtmlContent - (78:3,38 [6] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (78:3,38 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (78:3,38 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n TagHelper - (84:4,4 [64] EmptyAttributeTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (94:4,14 [10] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (94:4,14 [10] EmptyAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (94:4,14 [10] EmptyAttributeTagHelpers.cshtml) - Html - \n TagHelper - (104:5,8 [34] EmptyAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -31,13 +31,13 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - type - Type SetTagHelperProperty - (126:5,30 [0] EmptyAttributeTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (126:5,30 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - + IntermediateToken - (126:5,30 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 HtmlContent - (138:5,42 [6] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (138:5,42 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (138:5,42 [6] EmptyAttributeTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (92:4,12 [0] EmptyAttributeTagHelpers.cshtml) - age - Age - HtmlAttributeValueStyle.SingleQuotes - RazorIRToken - (92:4,12 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - + IntermediateToken - (92:4,12 [0] EmptyAttributeTagHelpers.cshtml) - CSharp - HtmlContent - (148:6,8 [8] EmptyAttributeTagHelpers.cshtml) - RazorIRToken - (148:6,8 [2] EmptyAttributeTagHelpers.cshtml) - Html - \n - RazorIRToken - (150:7,0 [6] EmptyAttributeTagHelpers.cshtml) - Html -
+ IntermediateToken - (148:6,8 [2] EmptyAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (150:7,0 [6] 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 423839eba..c70511e2a 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 @@ -3,9 +3,9 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyCodeBlock_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyCodeBlock.cshtml) - RazorIRToken - (0:0,0 [18] EmptyCodeBlock.cshtml) - Html - This is markup\n\n + IntermediateToken - (0:0,0 [18] EmptyCodeBlock.cshtml) - Html - This is markup\n\n CSharpCode - (20:2,2 [0] EmptyCodeBlock.cshtml) - RazorIRToken - (20:2,2 [0] EmptyCodeBlock.cshtml) - CSharp - + IntermediateToken - (20:2,2 [0] EmptyCodeBlock.cshtml) - CSharp - 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 44b95db84..ba69ccce0 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 @@ -3,6 +3,6 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyCodeBlock_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyCodeBlock.cshtml) - RazorIRToken - (0:0,0 [18] EmptyCodeBlock.cshtml) - Html - This is markup\n\n + IntermediateToken - (0:0,0 [18] EmptyCodeBlock.cshtml) - Html - This is markup\n\n CSharpCode - (20:2,2 [0] EmptyCodeBlock.cshtml) - RazorIRToken - (20:2,2 [0] EmptyCodeBlock.cshtml) - CSharp - + IntermediateToken - (20:2,2 [0] EmptyCodeBlock.cshtml) - CSharp - 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 e3c213c1e..05cd56dd3 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 @@ -3,9 +3,9 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExplicitExpression_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyExplicitExpression.cshtml) - RazorIRToken - (0:0,0 [18] EmptyExplicitExpression.cshtml) - Html - This is markup\n\n + IntermediateToken - (0:0,0 [18] EmptyExplicitExpression.cshtml) - Html - This is markup\n\n CSharpExpression - (20:2,2 [0] EmptyExplicitExpression.cshtml) - RazorIRToken - (20:2,2 [0] EmptyExplicitExpression.cshtml) - CSharp - + IntermediateToken - (20:2,2 [0] EmptyExplicitExpression.cshtml) - CSharp - 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 15e527edf..5feb71bd7 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 @@ -3,6 +3,6 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExplicitExpression_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyExplicitExpression.cshtml) - RazorIRToken - (0:0,0 [18] EmptyExplicitExpression.cshtml) - Html - This is markup\n\n + IntermediateToken - (0:0,0 [18] EmptyExplicitExpression.cshtml) - Html - This is markup\n\n CSharpExpression - (20:2,2 [0] EmptyExplicitExpression.cshtml) - RazorIRToken - (20:2,2 [0] EmptyExplicitExpression.cshtml) - CSharp - + IntermediateToken - (20:2,2 [0] EmptyExplicitExpression.cshtml) - CSharp - 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 a6a185e63..35dfbae23 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 @@ -3,11 +3,11 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpressionInCode_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - RazorIRToken - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n + IntermediateToken - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n CSharpExpression - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml) - RazorIRToken - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml) - CSharp - + IntermediateToken - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml) - CSharp - CSharpCode - (9:1,5 [2] EmptyImplicitExpressionInCode.cshtml) - RazorIRToken - (9:1,5 [2] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n + IntermediateToken - (9:1,5 [2] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n 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 40ab2a304..4710b31a9 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 @@ -3,8 +3,8 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpressionInCode_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - RazorIRToken - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n + IntermediateToken - (2:0,2 [6] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n CSharpExpression - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml) - RazorIRToken - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml) - CSharp - + IntermediateToken - (9:1,5 [0] EmptyImplicitExpressionInCode.cshtml) - CSharp - CSharpCode - (9:1,5 [2] EmptyImplicitExpressionInCode.cshtml) - RazorIRToken - (9:1,5 [2] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n + IntermediateToken - (9:1,5 [2] EmptyImplicitExpressionInCode.cshtml) - CSharp - \n 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 72d800741..5f2d153e4 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 @@ -3,11 +3,11 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpression_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyImplicitExpression.cshtml) - RazorIRToken - (0:0,0 [18] EmptyImplicitExpression.cshtml) - Html - This is markup\n\n + IntermediateToken - (0:0,0 [18] EmptyImplicitExpression.cshtml) - Html - This is markup\n\n CSharpExpression - (19:2,1 [0] EmptyImplicitExpression.cshtml) - RazorIRToken - (19:2,1 [0] EmptyImplicitExpression.cshtml) - CSharp - + IntermediateToken - (19:2,1 [0] EmptyImplicitExpression.cshtml) - CSharp - HtmlContent - (19:2,1 [1] EmptyImplicitExpression.cshtml) - RazorIRToken - (19:2,1 [1] EmptyImplicitExpression.cshtml) - Html - ! + IntermediateToken - (19:2,1 [1] EmptyImplicitExpression.cshtml) - Html - ! 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 434bc0e34..3c189406a 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 @@ -3,8 +3,8 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImplicitExpression_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] EmptyImplicitExpression.cshtml) - RazorIRToken - (0:0,0 [18] EmptyImplicitExpression.cshtml) - Html - This is markup\n\n + IntermediateToken - (0:0,0 [18] EmptyImplicitExpression.cshtml) - Html - This is markup\n\n CSharpExpression - (19:2,1 [0] EmptyImplicitExpression.cshtml) - RazorIRToken - (19:2,1 [0] EmptyImplicitExpression.cshtml) - CSharp - + IntermediateToken - (19:2,1 [0] EmptyImplicitExpression.cshtml) - CSharp - HtmlContent - (19:2,1 [1] EmptyImplicitExpression.cshtml) - RazorIRToken - (19:2,1 [1] EmptyImplicitExpression.cshtml) - Html - ! + IntermediateToken - (19:2,1 [1] EmptyImplicitExpression.cshtml) - Html - ! 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 04285229c..b81152a09 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 @@ -4,60 +4,60 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] EnumTagHelpers.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.CatchAllTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] EnumTagHelpers.cshtml) - RazorIRToken - (31:0,31 [4] EnumTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (31:0,31 [4] EnumTagHelpers.cshtml) - Html - \n\n CSharpCode - (37:2,2 [39] EnumTagHelpers.cshtml) - RazorIRToken - (37:2,2 [39] EnumTagHelpers.cshtml) - CSharp - \n var enumValue = MyEnum.MyValue;\n + IntermediateToken - (37:2,2 [39] EnumTagHelpers.cshtml) - CSharp - \n var enumValue = MyEnum.MyValue;\n HtmlContent - (79:5,0 [2] EnumTagHelpers.cshtml) - RazorIRToken - (79:5,0 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (79:5,0 [2] EnumTagHelpers.cshtml) - Html - \n TagHelper - (81:6,0 [33] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper SetTagHelperProperty - (95:6,14 [15] EnumTagHelpers.cshtml) - value - Value - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (96:6,15 [14] EnumTagHelpers.cshtml) - RazorIRToken - (96:6,15 [14] EnumTagHelpers.cshtml) - CSharp - MyEnum.MyValue + IntermediateToken - (96:6,15 [14] EnumTagHelpers.cshtml) - CSharp - MyEnum.MyValue HtmlContent - (114:6,33 [2] EnumTagHelpers.cshtml) - RazorIRToken - (114:6,33 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (114:6,33 [2] EnumTagHelpers.cshtml) - Html - \n TagHelper - (116:7,0 [39] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes CSharpExpressionAttributeValue - (130:7,14 [21] EnumTagHelpers.cshtml) - - RazorIRToken - (131:7,15 [20] EnumTagHelpers.cshtml) - CSharp - MyEnum.MySecondValue + IntermediateToken - (131:7,15 [20] EnumTagHelpers.cshtml) - CSharp - MyEnum.MySecondValue HtmlContent - (155:7,39 [2] EnumTagHelpers.cshtml) - RazorIRToken - (155:7,39 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (155:7,39 [2] EnumTagHelpers.cshtml) - Html - \n TagHelper - (157:8,0 [25] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper SetTagHelperProperty - (171:8,14 [7] EnumTagHelpers.cshtml) - value - Value - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (171:8,14 [7] EnumTagHelpers.cshtml) - CSharp - MyValue + IntermediateToken - (171:8,14 [7] EnumTagHelpers.cshtml) - CSharp - MyValue HtmlContent - (182:8,25 [2] EnumTagHelpers.cshtml) - RazorIRToken - (182:8,25 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (182:8,25 [2] EnumTagHelpers.cshtml) - Html - \n TagHelper - (184:9,0 [50] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper SetTagHelperProperty - (198:9,14 [13] EnumTagHelpers.cshtml) - value - Value - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (198:9,14 [13] EnumTagHelpers.cshtml) - CSharp - MySecondValue + IntermediateToken - (198:9,14 [13] EnumTagHelpers.cshtml) - CSharp - MySecondValue SetTagHelperProperty - (224:9,40 [7] EnumTagHelpers.cshtml) - catch-all - CatchAll - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (224:9,40 [7] EnumTagHelpers.cshtml) - CSharp - MyValue + IntermediateToken - (224:9,40 [7] EnumTagHelpers.cshtml) - CSharp - MyValue HtmlContent - (234:9,50 [2] EnumTagHelpers.cshtml) - RazorIRToken - (234:9,50 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (234:9,50 [2] EnumTagHelpers.cshtml) - Html - \n TagHelper - (236:10,0 [51] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper SetTagHelperProperty - (250:10,14 [10] EnumTagHelpers.cshtml) - value - Value - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (251:10,15 [9] EnumTagHelpers.cshtml) - RazorIRToken - (251:10,15 [9] EnumTagHelpers.cshtml) - CSharp - enumValue + IntermediateToken - (251:10,15 [9] EnumTagHelpers.cshtml) - CSharp - enumValue SetTagHelperProperty - (273:10,37 [10] EnumTagHelpers.cshtml) - catch-all - CatchAll - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (274:10,38 [9] EnumTagHelpers.cshtml) - RazorIRToken - (274:10,38 [9] EnumTagHelpers.cshtml) - CSharp - enumValue + IntermediateToken - (274:10,38 [9] EnumTagHelpers.cshtml) - CSharp - enumValue HtmlContent - (287:10,51 [2] EnumTagHelpers.cshtml) - RazorIRToken - (287:10,51 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (287:10,51 [2] EnumTagHelpers.cshtml) - Html - \n 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 dec729ba9..2c1ceabef 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 @@ -4,56 +4,56 @@ Document - DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.CatchAllTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] EnumTagHelpers.cshtml) - RazorIRToken - (33:1,0 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] EnumTagHelpers.cshtml) - Html - \n CSharpCode - (37:2,2 [39] EnumTagHelpers.cshtml) - RazorIRToken - (37:2,2 [39] EnumTagHelpers.cshtml) - CSharp - \n var enumValue = MyEnum.MyValue;\n + IntermediateToken - (37:2,2 [39] EnumTagHelpers.cshtml) - CSharp - \n var enumValue = MyEnum.MyValue;\n HtmlContent - (79:5,0 [2] EnumTagHelpers.cshtml) - RazorIRToken - (79:5,0 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (79:5,0 [2] EnumTagHelpers.cshtml) - Html - \n TagHelper - (81:6,0 [33] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper SetTagHelperProperty - (95:6,14 [15] EnumTagHelpers.cshtml) - value - Value - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (96:6,15 [14] EnumTagHelpers.cshtml) - RazorIRToken - (96:6,15 [14] EnumTagHelpers.cshtml) - CSharp - MyEnum.MyValue + IntermediateToken - (96:6,15 [14] EnumTagHelpers.cshtml) - CSharp - MyEnum.MyValue HtmlContent - (114:6,33 [2] EnumTagHelpers.cshtml) - RazorIRToken - (114:6,33 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (114:6,33 [2] EnumTagHelpers.cshtml) - Html - \n TagHelper - (116:7,0 [39] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes CSharpExpressionAttributeValue - (130:7,14 [21] EnumTagHelpers.cshtml) - - RazorIRToken - (131:7,15 [20] EnumTagHelpers.cshtml) - CSharp - MyEnum.MySecondValue + IntermediateToken - (131:7,15 [20] EnumTagHelpers.cshtml) - CSharp - MyEnum.MySecondValue HtmlContent - (155:7,39 [2] EnumTagHelpers.cshtml) - RazorIRToken - (155:7,39 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (155:7,39 [2] EnumTagHelpers.cshtml) - Html - \n TagHelper - (157:8,0 [25] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper SetTagHelperProperty - (171:8,14 [7] EnumTagHelpers.cshtml) - value - Value - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (171:8,14 [7] EnumTagHelpers.cshtml) - CSharp - MyValue + IntermediateToken - (171:8,14 [7] EnumTagHelpers.cshtml) - CSharp - MyValue HtmlContent - (182:8,25 [2] EnumTagHelpers.cshtml) - RazorIRToken - (182:8,25 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (182:8,25 [2] EnumTagHelpers.cshtml) - Html - \n TagHelper - (184:9,0 [50] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper SetTagHelperProperty - (198:9,14 [13] EnumTagHelpers.cshtml) - value - Value - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (198:9,14 [13] EnumTagHelpers.cshtml) - CSharp - MySecondValue + IntermediateToken - (198:9,14 [13] EnumTagHelpers.cshtml) - CSharp - MySecondValue SetTagHelperProperty - (224:9,40 [7] EnumTagHelpers.cshtml) - catch-all - CatchAll - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (224:9,40 [7] EnumTagHelpers.cshtml) - CSharp - MyValue + IntermediateToken - (224:9,40 [7] EnumTagHelpers.cshtml) - CSharp - MyValue HtmlContent - (234:9,50 [2] EnumTagHelpers.cshtml) - RazorIRToken - (234:9,50 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (234:9,50 [2] EnumTagHelpers.cshtml) - Html - \n TagHelper - (236:10,0 [51] EnumTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper SetTagHelperProperty - (250:10,14 [10] EnumTagHelpers.cshtml) - value - Value - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (251:10,15 [9] EnumTagHelpers.cshtml) - RazorIRToken - (251:10,15 [9] EnumTagHelpers.cshtml) - CSharp - enumValue + IntermediateToken - (251:10,15 [9] EnumTagHelpers.cshtml) - CSharp - enumValue SetTagHelperProperty - (273:10,37 [10] EnumTagHelpers.cshtml) - catch-all - CatchAll - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (274:10,38 [9] EnumTagHelpers.cshtml) - RazorIRToken - (274:10,38 [9] EnumTagHelpers.cshtml) - CSharp - enumValue + IntermediateToken - (274:10,38 [9] EnumTagHelpers.cshtml) - CSharp - enumValue HtmlContent - (287:10,51 [2] EnumTagHelpers.cshtml) - RazorIRToken - (287:10,51 [2] EnumTagHelpers.cshtml) - Html - \n + IntermediateToken - (287:10,51 [2] EnumTagHelpers.cshtml) - Html - \n 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 06f0c7370..4bd322cf2 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 @@ -4,59 +4,59 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [15] EscapedTagHelpers.cshtml) - *, TestAssembly CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [5] EscapedTagHelpers.cshtml) - RazorIRToken - (29:0,29 [4] EscapedTagHelpers.cshtml) - Html - \n\n - RazorIRToken - (33:2,0 [1] EscapedTagHelpers.cshtml) - Html - < + IntermediateToken - (29:0,29 [4] EscapedTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (33:2,0 [1] EscapedTagHelpers.cshtml) - Html - < HtmlContent - (35:2,2 [47] EscapedTagHelpers.cshtml) - RazorIRToken - (35:2,2 [3] EscapedTagHelpers.cshtml) - Html - div - RazorIRToken - (38:2,5 [36] EscapedTagHelpers.cshtml) - Html - class="randomNonTagHelperAttribute" - RazorIRToken - (74:2,41 [1] EscapedTagHelpers.cshtml) - Html - > - RazorIRToken - (75:2,42 [6] EscapedTagHelpers.cshtml) - Html - \n - RazorIRToken - (81:3,4 [1] EscapedTagHelpers.cshtml) - Html - < + IntermediateToken - (35:2,2 [3] EscapedTagHelpers.cshtml) - Html - div + IntermediateToken - (38:2,5 [36] EscapedTagHelpers.cshtml) - Html - class="randomNonTagHelperAttribute" + IntermediateToken - (74:2,41 [1] EscapedTagHelpers.cshtml) - Html - > + IntermediateToken - (75:2,42 [6] EscapedTagHelpers.cshtml) - Html - \n + IntermediateToken - (81:3,4 [1] EscapedTagHelpers.cshtml) - Html - < HtmlContent - (83:3,6 [22] EscapedTagHelpers.cshtml) - RazorIRToken - (83:3,6 [1] EscapedTagHelpers.cshtml) - Html - p - RazorIRToken - (84:3,7 [20] EscapedTagHelpers.cshtml) - Html - class="Hello World" - RazorIRToken - (104:3,27 [1] EscapedTagHelpers.cshtml) - Html - + IntermediateToken - (83:3,6 [1] EscapedTagHelpers.cshtml) - Html - p + IntermediateToken - (84:3,7 [20] EscapedTagHelpers.cshtml) - Html - class="Hello World" + IntermediateToken - (104:3,27 [1] EscapedTagHelpers.cshtml) - Html - CSharpExpression - (106:3,29 [12] EscapedTagHelpers.cshtml) - RazorIRToken - (106:3,29 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (106:3,29 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now HtmlContent - (118:3,41 [12] EscapedTagHelpers.cshtml) - RazorIRToken - (118:3,41 [1] EscapedTagHelpers.cshtml) - Html - > - RazorIRToken - (119:3,42 [10] EscapedTagHelpers.cshtml) - Html - \n - RazorIRToken - (129:4,8 [1] EscapedTagHelpers.cshtml) - Html - < + IntermediateToken - (118:3,41 [1] EscapedTagHelpers.cshtml) - Html - > + IntermediateToken - (119:3,42 [10] EscapedTagHelpers.cshtml) - Html - \n + IntermediateToken - (129:4,8 [1] EscapedTagHelpers.cshtml) - Html - < HtmlContent - (131:4,10 [31] EscapedTagHelpers.cshtml) - RazorIRToken - (131:4,10 [5] EscapedTagHelpers.cshtml) - Html - input - RazorIRToken - (136:4,15 [12] EscapedTagHelpers.cshtml) - Html - type="text" - RazorIRToken - (148:4,27 [3] EscapedTagHelpers.cshtml) - Html - /> - RazorIRToken - (151:4,30 [10] EscapedTagHelpers.cshtml) - Html - \n - RazorIRToken - (161:5,8 [1] EscapedTagHelpers.cshtml) - Html - < + IntermediateToken - (131:4,10 [5] EscapedTagHelpers.cshtml) - Html - input + IntermediateToken - (136:4,15 [12] EscapedTagHelpers.cshtml) - Html - type="text" + IntermediateToken - (148:4,27 [3] EscapedTagHelpers.cshtml) - Html - /> + IntermediateToken - (151:4,30 [10] EscapedTagHelpers.cshtml) - Html - \n + IntermediateToken - (161:5,8 [1] EscapedTagHelpers.cshtml) - Html - < HtmlContent - (163:5,10 [22] EscapedTagHelpers.cshtml) - RazorIRToken - (163:5,10 [3] EscapedTagHelpers.cshtml) - Html - em> - RazorIRToken - (166:5,13 [17] EscapedTagHelpers.cshtml) - Html - Not a TagHelper: - RazorIRToken - (183:5,30 [2] EscapedTagHelpers.cshtml) - Html - + IntermediateToken - (166:5,13 [17] EscapedTagHelpers.cshtml) - Html - Not a TagHelper: + IntermediateToken - (183:5,30 [2] EscapedTagHelpers.cshtml) - Html - - RazorIRToken - (189:5,36 [1] EscapedTagHelpers.cshtml) - Html - + IntermediateToken - (186:5,33 [3] EscapedTagHelpers.cshtml) - Html - em> + IntermediateToken - (189:5,36 [1] EscapedTagHelpers.cshtml) - Html - TagHelper - (190:5,37 [45] EscapedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (203:5,50 [13] EscapedTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (204:5,51 [12] EscapedTagHelpers.cshtml) - RazorIRToken - (204:5,51 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (204:5,51 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now SetTagHelperProperty - (203:5,50 [13] EscapedTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (204:5,51 [12] EscapedTagHelpers.cshtml) - RazorIRToken - (204:5,51 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (204:5,51 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now SetTagHelperProperty - (227:5,74 [4] EscapedTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (227:5,74 [4] EscapedTagHelpers.cshtml) - CSharp - true + IntermediateToken - (227:5,74 [4] EscapedTagHelpers.cshtml) - CSharp - true HtmlContent - (235:5,82 [8] EscapedTagHelpers.cshtml) - RazorIRToken - (235:5,82 [6] EscapedTagHelpers.cshtml) - Html - \n - RazorIRToken - (241:6,4 [2] EscapedTagHelpers.cshtml) - Html - - RazorIRToken - (246:6,9 [2] EscapedTagHelpers.cshtml) - Html - \n - RazorIRToken - (248:7,0 [2] EscapedTagHelpers.cshtml) - Html - + IntermediateToken - (246:6,9 [2] EscapedTagHelpers.cshtml) - Html - \n + IntermediateToken - (248:7,0 [2] EscapedTagHelpers.cshtml) - Html - + IntermediateToken - (251:7,3 [4] EscapedTagHelpers.cshtml) - Html - div> 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 a0285a8d1..119574429 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 @@ -4,55 +4,55 @@ Document - DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [3] EscapedTagHelpers.cshtml) - RazorIRToken - (31:1,0 [2] EscapedTagHelpers.cshtml) - Html - \n - RazorIRToken - (33:2,0 [1] EscapedTagHelpers.cshtml) - Html - < + IntermediateToken - (31:1,0 [2] EscapedTagHelpers.cshtml) - Html - \n + IntermediateToken - (33:2,0 [1] EscapedTagHelpers.cshtml) - Html - < HtmlContent - (35:2,2 [47] EscapedTagHelpers.cshtml) - RazorIRToken - (35:2,2 [3] EscapedTagHelpers.cshtml) - Html - div - RazorIRToken - (38:2,5 [36] EscapedTagHelpers.cshtml) - Html - class="randomNonTagHelperAttribute" - RazorIRToken - (74:2,41 [1] EscapedTagHelpers.cshtml) - Html - > - RazorIRToken - (75:2,42 [6] EscapedTagHelpers.cshtml) - Html - \n - RazorIRToken - (81:3,4 [1] EscapedTagHelpers.cshtml) - Html - < + IntermediateToken - (35:2,2 [3] EscapedTagHelpers.cshtml) - Html - div + IntermediateToken - (38:2,5 [36] EscapedTagHelpers.cshtml) - Html - class="randomNonTagHelperAttribute" + IntermediateToken - (74:2,41 [1] EscapedTagHelpers.cshtml) - Html - > + IntermediateToken - (75:2,42 [6] EscapedTagHelpers.cshtml) - Html - \n + IntermediateToken - (81:3,4 [1] EscapedTagHelpers.cshtml) - Html - < HtmlContent - (83:3,6 [22] EscapedTagHelpers.cshtml) - RazorIRToken - (83:3,6 [1] EscapedTagHelpers.cshtml) - Html - p - RazorIRToken - (84:3,7 [20] EscapedTagHelpers.cshtml) - Html - class="Hello World" - RazorIRToken - (104:3,27 [1] EscapedTagHelpers.cshtml) - Html - + IntermediateToken - (83:3,6 [1] EscapedTagHelpers.cshtml) - Html - p + IntermediateToken - (84:3,7 [20] EscapedTagHelpers.cshtml) - Html - class="Hello World" + IntermediateToken - (104:3,27 [1] EscapedTagHelpers.cshtml) - Html - CSharpExpression - (106:3,29 [12] EscapedTagHelpers.cshtml) - RazorIRToken - (106:3,29 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (106:3,29 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now HtmlContent - (118:3,41 [12] EscapedTagHelpers.cshtml) - RazorIRToken - (118:3,41 [1] EscapedTagHelpers.cshtml) - Html - > - RazorIRToken - (119:3,42 [10] EscapedTagHelpers.cshtml) - Html - \n - RazorIRToken - (129:4,8 [1] EscapedTagHelpers.cshtml) - Html - < + IntermediateToken - (118:3,41 [1] EscapedTagHelpers.cshtml) - Html - > + IntermediateToken - (119:3,42 [10] EscapedTagHelpers.cshtml) - Html - \n + IntermediateToken - (129:4,8 [1] EscapedTagHelpers.cshtml) - Html - < HtmlContent - (131:4,10 [31] EscapedTagHelpers.cshtml) - RazorIRToken - (131:4,10 [5] EscapedTagHelpers.cshtml) - Html - input - RazorIRToken - (136:4,15 [12] EscapedTagHelpers.cshtml) - Html - type="text" - RazorIRToken - (148:4,27 [3] EscapedTagHelpers.cshtml) - Html - /> - RazorIRToken - (151:4,30 [10] EscapedTagHelpers.cshtml) - Html - \n - RazorIRToken - (161:5,8 [1] EscapedTagHelpers.cshtml) - Html - < + IntermediateToken - (131:4,10 [5] EscapedTagHelpers.cshtml) - Html - input + IntermediateToken - (136:4,15 [12] EscapedTagHelpers.cshtml) - Html - type="text" + IntermediateToken - (148:4,27 [3] EscapedTagHelpers.cshtml) - Html - /> + IntermediateToken - (151:4,30 [10] EscapedTagHelpers.cshtml) - Html - \n + IntermediateToken - (161:5,8 [1] EscapedTagHelpers.cshtml) - Html - < HtmlContent - (163:5,10 [22] EscapedTagHelpers.cshtml) - RazorIRToken - (163:5,10 [3] EscapedTagHelpers.cshtml) - Html - em> - RazorIRToken - (166:5,13 [17] EscapedTagHelpers.cshtml) - Html - Not a TagHelper: - RazorIRToken - (183:5,30 [2] EscapedTagHelpers.cshtml) - Html - + IntermediateToken - (166:5,13 [17] EscapedTagHelpers.cshtml) - Html - Not a TagHelper: + IntermediateToken - (183:5,30 [2] EscapedTagHelpers.cshtml) - Html - - RazorIRToken - (189:5,36 [1] EscapedTagHelpers.cshtml) - Html - + IntermediateToken - (186:5,33 [3] EscapedTagHelpers.cshtml) - Html - em> + IntermediateToken - (189:5,36 [1] EscapedTagHelpers.cshtml) - Html - TagHelper - (190:5,37 [45] EscapedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (203:5,50 [13] EscapedTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (204:5,51 [12] EscapedTagHelpers.cshtml) - RazorIRToken - (204:5,51 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (204:5,51 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now SetTagHelperProperty - (203:5,50 [13] EscapedTagHelpers.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (204:5,51 [12] EscapedTagHelpers.cshtml) - RazorIRToken - (204:5,51 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now + IntermediateToken - (204:5,51 [12] EscapedTagHelpers.cshtml) - CSharp - DateTime.Now SetTagHelperProperty - (227:5,74 [4] EscapedTagHelpers.cshtml) - checked - Checked - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (227:5,74 [4] EscapedTagHelpers.cshtml) - CSharp - true + IntermediateToken - (227:5,74 [4] EscapedTagHelpers.cshtml) - CSharp - true HtmlContent - (235:5,82 [8] EscapedTagHelpers.cshtml) - RazorIRToken - (235:5,82 [6] EscapedTagHelpers.cshtml) - Html - \n - RazorIRToken - (241:6,4 [2] EscapedTagHelpers.cshtml) - Html - - RazorIRToken - (246:6,9 [2] EscapedTagHelpers.cshtml) - Html - \n - RazorIRToken - (248:7,0 [2] EscapedTagHelpers.cshtml) - Html - + IntermediateToken - (246:6,9 [2] EscapedTagHelpers.cshtml) - Html - \n + IntermediateToken - (248:7,0 [2] EscapedTagHelpers.cshtml) - Html - + IntermediateToken - (251:7,3 [4] EscapedTagHelpers.cshtml) - Html - div> 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 76259be1d..732d71895 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 @@ -3,9 +3,9 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionAtEOF_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - RazorIRToken - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n + IntermediateToken - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n CSharpExpression - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml) - RazorIRToken - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml) - CSharp - + IntermediateToken - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml) - CSharp - 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 a61724d57..d122c632d 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 @@ -3,6 +3,6 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionAtEOF_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - RazorIRToken - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n + IntermediateToken - (0:0,0 [18] ExplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n CSharpExpression - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml) - RazorIRToken - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml) - CSharp - + IntermediateToken - (20:2,2 [0] ExplicitExpressionAtEOF.cshtml) - CSharp - 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 6521e290f..a505b68cf 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 @@ -3,12 +3,12 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionWithMarkup_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - RazorIRToken - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - Html -
+ IntermediateToken - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - Html -
CSharpExpression - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) Template - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) HtmlContent - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - RazorIRToken - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - Html -
- RazorIRToken - (14:0,14 [0] ExplicitExpressionWithMarkup.cshtml) - CSharp - + IntermediateToken - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - Html -
+ IntermediateToken - (14:0,14 [0] ExplicitExpressionWithMarkup.cshtml) - CSharp - 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 8a59b4cf5..ac419737c 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 @@ -3,9 +3,9 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpressionWithMarkup_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - RazorIRToken - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - Html -
+ IntermediateToken - (0:0,0 [5] ExplicitExpressionWithMarkup.cshtml) - Html -
CSharpExpression - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) Template - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) HtmlContent - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - RazorIRToken - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - Html -
- RazorIRToken - (14:0,14 [0] ExplicitExpressionWithMarkup.cshtml) - CSharp - + IntermediateToken - (8:0,8 [6] ExplicitExpressionWithMarkup.cshtml) - Html -
+ IntermediateToken - (14:0,14 [0] ExplicitExpressionWithMarkup.cshtml) - CSharp - 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 a9be58e6f..c43d6407c 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 @@ -3,9 +3,9 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpression_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [8] ExplicitExpression.cshtml) - RazorIRToken - (0:0,0 [8] ExplicitExpression.cshtml) - Html - 1 + 1 = + IntermediateToken - (0:0,0 [8] ExplicitExpression.cshtml) - Html - 1 + 1 = CSharpExpression - (10:0,10 [3] ExplicitExpression.cshtml) - RazorIRToken - (10:0,10 [3] ExplicitExpression.cshtml) - CSharp - 1+1 + IntermediateToken - (10:0,10 [3] ExplicitExpression.cshtml) - CSharp - 1+1 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 87eec634a..6d0a55857 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 @@ -3,6 +3,6 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitExpression_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [8] ExplicitExpression.cshtml) - RazorIRToken - (0:0,0 [8] ExplicitExpression.cshtml) - Html - 1 + 1 = + IntermediateToken - (0:0,0 [8] ExplicitExpression.cshtml) - Html - 1 + 1 = CSharpExpression - (10:0,10 [3] ExplicitExpression.cshtml) - RazorIRToken - (10:0,10 [3] ExplicitExpression.cshtml) - CSharp - 1+1 + IntermediateToken - (10:0,10 [3] ExplicitExpression.cshtml) - CSharp - 1+1 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 1e1a426fb..cd0139cec 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 @@ -3,34 +3,34 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExpressionsInCode_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [51] ExpressionsInCode.cshtml) - RazorIRToken - (2:0,2 [51] ExpressionsInCode.cshtml) - CSharp - \n object foo = null;\n string bar = "Foo";\n + IntermediateToken - (2:0,2 [51] ExpressionsInCode.cshtml) - CSharp - \n object foo = null;\n string bar = "Foo";\n HtmlContent - (56:4,0 [2] ExpressionsInCode.cshtml) - RazorIRToken - (56:4,0 [2] ExpressionsInCode.cshtml) - Html - \n + IntermediateToken - (56:4,0 [2] ExpressionsInCode.cshtml) - Html - \n CSharpCode - (59:5,1 [23] ExpressionsInCode.cshtml) - RazorIRToken - (59:5,1 [23] ExpressionsInCode.cshtml) - CSharp - if(foo != null) {\n + IntermediateToken - (59:5,1 [23] ExpressionsInCode.cshtml) - CSharp - if(foo != null) {\n CSharpExpression - (83:6,5 [3] ExpressionsInCode.cshtml) - RazorIRToken - (83:6,5 [3] ExpressionsInCode.cshtml) - CSharp - foo + IntermediateToken - (83:6,5 [3] ExpressionsInCode.cshtml) - CSharp - foo CSharpCode - (86:6,8 [16] ExpressionsInCode.cshtml) - RazorIRToken - (86:6,8 [16] ExpressionsInCode.cshtml) - CSharp - \n} else {\n + IntermediateToken - (86:6,8 [16] ExpressionsInCode.cshtml) - CSharp - \n} else {\n HtmlContent - (102:8,4 [19] ExpressionsInCode.cshtml) - RazorIRToken - (102:8,4 [3] ExpressionsInCode.cshtml) - Html -

- RazorIRToken - (105:8,7 [12] ExpressionsInCode.cshtml) - Html - Foo is Null! - RazorIRToken - (117:8,19 [4] ExpressionsInCode.cshtml) - Html -

+ IntermediateToken - (102:8,4 [3] ExpressionsInCode.cshtml) - Html -

+ IntermediateToken - (105:8,7 [12] ExpressionsInCode.cshtml) - Html - Foo is Null! + IntermediateToken - (117:8,19 [4] ExpressionsInCode.cshtml) - Html -

CSharpCode - (121:8,23 [3] ExpressionsInCode.cshtml) - RazorIRToken - (121:8,23 [3] ExpressionsInCode.cshtml) - CSharp - \n} + IntermediateToken - (121:8,23 [3] ExpressionsInCode.cshtml) - CSharp - \n} HtmlContent - (124:9,1 [9] ExpressionsInCode.cshtml) - RazorIRToken - (124:9,1 [4] ExpressionsInCode.cshtml) - Html - \n\n - RazorIRToken - (128:11,0 [3] ExpressionsInCode.cshtml) - Html -

- RazorIRToken - (131:11,3 [2] ExpressionsInCode.cshtml) - Html - \n + IntermediateToken - (124:9,1 [4] ExpressionsInCode.cshtml) - Html - \n\n + IntermediateToken - (128:11,0 [3] ExpressionsInCode.cshtml) - Html -

+ IntermediateToken - (131:11,3 [2] ExpressionsInCode.cshtml) - Html - \n CSharpCode - (134:12,1 [38] ExpressionsInCode.cshtml) - RazorIRToken - (134:12,1 [38] ExpressionsInCode.cshtml) - CSharp - if(!String.IsNullOrEmpty(bar)) {\n + IntermediateToken - (134:12,1 [38] ExpressionsInCode.cshtml) - CSharp - if(!String.IsNullOrEmpty(bar)) {\n CSharpExpression - (174:13,6 [21] ExpressionsInCode.cshtml) - RazorIRToken - (174:13,6 [21] ExpressionsInCode.cshtml) - CSharp - bar.Replace("F", "B") + IntermediateToken - (174:13,6 [21] ExpressionsInCode.cshtml) - CSharp - bar.Replace("F", "B") CSharpCode - (196:13,28 [3] ExpressionsInCode.cshtml) - RazorIRToken - (196:13,28 [3] ExpressionsInCode.cshtml) - CSharp - \n} + IntermediateToken - (196:13,28 [3] ExpressionsInCode.cshtml) - CSharp - \n} HtmlContent - (199:14,1 [6] ExpressionsInCode.cshtml) - RazorIRToken - (199:14,1 [2] ExpressionsInCode.cshtml) - Html - \n - RazorIRToken - (201:15,0 [4] ExpressionsInCode.cshtml) - Html -

+ IntermediateToken - (199:14,1 [2] ExpressionsInCode.cshtml) - Html - \n + IntermediateToken - (201:15,0 [4] ExpressionsInCode.cshtml) - Html -

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 22e67b074..ef6f12bfc 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 @@ -3,32 +3,32 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExpressionsInCode_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [51] ExpressionsInCode.cshtml) - RazorIRToken - (2:0,2 [51] ExpressionsInCode.cshtml) - CSharp - \n object foo = null;\n string bar = "Foo";\n + IntermediateToken - (2:0,2 [51] ExpressionsInCode.cshtml) - CSharp - \n object foo = null;\n string bar = "Foo";\n HtmlContent - (56:4,0 [2] ExpressionsInCode.cshtml) - RazorIRToken - (56:4,0 [2] ExpressionsInCode.cshtml) - Html - \n + IntermediateToken - (56:4,0 [2] ExpressionsInCode.cshtml) - Html - \n CSharpCode - (59:5,1 [23] ExpressionsInCode.cshtml) - RazorIRToken - (59:5,1 [23] ExpressionsInCode.cshtml) - CSharp - if(foo != null) {\n + IntermediateToken - (59:5,1 [23] ExpressionsInCode.cshtml) - CSharp - if(foo != null) {\n CSharpExpression - (83:6,5 [3] ExpressionsInCode.cshtml) - RazorIRToken - (83:6,5 [3] ExpressionsInCode.cshtml) - CSharp - foo + IntermediateToken - (83:6,5 [3] ExpressionsInCode.cshtml) - CSharp - foo CSharpCode - (86:6,8 [12] ExpressionsInCode.cshtml) - RazorIRToken - (86:6,8 [12] ExpressionsInCode.cshtml) - CSharp - \n} else {\n + IntermediateToken - (86:6,8 [12] ExpressionsInCode.cshtml) - CSharp - \n} else {\n HtmlContent - (98:8,0 [25] ExpressionsInCode.cshtml) - RazorIRToken - (98:8,0 [4] ExpressionsInCode.cshtml) - Html - - RazorIRToken - (102:8,4 [3] ExpressionsInCode.cshtml) - Html -

- RazorIRToken - (105:8,7 [12] ExpressionsInCode.cshtml) - Html - Foo is Null! - RazorIRToken - (117:8,19 [4] ExpressionsInCode.cshtml) - Html -

- RazorIRToken - (121:8,23 [2] ExpressionsInCode.cshtml) - Html - \n + IntermediateToken - (98:8,0 [4] ExpressionsInCode.cshtml) - Html - + IntermediateToken - (102:8,4 [3] ExpressionsInCode.cshtml) - Html -

+ IntermediateToken - (105:8,7 [12] ExpressionsInCode.cshtml) - Html - Foo is Null! + IntermediateToken - (117:8,19 [4] ExpressionsInCode.cshtml) - Html -

+ IntermediateToken - (121:8,23 [2] ExpressionsInCode.cshtml) - Html - \n CSharpCode - (123:9,0 [3] ExpressionsInCode.cshtml) - RazorIRToken - (123:9,0 [3] ExpressionsInCode.cshtml) - CSharp - }\n + IntermediateToken - (123:9,0 [3] ExpressionsInCode.cshtml) - CSharp - }\n HtmlContent - (126:10,0 [7] ExpressionsInCode.cshtml) - RazorIRToken - (126:10,0 [2] ExpressionsInCode.cshtml) - Html - \n - RazorIRToken - (128:11,0 [3] ExpressionsInCode.cshtml) - Html -

- RazorIRToken - (131:11,3 [2] ExpressionsInCode.cshtml) - Html - \n + IntermediateToken - (126:10,0 [2] ExpressionsInCode.cshtml) - Html - \n + IntermediateToken - (128:11,0 [3] ExpressionsInCode.cshtml) - Html -

+ IntermediateToken - (131:11,3 [2] ExpressionsInCode.cshtml) - Html - \n CSharpCode - (134:12,1 [38] ExpressionsInCode.cshtml) - RazorIRToken - (134:12,1 [38] ExpressionsInCode.cshtml) - CSharp - if(!String.IsNullOrEmpty(bar)) {\n + IntermediateToken - (134:12,1 [38] ExpressionsInCode.cshtml) - CSharp - if(!String.IsNullOrEmpty(bar)) {\n CSharpExpression - (174:13,6 [21] ExpressionsInCode.cshtml) - RazorIRToken - (174:13,6 [21] ExpressionsInCode.cshtml) - CSharp - bar.Replace("F", "B") + IntermediateToken - (174:13,6 [21] ExpressionsInCode.cshtml) - CSharp - bar.Replace("F", "B") CSharpCode - (196:13,28 [5] ExpressionsInCode.cshtml) - RazorIRToken - (196:13,28 [5] ExpressionsInCode.cshtml) - CSharp - \n}\n + IntermediateToken - (196:13,28 [5] ExpressionsInCode.cshtml) - CSharp - \n}\n HtmlContent - (201:15,0 [4] ExpressionsInCode.cshtml) - RazorIRToken - (201:15,0 [4] ExpressionsInCode.cshtml) - Html -

+ IntermediateToken - (201:15,0 [4] ExpressionsInCode.cshtml) - Html -

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 d741cce1f..8263f541f 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 @@ -3,9 +3,9 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [5] FunctionsBlockMinimal.cshtml) - RazorIRToken - (0:0,0 [5] FunctionsBlockMinimal.cshtml) - Html - \n\n + IntermediateToken - (0:0,0 [5] FunctionsBlockMinimal.cshtml) - Html - \n\n CSharpCode - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - RazorIRToken - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - CSharp - \nstring foo(string input) {\n return input + "!";\n}\n + IntermediateToken - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - CSharp - \nstring foo(string input) {\n return input + "!";\n}\n 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 82734231d..ca4667341 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 @@ -3,8 +3,8 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [4] FunctionsBlockMinimal.cshtml) - RazorIRToken - (0:0,0 [4] FunctionsBlockMinimal.cshtml) - Html - \n\n + IntermediateToken - (0:0,0 [4] FunctionsBlockMinimal.cshtml) - Html - \n\n CSharpCode - (4:2,0 [1] FunctionsBlockMinimal.cshtml) - RazorIRToken - (4:2,0 [1] FunctionsBlockMinimal.cshtml) - CSharp - + IntermediateToken - (4:2,0 [1] FunctionsBlockMinimal.cshtml) - CSharp - CSharpCode - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - RazorIRToken - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - CSharp - \nstring foo(string input) {\n return input + "!";\n}\n + IntermediateToken - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - CSharp - \nstring foo(string input) {\n return input + "!";\n}\n 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 efa8c0765..8d8d3c573 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 @@ -3,15 +3,15 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlock_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (17:2,1 [4] FunctionsBlock.cshtml) - RazorIRToken - (17:2,1 [4] FunctionsBlock.cshtml) - Html - \n\n + IntermediateToken - (17:2,1 [4] FunctionsBlock.cshtml) - Html - \n\n HtmlContent - (138:9,1 [28] FunctionsBlock.cshtml) - RazorIRToken - (138:9,1 [28] FunctionsBlock.cshtml) - Html - \n\nHere's a random number: + IntermediateToken - (138:9,1 [28] FunctionsBlock.cshtml) - Html - \n\nHere's a random number: CSharpExpression - (167:11,25 [11] FunctionsBlock.cshtml) - RazorIRToken - (167:11,25 [11] FunctionsBlock.cshtml) - CSharp - RandomInt() + IntermediateToken - (167:11,25 [11] FunctionsBlock.cshtml) - CSharp - RandomInt() CSharpCode - (12:0,12 [4] FunctionsBlock.cshtml) - RazorIRToken - (12:0,12 [4] FunctionsBlock.cshtml) - CSharp - \n\n + IntermediateToken - (12:0,12 [4] FunctionsBlock.cshtml) - CSharp - \n\n CSharpCode - (33:4,12 [104] FunctionsBlock.cshtml) - RazorIRToken - (33:4,12 [104] FunctionsBlock.cshtml) - CSharp - \n Random _rand = new Random();\n private int RandomInt() {\n return _rand.Next();\n }\n + IntermediateToken - (33:4,12 [104] FunctionsBlock.cshtml) - CSharp - \n Random _rand = new Random();\n private int RandomInt() {\n return _rand.Next();\n }\n 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 a69117a32..8c9af6e12 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 @@ -3,12 +3,12 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlock_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (19:3,0 [2] FunctionsBlock.cshtml) - RazorIRToken - (19:3,0 [2] FunctionsBlock.cshtml) - Html - \n + IntermediateToken - (19:3,0 [2] FunctionsBlock.cshtml) - Html - \n HtmlContent - (140:10,0 [26] FunctionsBlock.cshtml) - RazorIRToken - (140:10,0 [26] FunctionsBlock.cshtml) - Html - \nHere's a random number: + IntermediateToken - (140:10,0 [26] FunctionsBlock.cshtml) - Html - \nHere's a random number: CSharpExpression - (167:11,25 [11] FunctionsBlock.cshtml) - RazorIRToken - (167:11,25 [11] FunctionsBlock.cshtml) - CSharp - RandomInt() + IntermediateToken - (167:11,25 [11] FunctionsBlock.cshtml) - CSharp - RandomInt() CSharpCode - (12:0,12 [4] FunctionsBlock.cshtml) - RazorIRToken - (12:0,12 [4] FunctionsBlock.cshtml) - CSharp - \n\n + IntermediateToken - (12:0,12 [4] FunctionsBlock.cshtml) - CSharp - \n\n CSharpCode - (33:4,12 [104] FunctionsBlock.cshtml) - RazorIRToken - (33:4,12 [104] FunctionsBlock.cshtml) - CSharp - \n Random _rand = new Random();\n private int RandomInt() {\n return _rand.Next();\n }\n + IntermediateToken - (33:4,12 [104] FunctionsBlock.cshtml) - CSharp - \n Random _rand = new Random();\n private int RandomInt() {\n return _rand.Next();\n }\n 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 8048feee4..57d2e768f 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 @@ -3,9 +3,9 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] HiddenSpansInCode.cshtml) - RazorIRToken - (2:0,2 [6] HiddenSpansInCode.cshtml) - CSharp - \n + IntermediateToken - (2:0,2 [6] HiddenSpansInCode.cshtml) - CSharp - \n CSharpCode - (9:1,5 [5] HiddenSpansInCode.cshtml) - RazorIRToken - (9:1,5 [5] HiddenSpansInCode.cshtml) - CSharp - @Da\n + IntermediateToken - (9:1,5 [5] HiddenSpansInCode.cshtml) - CSharp - @Da\n 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 e613335cf..3d4b3572b 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 @@ -3,6 +3,6 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] HiddenSpansInCode.cshtml) - RazorIRToken - (2:0,2 [6] HiddenSpansInCode.cshtml) - CSharp - \n + IntermediateToken - (2:0,2 [6] HiddenSpansInCode.cshtml) - CSharp - \n CSharpCode - (9:1,5 [5] HiddenSpansInCode.cshtml) - RazorIRToken - (9:1,5 [5] HiddenSpansInCode.cshtml) - CSharp - @Da\n + IntermediateToken - (9:1,5 [5] HiddenSpansInCode.cshtml) - CSharp - @Da\n 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 9672c3714..913dde150 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 @@ -3,10 +3,10 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Double.cshtml) - RazorIRToken - (0:0,0 [12] HtmlCommentWithQuote_Double.cshtml) - Html - \n - RazorIRToken - (12:1,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - + IntermediateToken - (0:0,0 [12] HtmlCommentWithQuote_Double.cshtml) - Html - \n + IntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_Runtime.ir.txt index 1285bf3df..cb375d942 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_Runtime.ir.txt @@ -3,7 +3,7 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Double.cshtml) - RazorIRToken - (0:0,0 [12] HtmlCommentWithQuote_Double.cshtml) - Html - \n - RazorIRToken - (12:1,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - + IntermediateToken - (0:0,0 [12] HtmlCommentWithQuote_Double.cshtml) - Html - \n + IntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Double.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.ir.txt index 29cc68723..0b0caf4f4 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.ir.txt @@ -3,10 +3,10 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Single.cshtml) - RazorIRToken - (0:0,0 [12] HtmlCommentWithQuote_Single.cshtml) - Html - \n - RazorIRToken - (12:1,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - + IntermediateToken - (0:0,0 [12] HtmlCommentWithQuote_Single.cshtml) - Html - \n + IntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_Runtime.ir.txt index f6a1a2831..4398ce7c1 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_Runtime.ir.txt @@ -3,7 +3,7 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Single.cshtml) - RazorIRToken - (0:0,0 [12] HtmlCommentWithQuote_Single.cshtml) - Html - \n - RazorIRToken - (12:1,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - + IntermediateToken - (0:0,0 [12] HtmlCommentWithQuote_Single.cshtml) - Html - \n + IntermediateToken - (12:1,0 [4] HtmlCommentWithQuote_Single.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.ir.txt index 9f18760fe..dad85657e 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.ir.txt @@ -3,9 +3,9 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpressionAtEOF_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - RazorIRToken - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n + IntermediateToken - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n CSharpExpression - (19:2,1 [0] ImplicitExpressionAtEOF.cshtml) - RazorIRToken - (19:2,1 [0] ImplicitExpressionAtEOF.cshtml) - CSharp - + IntermediateToken - (19:2,1 [0] ImplicitExpressionAtEOF.cshtml) - CSharp - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.ir.txt index 8bcb8b74a..6d44e7fae 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.ir.txt @@ -3,6 +3,6 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpressionAtEOF_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - RazorIRToken - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n + IntermediateToken - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - Html - This is markup\n\n CSharpExpression - (19:2,1 [0] ImplicitExpressionAtEOF.cshtml) - RazorIRToken - (19:2,1 [0] ImplicitExpressionAtEOF.cshtml) - CSharp - + IntermediateToken - (19:2,1 [0] ImplicitExpressionAtEOF.cshtml) - CSharp - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.ir.txt index bdb082856..f8a48f8a3 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.ir.txt @@ -3,16 +3,16 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpression_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (1:0,1 [36] ImplicitExpression.cshtml) - RazorIRToken - (1:0,1 [36] ImplicitExpression.cshtml) - CSharp - for(int i = 1; i <= 10; i++) {\n + IntermediateToken - (1:0,1 [36] ImplicitExpression.cshtml) - CSharp - for(int i = 1; i <= 10; i++) {\n HtmlContent - (37:1,4 [17] ImplicitExpression.cshtml) - RazorIRToken - (37:1,4 [3] ImplicitExpression.cshtml) - Html -

- RazorIRToken - (40:1,7 [14] ImplicitExpression.cshtml) - Html - This is item # + IntermediateToken - (37:1,4 [3] ImplicitExpression.cshtml) - Html -

+ IntermediateToken - (40:1,7 [14] ImplicitExpression.cshtml) - Html - This is item # CSharpExpression - (55:1,22 [1] ImplicitExpression.cshtml) - RazorIRToken - (55:1,22 [1] ImplicitExpression.cshtml) - CSharp - i + IntermediateToken - (55:1,22 [1] ImplicitExpression.cshtml) - CSharp - i HtmlContent - (56:1,23 [4] ImplicitExpression.cshtml) - RazorIRToken - (56:1,23 [4] ImplicitExpression.cshtml) - Html -

+ IntermediateToken - (56:1,23 [4] ImplicitExpression.cshtml) - Html -

CSharpCode - (60:1,27 [3] ImplicitExpression.cshtml) - RazorIRToken - (60:1,27 [3] ImplicitExpression.cshtml) - CSharp - \n} + IntermediateToken - (60:1,27 [3] ImplicitExpression.cshtml) - CSharp - \n} diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.ir.txt index dae6bc6d9..7511ec32c 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.ir.txt @@ -3,15 +3,15 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpression_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (1:0,1 [32] ImplicitExpression.cshtml) - RazorIRToken - (1:0,1 [32] ImplicitExpression.cshtml) - CSharp - for(int i = 1; i <= 10; i++) {\n + IntermediateToken - (1:0,1 [32] ImplicitExpression.cshtml) - CSharp - for(int i = 1; i <= 10; i++) {\n HtmlContent - (33:1,0 [21] ImplicitExpression.cshtml) - RazorIRToken - (33:1,0 [4] ImplicitExpression.cshtml) - Html - - RazorIRToken - (37:1,4 [3] ImplicitExpression.cshtml) - Html -

- RazorIRToken - (40:1,7 [14] ImplicitExpression.cshtml) - Html - This is item # + IntermediateToken - (33:1,0 [4] ImplicitExpression.cshtml) - Html - + IntermediateToken - (37:1,4 [3] ImplicitExpression.cshtml) - Html -

+ IntermediateToken - (40:1,7 [14] ImplicitExpression.cshtml) - Html - This is item # CSharpExpression - (55:1,22 [1] ImplicitExpression.cshtml) - RazorIRToken - (55:1,22 [1] ImplicitExpression.cshtml) - CSharp - i + IntermediateToken - (55:1,22 [1] ImplicitExpression.cshtml) - CSharp - i HtmlContent - (56:1,23 [6] ImplicitExpression.cshtml) - RazorIRToken - (56:1,23 [4] ImplicitExpression.cshtml) - Html -

- RazorIRToken - (60:1,27 [2] ImplicitExpression.cshtml) - Html - \n + IntermediateToken - (56:1,23 [4] ImplicitExpression.cshtml) - Html -

+ IntermediateToken - (60:1,27 [2] ImplicitExpression.cshtml) - Html - \n CSharpCode - (62:2,0 [1] ImplicitExpression.cshtml) - RazorIRToken - (62:2,0 [1] ImplicitExpression.cshtml) - CSharp - } + IntermediateToken - (62:2,0 [1] ImplicitExpression.cshtml) - CSharp - } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt index e2b03c6e9..934826a20 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.ir.txt @@ -12,61 +12,61 @@ Document - DirectiveToken - (231:11,17 [0] IncompleteDirectives.cshtml) - DirectiveToken - (250:12,17 [1] IncompleteDirectives.cshtml) - " CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (83:0,83 [4] IncompleteDirectives.cshtml) - RazorIRToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (100:2,13 [0] IncompleteDirectives.cshtml) DirectiveToken - (100:2,13 [0] IncompleteDirectives.cshtml) - HtmlContent - (100:2,13 [2] IncompleteDirectives.cshtml) - RazorIRToken - (100:2,13 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (100:2,13 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (116:3,14 [0] IncompleteDirectives.cshtml) DirectiveToken - (116:3,14 [0] IncompleteDirectives.cshtml) - HtmlContent - (116:3,14 [2] IncompleteDirectives.cshtml) - RazorIRToken - (116:3,14 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (116:3,14 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (132:4,14 [1] IncompleteDirectives.cshtml) DirectiveToken - (132:4,14 [1] IncompleteDirectives.cshtml) - " HtmlContent - (133:4,15 [4] IncompleteDirectives.cshtml) - RazorIRToken - (133:4,15 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (133:4,15 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (153:6,16 [0] IncompleteDirectives.cshtml) DirectiveToken - (153:6,16 [0] IncompleteDirectives.cshtml) - HtmlContent - (153:6,16 [2] IncompleteDirectives.cshtml) - RazorIRToken - (153:6,16 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (153:6,16 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (172:7,17 [0] IncompleteDirectives.cshtml) DirectiveToken - (172:7,17 [0] IncompleteDirectives.cshtml) - HtmlContent - (172:7,17 [2] IncompleteDirectives.cshtml) - RazorIRToken - (172:7,17 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (172:7,17 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (191:8,17 [1] IncompleteDirectives.cshtml) DirectiveToken - (191:8,17 [1] IncompleteDirectives.cshtml) - " HtmlContent - (192:8,18 [4] IncompleteDirectives.cshtml) - RazorIRToken - (192:8,18 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (192:8,18 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (212:10,16 [0] IncompleteDirectives.cshtml) DirectiveToken - (212:10,16 [0] IncompleteDirectives.cshtml) - HtmlContent - (212:10,16 [2] IncompleteDirectives.cshtml) - RazorIRToken - (212:10,16 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (212:10,16 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (231:11,17 [0] IncompleteDirectives.cshtml) DirectiveToken - (231:11,17 [0] IncompleteDirectives.cshtml) - HtmlContent - (231:11,17 [2] IncompleteDirectives.cshtml) - RazorIRToken - (231:11,17 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (231:11,17 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (250:12,17 [1] IncompleteDirectives.cshtml) DirectiveToken - (250:12,17 [1] IncompleteDirectives.cshtml) - " HtmlContent - (251:12,18 [4] IncompleteDirectives.cshtml) - RazorIRToken - (251:12,18 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (251:12,18 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (255:14,0 [9] IncompleteDirectives.cshtml) HtmlContent - (264:14,9 [2] IncompleteDirectives.cshtml) - RazorIRToken - (264:14,9 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (264:14,9 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (266:15,0 [10] IncompleteDirectives.cshtml) HtmlContent - (276:15,10 [4] IncompleteDirectives.cshtml) - RazorIRToken - (276:15,10 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (276:15,10 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (280:17,0 [12] IncompleteDirectives.cshtml) MalformedDirective - (292:18,0 [15] IncompleteDirectives.cshtml) MalformedDirective - (307:20,0 [8] IncompleteDirectives.cshtml) HtmlContent - (315:20,8 [2] IncompleteDirectives.cshtml) - RazorIRToken - (315:20,8 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (315:20,8 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (317:21,0 [9] IncompleteDirectives.cshtml) HtmlContent - (326:21,9 [4] IncompleteDirectives.cshtml) - RazorIRToken - (326:21,9 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (326:21,9 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (330:23,0 [9] IncompleteDirectives.cshtml) HtmlContent - (339:23,9 [3] IncompleteDirectives.cshtml) - RazorIRToken - (339:23,9 [3] IncompleteDirectives.cshtml) - Html - {\n + IntermediateToken - (339:23,9 [3] IncompleteDirectives.cshtml) - Html - {\n MalformedDirective - (342:24,0 [12] IncompleteDirectives.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt index 48b9d2d80..e5d5bf98c 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_Runtime.ir.txt @@ -3,7 +3,7 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteDirectives_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (83:0,83 [4] IncompleteDirectives.cshtml) - RazorIRToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (83:0,83 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (100:2,13 [2] IncompleteDirectives.cshtml) DirectiveToken - (100:2,13 [2] IncompleteDirectives.cshtml) - MalformedDirective - (116:3,14 [2] IncompleteDirectives.cshtml) @@ -11,7 +11,7 @@ Document - MalformedDirective - (132:4,14 [3] IncompleteDirectives.cshtml) DirectiveToken - (132:4,14 [3] IncompleteDirectives.cshtml) - " HtmlContent - (135:5,0 [2] IncompleteDirectives.cshtml) - RazorIRToken - (135:5,0 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (135:5,0 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (153:6,16 [2] IncompleteDirectives.cshtml) DirectiveToken - (153:6,16 [2] IncompleteDirectives.cshtml) - MalformedDirective - (172:7,17 [2] IncompleteDirectives.cshtml) @@ -19,7 +19,7 @@ Document - MalformedDirective - (191:8,17 [3] IncompleteDirectives.cshtml) DirectiveToken - (191:8,17 [3] IncompleteDirectives.cshtml) - " HtmlContent - (194:9,0 [2] IncompleteDirectives.cshtml) - RazorIRToken - (194:9,0 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (194:9,0 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (212:10,16 [2] IncompleteDirectives.cshtml) DirectiveToken - (212:10,16 [2] IncompleteDirectives.cshtml) - MalformedDirective - (231:11,17 [2] IncompleteDirectives.cshtml) @@ -27,22 +27,22 @@ Document - MalformedDirective - (250:12,17 [3] IncompleteDirectives.cshtml) DirectiveToken - (250:12,17 [3] IncompleteDirectives.cshtml) - " HtmlContent - (253:13,0 [2] IncompleteDirectives.cshtml) - RazorIRToken - (253:13,0 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (253:13,0 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (255:14,0 [9] IncompleteDirectives.cshtml) HtmlContent - (264:14,9 [2] IncompleteDirectives.cshtml) - RazorIRToken - (264:14,9 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (264:14,9 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (266:15,0 [10] IncompleteDirectives.cshtml) HtmlContent - (276:15,10 [4] IncompleteDirectives.cshtml) - RazorIRToken - (276:15,10 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (276:15,10 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (280:17,0 [12] IncompleteDirectives.cshtml) MalformedDirective - (292:18,0 [15] IncompleteDirectives.cshtml) MalformedDirective - (307:20,0 [8] IncompleteDirectives.cshtml) HtmlContent - (315:20,8 [2] IncompleteDirectives.cshtml) - RazorIRToken - (315:20,8 [2] IncompleteDirectives.cshtml) - Html - \n + IntermediateToken - (315:20,8 [2] IncompleteDirectives.cshtml) - Html - \n MalformedDirective - (317:21,0 [9] IncompleteDirectives.cshtml) HtmlContent - (326:21,9 [4] IncompleteDirectives.cshtml) - RazorIRToken - (326:21,9 [4] IncompleteDirectives.cshtml) - Html - \n\n + IntermediateToken - (326:21,9 [4] IncompleteDirectives.cshtml) - Html - \n\n MalformedDirective - (330:23,0 [9] IncompleteDirectives.cshtml) HtmlContent - (339:23,9 [3] IncompleteDirectives.cshtml) - RazorIRToken - (339:23,9 [3] IncompleteDirectives.cshtml) - Html - {\n + IntermediateToken - (339:23,9 [3] IncompleteDirectives.cshtml) - Html - {\n MalformedDirective - (342:24,0 [12] IncompleteDirectives.cshtml) diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.ir.txt index 21dfe9223..40825270b 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.ir.txt @@ -4,14 +4,14 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] IncompleteTagHelper.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] IncompleteTagHelper.cshtml) - RazorIRToken - (31:0,31 [4] IncompleteTagHelper.cshtml) - Html - \n\n + IntermediateToken - (31:0,31 [4] IncompleteTagHelper.cshtml) - Html - \n\n TagHelper - (35:2,0 [10] IncompleteTagHelper.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (45:2,10 [0] IncompleteTagHelper.cshtml) - RazorIRToken - (45:2,10 [0] IncompleteTagHelper.cshtml) - Html - + IntermediateToken - (45:2,10 [0] IncompleteTagHelper.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_Runtime.ir.txt index a6b639bed..5aca5a5bd 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_Runtime.ir.txt @@ -5,7 +5,7 @@ Document - DeclareTagHelperFields - - TestNamespace.PTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] IncompleteTagHelper.cshtml) - RazorIRToken - (33:1,0 [2] IncompleteTagHelper.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] IncompleteTagHelper.cshtml) - Html - \n TagHelper - (35:2,0 [10] IncompleteTagHelper.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.ir.txt index 20c5489d7..c3a5cc998 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.ir.txt @@ -4,9 +4,9 @@ Document - DesignTimeDirective - DirectiveToken - (20:2,10 [21] Inherits.cshtml) - foo.bar>.boz CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpExpression - (1:0,1 [5] Inherits.cshtml) - RazorIRToken - (1:0,1 [5] Inherits.cshtml) - CSharp - foo() + IntermediateToken - (1:0,1 [5] Inherits.cshtml) - CSharp - foo() HtmlContent - (6:0,6 [4] Inherits.cshtml) - RazorIRToken - (6:0,6 [4] Inherits.cshtml) - Html - \n\n + IntermediateToken - (6:0,6 [4] Inherits.cshtml) - Html - \n\n 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 0221acd0f..93f5cd30a 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 @@ -3,6 +3,6 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inherits_Runtime - foo.bar>.boz - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpExpression - (1:0,1 [5] Inherits.cshtml) - RazorIRToken - (1:0,1 [5] Inherits.cshtml) - CSharp - foo() + IntermediateToken - (1:0,1 [5] Inherits.cshtml) - CSharp - foo() HtmlContent - (6:0,6 [4] Inherits.cshtml) - RazorIRToken - (6:0,6 [4] Inherits.cshtml) - Html - \n\n + IntermediateToken - (6:0,6 [4] Inherits.cshtml) - Html - \n\n 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 b892f5ff9..5a2652a0a 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 @@ -4,22 +4,22 @@ Document - DesignTimeDirective - DirectiveToken - (9:0,9 [4] InlineBlocks.cshtml) - Link CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; 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) - RazorIRToken - (13:0,13 [21] InlineBlocks.cshtml) - Html - (string link) {\n - RazorIRToken - (34:1,4 [2] InlineBlocks.cshtml) - Html - - RazorIRToken - (98:1,68 [3] InlineBlocks.cshtml) - Html - \n} + IntermediateToken - (95:1,65 [3] InlineBlocks.cshtml) - Html - /> + IntermediateToken - (98:1,68 [3] InlineBlocks.cshtml) - Html - \n} 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 e0b73fa87..ca1afa2e3 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 @@ -5,17 +5,17 @@ Document - MalformedDirective - (0:0,0 [13] InlineBlocks.cshtml) DirectiveToken - (9:0,9 [4] InlineBlocks.cshtml) - Link HtmlContent - (13:0,13 [23] InlineBlocks.cshtml) - RazorIRToken - (13:0,13 [21] InlineBlocks.cshtml) - Html - (string link) {\n - RazorIRToken - (34:1,4 [2] InlineBlocks.cshtml) - Html - - RazorIRToken - (98:1,68 [3] InlineBlocks.cshtml) - Html - \n} + IntermediateToken - (95:1,65 [3] InlineBlocks.cshtml) - Html - /> + IntermediateToken - (98:1,68 [3] InlineBlocks.cshtml) - Html - \n} 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 e912ab26b..615512b7c 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 @@ -3,105 +3,105 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrumented_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [32] Instrumented.cshtml) - RazorIRToken - (2:0,2 [32] Instrumented.cshtml) - CSharp - \n int i = 1;\n var foo = + IntermediateToken - (2:0,2 [32] Instrumented.cshtml) - CSharp - \n int i = 1;\n var foo = Template - (35:2,15 [10] Instrumented.cshtml) HtmlContent - (35:2,15 [10] Instrumented.cshtml) - RazorIRToken - (35:2,15 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (38:2,18 [3] Instrumented.cshtml) - Html - Bar - RazorIRToken - (41:2,21 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (35:2,15 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (38:2,18 [3] Instrumented.cshtml) - Html - Bar + IntermediateToken - (41:2,21 [4] Instrumented.cshtml) - Html -

CSharpCode - (45:2,25 [7] Instrumented.cshtml) - RazorIRToken - (45:2,25 [7] Instrumented.cshtml) - CSharp - ;\n + IntermediateToken - (45:2,25 [7] Instrumented.cshtml) - CSharp - ;\n HtmlContent - (54:3,6 [14] Instrumented.cshtml) - RazorIRToken - (54:3,6 [14] Instrumented.cshtml) - Html - Hello, World\n + IntermediateToken - (54:3,6 [14] Instrumented.cshtml) - Html - Hello, World\n CSharpCode - (68:4,0 [4] Instrumented.cshtml) - RazorIRToken - (68:4,0 [4] Instrumented.cshtml) - CSharp - + IntermediateToken - (68:4,0 [4] Instrumented.cshtml) - CSharp - HtmlContent - (72:4,4 [19] Instrumented.cshtml) - RazorIRToken - (72:4,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (75:4,7 [12] Instrumented.cshtml) - Html - Hello, World - RazorIRToken - (87:4,19 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (72:4,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (75:4,7 [12] Instrumented.cshtml) - Html - Hello, World + IntermediateToken - (87:4,19 [4] Instrumented.cshtml) - Html -

CSharpCode - (91:4,23 [2] Instrumented.cshtml) - RazorIRToken - (91:4,23 [2] Instrumented.cshtml) - CSharp - \n + IntermediateToken - (91:4,23 [2] Instrumented.cshtml) - CSharp - \n HtmlContent - (96:6,0 [2] Instrumented.cshtml) - RazorIRToken - (96:6,0 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (96:6,0 [2] Instrumented.cshtml) - Html - \n CSharpCode - (99:7,1 [22] Instrumented.cshtml) - RazorIRToken - (99:7,1 [22] Instrumented.cshtml) - CSharp - while(i <= 10) {\n + IntermediateToken - (99:7,1 [22] Instrumented.cshtml) - CSharp - while(i <= 10) {\n HtmlContent - (121:8,4 [19] Instrumented.cshtml) - RazorIRToken - (121:8,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (124:8,7 [16] Instrumented.cshtml) - Html - Hello from C#, # + IntermediateToken - (121:8,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (124:8,7 [16] Instrumented.cshtml) - Html - Hello from C#, # CSharpExpression - (142:8,25 [1] Instrumented.cshtml) - RazorIRToken - (142:8,25 [1] Instrumented.cshtml) - CSharp - i + IntermediateToken - (142:8,25 [1] Instrumented.cshtml) - CSharp - i HtmlContent - (144:8,27 [4] Instrumented.cshtml) - RazorIRToken - (144:8,27 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (144:8,27 [4] Instrumented.cshtml) - Html -

CSharpCode - (148:8,31 [16] Instrumented.cshtml) - RazorIRToken - (148:8,31 [16] Instrumented.cshtml) - CSharp - \n i += 1;\n} + IntermediateToken - (148:8,31 [16] Instrumented.cshtml) - CSharp - \n i += 1;\n} HtmlContent - (164:10,1 [4] Instrumented.cshtml) - RazorIRToken - (164:10,1 [4] Instrumented.cshtml) - Html - \n\n + IntermediateToken - (164:10,1 [4] Instrumented.cshtml) - Html - \n\n CSharpCode - (169:12,1 [19] Instrumented.cshtml) - RazorIRToken - (169:12,1 [19] Instrumented.cshtml) - CSharp - if(i == 11) {\n + IntermediateToken - (169:12,1 [19] Instrumented.cshtml) - CSharp - if(i == 11) {\n HtmlContent - (188:13,4 [25] Instrumented.cshtml) - RazorIRToken - (188:13,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (191:13,7 [18] Instrumented.cshtml) - Html - We wrote 10 lines! - RazorIRToken - (209:13,25 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (188:13,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (191:13,7 [18] Instrumented.cshtml) - Html - We wrote 10 lines! + IntermediateToken - (209:13,25 [4] Instrumented.cshtml) - Html -

CSharpCode - (213:13,29 [3] Instrumented.cshtml) - RazorIRToken - (213:13,29 [3] Instrumented.cshtml) - CSharp - \n} + IntermediateToken - (213:13,29 [3] Instrumented.cshtml) - CSharp - \n} HtmlContent - (216:14,1 [4] Instrumented.cshtml) - RazorIRToken - (216:14,1 [4] Instrumented.cshtml) - Html - \n\n + IntermediateToken - (216:14,1 [4] Instrumented.cshtml) - Html - \n\n CSharpCode - (221:16,1 [35] Instrumented.cshtml) - RazorIRToken - (221:16,1 [35] Instrumented.cshtml) - CSharp - switch(i) {\n case 11:\n + IntermediateToken - (221:16,1 [35] Instrumented.cshtml) - CSharp - switch(i) {\n case 11:\n HtmlContent - (256:18,8 [36] Instrumented.cshtml) - RazorIRToken - (256:18,8 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (259:18,11 [29] Instrumented.cshtml) - Html - No really, we wrote 10 lines! - RazorIRToken - (288:18,40 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (256:18,8 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (259:18,11 [29] Instrumented.cshtml) - Html - No really, we wrote 10 lines! + IntermediateToken - (288:18,40 [4] Instrumented.cshtml) - Html -

CSharpCode - (292:18,44 [40] Instrumented.cshtml) - RazorIRToken - (292:18,44 [40] Instrumented.cshtml) - CSharp - \n break;\n default:\n + IntermediateToken - (292:18,44 [40] Instrumented.cshtml) - CSharp - \n break;\n default:\n HtmlContent - (332:21,8 [29] Instrumented.cshtml) - RazorIRToken - (332:21,8 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (335:21,11 [22] Instrumented.cshtml) - Html - Actually, we didn't... - RazorIRToken - (357:21,33 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (332:21,8 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (335:21,11 [22] Instrumented.cshtml) - Html - Actually, we didn't... + IntermediateToken - (357:21,33 [4] Instrumented.cshtml) - Html -

CSharpCode - (361:21,37 [19] Instrumented.cshtml) - RazorIRToken - (361:21,37 [19] Instrumented.cshtml) - CSharp - \n break;\n} + IntermediateToken - (361:21,37 [19] Instrumented.cshtml) - CSharp - \n break;\n} HtmlContent - (380:23,1 [4] Instrumented.cshtml) - RazorIRToken - (380:23,1 [4] Instrumented.cshtml) - Html - \n\n + IntermediateToken - (380:23,1 [4] Instrumented.cshtml) - Html - \n\n CSharpCode - (385:25,1 [39] Instrumented.cshtml) - RazorIRToken - (385:25,1 [39] Instrumented.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n + IntermediateToken - (385:25,1 [39] Instrumented.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n HtmlContent - (424:26,4 [25] Instrumented.cshtml) - RazorIRToken - (424:26,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (427:26,7 [22] Instrumented.cshtml) - Html - Hello again from C#, # + IntermediateToken - (424:26,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (427:26,7 [22] Instrumented.cshtml) - Html - Hello again from C#, # CSharpExpression - (451:26,31 [1] Instrumented.cshtml) - RazorIRToken - (451:26,31 [1] Instrumented.cshtml) - CSharp - j + IntermediateToken - (451:26,31 [1] Instrumented.cshtml) - CSharp - j HtmlContent - (453:26,33 [4] Instrumented.cshtml) - RazorIRToken - (453:26,33 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (453:26,33 [4] Instrumented.cshtml) - Html -

CSharpCode - (457:26,37 [3] Instrumented.cshtml) - RazorIRToken - (457:26,37 [3] Instrumented.cshtml) - CSharp - \n} + IntermediateToken - (457:26,37 [3] Instrumented.cshtml) - CSharp - \n} HtmlContent - (460:27,1 [4] Instrumented.cshtml) - RazorIRToken - (460:27,1 [4] Instrumented.cshtml) - Html - \n\n + IntermediateToken - (460:27,1 [4] Instrumented.cshtml) - Html - \n\n CSharpCode - (465:29,1 [11] Instrumented.cshtml) - RazorIRToken - (465:29,1 [11] Instrumented.cshtml) - CSharp - try {\n + IntermediateToken - (465:29,1 [11] Instrumented.cshtml) - CSharp - try {\n HtmlContent - (476:30,4 [35] Instrumented.cshtml) - RazorIRToken - (476:30,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (479:30,7 [28] Instrumented.cshtml) - Html - That time, we wrote 5 lines! - RazorIRToken - (507:30,35 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (476:30,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (479:30,7 [28] Instrumented.cshtml) - Html - That time, we wrote 5 lines! + IntermediateToken - (507:30,35 [4] Instrumented.cshtml) - Html -

CSharpCode - (511:30,39 [31] Instrumented.cshtml) - RazorIRToken - (511:30,39 [31] Instrumented.cshtml) - CSharp - \n} catch(Exception ex) {\n + IntermediateToken - (511:30,39 [31] Instrumented.cshtml) - CSharp - \n} catch(Exception ex) {\n HtmlContent - (542:32,4 [29] Instrumented.cshtml) - RazorIRToken - (542:32,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (545:32,7 [26] Instrumented.cshtml) - Html - Oh no! An error occurred: + IntermediateToken - (542:32,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (545:32,7 [26] Instrumented.cshtml) - Html - Oh no! An error occurred: CSharpExpression - (573:32,35 [10] Instrumented.cshtml) - RazorIRToken - (573:32,35 [10] Instrumented.cshtml) - CSharp - ex.Message + IntermediateToken - (573:32,35 [10] Instrumented.cshtml) - CSharp - ex.Message HtmlContent - (584:32,46 [4] Instrumented.cshtml) - RazorIRToken - (584:32,46 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (584:32,46 [4] Instrumented.cshtml) - Html -

CSharpCode - (588:32,50 [3] Instrumented.cshtml) - RazorIRToken - (588:32,50 [3] Instrumented.cshtml) - CSharp - \n} + IntermediateToken - (588:32,50 [3] Instrumented.cshtml) - CSharp - \n} HtmlContent - (591:33,1 [4] Instrumented.cshtml) - RazorIRToken - (591:33,1 [4] Instrumented.cshtml) - Html - \n\n + IntermediateToken - (591:33,1 [4] Instrumented.cshtml) - Html - \n\n CSharpCode - (596:35,1 [26] Instrumented.cshtml) - RazorIRToken - (596:35,1 [26] Instrumented.cshtml) - CSharp - lock(new object()) {\n + IntermediateToken - (596:35,1 [26] Instrumented.cshtml) - CSharp - lock(new object()) {\n HtmlContent - (622:36,4 [47] Instrumented.cshtml) - RazorIRToken - (622:36,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (625:36,7 [40] Instrumented.cshtml) - Html - This block is locked, for your security! - RazorIRToken - (665:36,47 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (622:36,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (625:36,7 [40] Instrumented.cshtml) - Html - This block is locked, for your security! + IntermediateToken - (665:36,47 [4] Instrumented.cshtml) - Html -

CSharpCode - (669:36,51 [3] Instrumented.cshtml) - RazorIRToken - (669:36,51 [3] Instrumented.cshtml) - CSharp - \n} + IntermediateToken - (669:36,51 [3] Instrumented.cshtml) - CSharp - \n} 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 a88dae234..5e98fd1e1 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 @@ -3,119 +3,119 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrumented_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [32] Instrumented.cshtml) - RazorIRToken - (2:0,2 [32] Instrumented.cshtml) - CSharp - \n int i = 1;\n var foo = + IntermediateToken - (2:0,2 [32] Instrumented.cshtml) - CSharp - \n int i = 1;\n var foo = Template - (35:2,15 [10] Instrumented.cshtml) HtmlContent - (35:2,15 [10] Instrumented.cshtml) - RazorIRToken - (35:2,15 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (38:2,18 [3] Instrumented.cshtml) - Html - Bar - RazorIRToken - (41:2,21 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (35:2,15 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (38:2,18 [3] Instrumented.cshtml) - Html - Bar + IntermediateToken - (41:2,21 [4] Instrumented.cshtml) - Html -

CSharpCode - (45:2,25 [3] Instrumented.cshtml) - RazorIRToken - (45:2,25 [3] Instrumented.cshtml) - CSharp - ;\n + IntermediateToken - (45:2,25 [3] Instrumented.cshtml) - CSharp - ;\n HtmlContent - (48:3,0 [4] Instrumented.cshtml) - RazorIRToken - (48:3,0 [4] Instrumented.cshtml) - Html - + IntermediateToken - (48:3,0 [4] Instrumented.cshtml) - Html - HtmlContent - (54:3,6 [39] Instrumented.cshtml) - RazorIRToken - (54:3,6 [14] Instrumented.cshtml) - Html - Hello, World\n - RazorIRToken - (68:4,0 [4] Instrumented.cshtml) - Html - - RazorIRToken - (72:4,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (75:4,7 [12] Instrumented.cshtml) - Html - Hello, World - RazorIRToken - (87:4,19 [4] Instrumented.cshtml) - Html -

- RazorIRToken - (91:4,23 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (54:3,6 [14] Instrumented.cshtml) - Html - Hello, World\n + IntermediateToken - (68:4,0 [4] Instrumented.cshtml) - Html - + IntermediateToken - (72:4,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (75:4,7 [12] Instrumented.cshtml) - Html - Hello, World + IntermediateToken - (87:4,19 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (91:4,23 [2] Instrumented.cshtml) - Html - \n CSharpCode - (93:5,0 [0] Instrumented.cshtml) - RazorIRToken - (93:5,0 [0] Instrumented.cshtml) - CSharp - + IntermediateToken - (93:5,0 [0] Instrumented.cshtml) - CSharp - HtmlContent - (96:6,0 [2] Instrumented.cshtml) - RazorIRToken - (96:6,0 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (96:6,0 [2] Instrumented.cshtml) - Html - \n CSharpCode - (99:7,1 [18] Instrumented.cshtml) - RazorIRToken - (99:7,1 [18] Instrumented.cshtml) - CSharp - while(i <= 10) {\n + IntermediateToken - (99:7,1 [18] Instrumented.cshtml) - CSharp - while(i <= 10) {\n HtmlContent - (117:8,0 [23] Instrumented.cshtml) - RazorIRToken - (117:8,0 [4] Instrumented.cshtml) - Html - - RazorIRToken - (121:8,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (124:8,7 [16] Instrumented.cshtml) - Html - Hello from C#, # + IntermediateToken - (117:8,0 [4] Instrumented.cshtml) - Html - + IntermediateToken - (121:8,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (124:8,7 [16] Instrumented.cshtml) - Html - Hello from C#, # CSharpExpression - (142:8,25 [1] Instrumented.cshtml) - RazorIRToken - (142:8,25 [1] Instrumented.cshtml) - CSharp - i + IntermediateToken - (142:8,25 [1] Instrumented.cshtml) - CSharp - i HtmlContent - (144:8,27 [6] Instrumented.cshtml) - RazorIRToken - (144:8,27 [4] Instrumented.cshtml) - Html -

- RazorIRToken - (148:8,31 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (144:8,27 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (148:8,31 [2] Instrumented.cshtml) - Html - \n CSharpCode - (150:9,0 [16] Instrumented.cshtml) - RazorIRToken - (150:9,0 [16] Instrumented.cshtml) - CSharp - i += 1;\n}\n + IntermediateToken - (150:9,0 [16] Instrumented.cshtml) - CSharp - i += 1;\n}\n HtmlContent - (166:11,0 [2] Instrumented.cshtml) - RazorIRToken - (166:11,0 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (166:11,0 [2] Instrumented.cshtml) - Html - \n CSharpCode - (169:12,1 [15] Instrumented.cshtml) - RazorIRToken - (169:12,1 [15] Instrumented.cshtml) - CSharp - if(i == 11) {\n + IntermediateToken - (169:12,1 [15] Instrumented.cshtml) - CSharp - if(i == 11) {\n HtmlContent - (184:13,0 [31] Instrumented.cshtml) - RazorIRToken - (184:13,0 [4] Instrumented.cshtml) - Html - - RazorIRToken - (188:13,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (191:13,7 [18] Instrumented.cshtml) - Html - We wrote 10 lines! - RazorIRToken - (209:13,25 [4] Instrumented.cshtml) - Html -

- RazorIRToken - (213:13,29 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (184:13,0 [4] Instrumented.cshtml) - Html - + IntermediateToken - (188:13,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (191:13,7 [18] Instrumented.cshtml) - Html - We wrote 10 lines! + IntermediateToken - (209:13,25 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (213:13,29 [2] Instrumented.cshtml) - Html - \n CSharpCode - (215:14,0 [3] Instrumented.cshtml) - RazorIRToken - (215:14,0 [3] Instrumented.cshtml) - CSharp - }\n + IntermediateToken - (215:14,0 [3] Instrumented.cshtml) - CSharp - }\n HtmlContent - (218:15,0 [2] Instrumented.cshtml) - RazorIRToken - (218:15,0 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (218:15,0 [2] Instrumented.cshtml) - Html - \n CSharpCode - (221:16,1 [27] Instrumented.cshtml) - RazorIRToken - (221:16,1 [27] Instrumented.cshtml) - CSharp - switch(i) {\n case 11:\n + IntermediateToken - (221:16,1 [27] Instrumented.cshtml) - CSharp - switch(i) {\n case 11:\n HtmlContent - (248:18,0 [46] Instrumented.cshtml) - RazorIRToken - (248:18,0 [8] Instrumented.cshtml) - Html - - RazorIRToken - (256:18,8 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (259:18,11 [29] Instrumented.cshtml) - Html - No really, we wrote 10 lines! - RazorIRToken - (288:18,40 [4] Instrumented.cshtml) - Html -

- RazorIRToken - (292:18,44 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (248:18,0 [8] Instrumented.cshtml) - Html - + IntermediateToken - (256:18,8 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (259:18,11 [29] Instrumented.cshtml) - Html - No really, we wrote 10 lines! + IntermediateToken - (288:18,40 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (292:18,44 [2] Instrumented.cshtml) - Html - \n CSharpCode - (294:19,0 [30] Instrumented.cshtml) - RazorIRToken - (294:19,0 [30] Instrumented.cshtml) - CSharp - break;\n default:\n + IntermediateToken - (294:19,0 [30] Instrumented.cshtml) - CSharp - break;\n default:\n HtmlContent - (324:21,0 [39] Instrumented.cshtml) - RazorIRToken - (324:21,0 [8] Instrumented.cshtml) - Html - - RazorIRToken - (332:21,8 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (335:21,11 [22] Instrumented.cshtml) - Html - Actually, we didn't... - RazorIRToken - (357:21,33 [4] Instrumented.cshtml) - Html -

- RazorIRToken - (361:21,37 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (324:21,0 [8] Instrumented.cshtml) - Html - + IntermediateToken - (332:21,8 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (335:21,11 [22] Instrumented.cshtml) - Html - Actually, we didn't... + IntermediateToken - (357:21,33 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (361:21,37 [2] Instrumented.cshtml) - Html - \n CSharpCode - (363:22,0 [19] Instrumented.cshtml) - RazorIRToken - (363:22,0 [19] Instrumented.cshtml) - CSharp - break;\n}\n + IntermediateToken - (363:22,0 [19] Instrumented.cshtml) - CSharp - break;\n}\n HtmlContent - (382:24,0 [2] Instrumented.cshtml) - RazorIRToken - (382:24,0 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (382:24,0 [2] Instrumented.cshtml) - Html - \n CSharpCode - (385:25,1 [35] Instrumented.cshtml) - RazorIRToken - (385:25,1 [35] Instrumented.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n + IntermediateToken - (385:25,1 [35] Instrumented.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n HtmlContent - (420:26,0 [29] Instrumented.cshtml) - RazorIRToken - (420:26,0 [4] Instrumented.cshtml) - Html - - RazorIRToken - (424:26,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (427:26,7 [22] Instrumented.cshtml) - Html - Hello again from C#, # + IntermediateToken - (420:26,0 [4] Instrumented.cshtml) - Html - + IntermediateToken - (424:26,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (427:26,7 [22] Instrumented.cshtml) - Html - Hello again from C#, # CSharpExpression - (451:26,31 [1] Instrumented.cshtml) - RazorIRToken - (451:26,31 [1] Instrumented.cshtml) - CSharp - j + IntermediateToken - (451:26,31 [1] Instrumented.cshtml) - CSharp - j HtmlContent - (453:26,33 [6] Instrumented.cshtml) - RazorIRToken - (453:26,33 [4] Instrumented.cshtml) - Html -

- RazorIRToken - (457:26,37 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (453:26,33 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (457:26,37 [2] Instrumented.cshtml) - Html - \n CSharpCode - (459:27,0 [3] Instrumented.cshtml) - RazorIRToken - (459:27,0 [3] Instrumented.cshtml) - CSharp - }\n + IntermediateToken - (459:27,0 [3] Instrumented.cshtml) - CSharp - }\n HtmlContent - (462:28,0 [2] Instrumented.cshtml) - RazorIRToken - (462:28,0 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (462:28,0 [2] Instrumented.cshtml) - Html - \n CSharpCode - (465:29,1 [7] Instrumented.cshtml) - RazorIRToken - (465:29,1 [7] Instrumented.cshtml) - CSharp - try {\n + IntermediateToken - (465:29,1 [7] Instrumented.cshtml) - CSharp - try {\n HtmlContent - (472:30,0 [41] Instrumented.cshtml) - RazorIRToken - (472:30,0 [4] Instrumented.cshtml) - Html - - RazorIRToken - (476:30,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (479:30,7 [28] Instrumented.cshtml) - Html - That time, we wrote 5 lines! - RazorIRToken - (507:30,35 [4] Instrumented.cshtml) - Html -

- RazorIRToken - (511:30,39 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (472:30,0 [4] Instrumented.cshtml) - Html - + IntermediateToken - (476:30,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (479:30,7 [28] Instrumented.cshtml) - Html - That time, we wrote 5 lines! + IntermediateToken - (507:30,35 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (511:30,39 [2] Instrumented.cshtml) - Html - \n CSharpCode - (513:31,0 [25] Instrumented.cshtml) - RazorIRToken - (513:31,0 [25] Instrumented.cshtml) - CSharp - } catch(Exception ex) {\n + IntermediateToken - (513:31,0 [25] Instrumented.cshtml) - CSharp - } catch(Exception ex) {\n HtmlContent - (538:32,0 [33] Instrumented.cshtml) - RazorIRToken - (538:32,0 [4] Instrumented.cshtml) - Html - - RazorIRToken - (542:32,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (545:32,7 [26] Instrumented.cshtml) - Html - Oh no! An error occurred: + IntermediateToken - (538:32,0 [4] Instrumented.cshtml) - Html - + IntermediateToken - (542:32,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (545:32,7 [26] Instrumented.cshtml) - Html - Oh no! An error occurred: CSharpExpression - (573:32,35 [10] Instrumented.cshtml) - RazorIRToken - (573:32,35 [10] Instrumented.cshtml) - CSharp - ex.Message + IntermediateToken - (573:32,35 [10] Instrumented.cshtml) - CSharp - ex.Message HtmlContent - (584:32,46 [6] Instrumented.cshtml) - RazorIRToken - (584:32,46 [4] Instrumented.cshtml) - Html -

- RazorIRToken - (588:32,50 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (584:32,46 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (588:32,50 [2] Instrumented.cshtml) - Html - \n CSharpCode - (590:33,0 [3] Instrumented.cshtml) - RazorIRToken - (590:33,0 [3] Instrumented.cshtml) - CSharp - }\n + IntermediateToken - (590:33,0 [3] Instrumented.cshtml) - CSharp - }\n HtmlContent - (593:34,0 [2] Instrumented.cshtml) - RazorIRToken - (593:34,0 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (593:34,0 [2] Instrumented.cshtml) - Html - \n CSharpCode - (596:35,1 [22] Instrumented.cshtml) - RazorIRToken - (596:35,1 [22] Instrumented.cshtml) - CSharp - lock(new object()) {\n + IntermediateToken - (596:35,1 [22] Instrumented.cshtml) - CSharp - lock(new object()) {\n HtmlContent - (618:36,0 [53] Instrumented.cshtml) - RazorIRToken - (618:36,0 [4] Instrumented.cshtml) - Html - - RazorIRToken - (622:36,4 [3] Instrumented.cshtml) - Html -

- RazorIRToken - (625:36,7 [40] Instrumented.cshtml) - Html - This block is locked, for your security! - RazorIRToken - (665:36,47 [4] Instrumented.cshtml) - Html -

- RazorIRToken - (669:36,51 [2] Instrumented.cshtml) - Html - \n + IntermediateToken - (618:36,0 [4] Instrumented.cshtml) - Html - + IntermediateToken - (622:36,4 [3] Instrumented.cshtml) - Html -

+ IntermediateToken - (625:36,7 [40] Instrumented.cshtml) - Html - This block is locked, for your security! + IntermediateToken - (665:36,47 [4] Instrumented.cshtml) - Html -

+ IntermediateToken - (669:36,51 [2] Instrumented.cshtml) - Html - \n CSharpCode - (671:37,0 [1] Instrumented.cshtml) - RazorIRToken - (671:37,0 [1] Instrumented.cshtml) - CSharp - } + IntermediateToken - (671:37,0 [1] Instrumented.cshtml) - CSharp - } 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 16b01e2f7..f55c16a3e 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 @@ -3,16 +3,16 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [46] MarkupInCodeBlock.cshtml) - RazorIRToken - (2:0,2 [46] MarkupInCodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n + IntermediateToken - (2:0,2 [46] MarkupInCodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n HtmlContent - (48:2,8 [19] MarkupInCodeBlock.cshtml) - RazorIRToken - (48:2,8 [3] MarkupInCodeBlock.cshtml) - Html -

- RazorIRToken - (51:2,11 [16] MarkupInCodeBlock.cshtml) - Html - Hello from C#, # + IntermediateToken - (48:2,8 [3] MarkupInCodeBlock.cshtml) - Html -

+ IntermediateToken - (51:2,11 [16] MarkupInCodeBlock.cshtml) - Html - Hello from C#, # CSharpExpression - (69:2,29 [12] MarkupInCodeBlock.cshtml) - RazorIRToken - (69:2,29 [12] MarkupInCodeBlock.cshtml) - CSharp - i.ToString() + IntermediateToken - (69:2,29 [12] MarkupInCodeBlock.cshtml) - CSharp - i.ToString() HtmlContent - (82:2,42 [4] MarkupInCodeBlock.cshtml) - RazorIRToken - (82:2,42 [4] MarkupInCodeBlock.cshtml) - Html -

+ IntermediateToken - (82:2,42 [4] MarkupInCodeBlock.cshtml) - Html -

CSharpCode - (86:2,46 [9] MarkupInCodeBlock.cshtml) - RazorIRToken - (86:2,46 [9] MarkupInCodeBlock.cshtml) - CSharp - \n }\n + IntermediateToken - (86:2,46 [9] MarkupInCodeBlock.cshtml) - CSharp - \n }\n 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 64aad7ef5..83cc4832a 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 @@ -3,15 +3,15 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [38] MarkupInCodeBlock.cshtml) - RazorIRToken - (2:0,2 [38] MarkupInCodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n + IntermediateToken - (2:0,2 [38] MarkupInCodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n HtmlContent - (40:2,0 [27] MarkupInCodeBlock.cshtml) - RazorIRToken - (40:2,0 [8] MarkupInCodeBlock.cshtml) - Html - - RazorIRToken - (48:2,8 [3] MarkupInCodeBlock.cshtml) - Html -

- RazorIRToken - (51:2,11 [16] MarkupInCodeBlock.cshtml) - Html - Hello from C#, # + IntermediateToken - (40:2,0 [8] MarkupInCodeBlock.cshtml) - Html - + IntermediateToken - (48:2,8 [3] MarkupInCodeBlock.cshtml) - Html -

+ IntermediateToken - (51:2,11 [16] MarkupInCodeBlock.cshtml) - Html - Hello from C#, # CSharpExpression - (69:2,29 [12] MarkupInCodeBlock.cshtml) - RazorIRToken - (69:2,29 [12] MarkupInCodeBlock.cshtml) - CSharp - i.ToString() + IntermediateToken - (69:2,29 [12] MarkupInCodeBlock.cshtml) - CSharp - i.ToString() HtmlContent - (82:2,42 [6] MarkupInCodeBlock.cshtml) - RazorIRToken - (82:2,42 [4] MarkupInCodeBlock.cshtml) - Html -

- RazorIRToken - (86:2,46 [2] MarkupInCodeBlock.cshtml) - Html - \n + IntermediateToken - (82:2,42 [4] MarkupInCodeBlock.cshtml) - Html -

+ IntermediateToken - (86:2,46 [2] MarkupInCodeBlock.cshtml) - Html - \n CSharpCode - (88:3,0 [7] MarkupInCodeBlock.cshtml) - RazorIRToken - (88:3,0 [7] MarkupInCodeBlock.cshtml) - CSharp - }\n + IntermediateToken - (88:3,0 [7] MarkupInCodeBlock.cshtml) - CSharp - }\n 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 3e928d8e8..925e8bb1d 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 @@ -4,77 +4,77 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] MinimizedTagHelpers.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] MinimizedTagHelpers.cshtml) - RazorIRToken - (31:0,31 [4] MinimizedTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (31:0,31 [4] MinimizedTagHelpers.cshtml) - Html - \n\n TagHelper - (35:2,0 [647] MinimizedTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (64:2,29 [34] MinimizedTagHelpers.cshtml) - RazorIRToken - (64:2,29 [6] MinimizedTagHelpers.cshtml) - Html - \n - RazorIRToken - (70:3,4 [6] MinimizedTagHelpers.cshtml) - Html - - RazorIRToken - (92:3,26 [6] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (64:2,29 [6] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (70:3,4 [6] MinimizedTagHelpers.cshtml) - Html - + IntermediateToken - (92:3,26 [6] MinimizedTagHelpers.cshtml) - Html - \n TagHelper - (98:4,4 [59] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (112:4,18 [3] MinimizedTagHelpers.cshtml) - RazorIRToken - (112:4,18 [3] MinimizedTagHelpers.cshtml) - Html - btn + IntermediateToken - (112:4,18 [3] MinimizedTagHelpers.cshtml) - Html - btn AddTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized HtmlContent - (157:5,39 [6] MinimizedTagHelpers.cshtml) - RazorIRToken - (157:5,39 [6] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (157:5,39 [6] MinimizedTagHelpers.cshtml) - Html - \n TagHelper - (163:6,4 [119] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (190:7,18 [3] MinimizedTagHelpers.cshtml) - RazorIRToken - (190:7,18 [3] MinimizedTagHelpers.cshtml) - Html - btn + IntermediateToken - (190:7,18 [3] MinimizedTagHelpers.cshtml) - Html - btn AddTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized AddTagHelperHtmlAttribute - - input-unbound-required - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (273:7,101 [5] MinimizedTagHelpers.cshtml) - input-bound-required-string - BoundRequiredString - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (273:7,101 [5] MinimizedTagHelpers.cshtml) - RazorIRToken - (273:7,101 [5] MinimizedTagHelpers.cshtml) - Html - hello + IntermediateToken - (273:7,101 [5] MinimizedTagHelpers.cshtml) - Html - hello HtmlContent - (282:7,110 [6] MinimizedTagHelpers.cshtml) - RazorIRToken - (282:7,110 [6] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (282:7,110 [6] MinimizedTagHelpers.cshtml) - Html - \n TagHelper - (288:8,4 [176] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (315:9,18 [3] MinimizedTagHelpers.cshtml) - RazorIRToken - (315:9,18 [3] MinimizedTagHelpers.cshtml) - Html - btn + IntermediateToken - (315:9,18 [3] MinimizedTagHelpers.cshtml) - Html - btn AddTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized AddTagHelperHtmlAttribute - - input-unbound-required - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (418:11,57 [5] MinimizedTagHelpers.cshtml) - catchall-bound-string - BoundRequiredString - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (418:11,57 [5] MinimizedTagHelpers.cshtml) - RazorIRToken - (418:11,57 [5] MinimizedTagHelpers.cshtml) - Html - world + IntermediateToken - (418:11,57 [5] MinimizedTagHelpers.cshtml) - Html - world SetTagHelperProperty - (454:11,93 [6] MinimizedTagHelpers.cshtml) - input-bound-required-string - BoundRequiredString - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (454:11,93 [6] MinimizedTagHelpers.cshtml) - RazorIRToken - (454:11,93 [6] MinimizedTagHelpers.cshtml) - Html - hello2 + IntermediateToken - (454:11,93 [6] MinimizedTagHelpers.cshtml) - Html - hello2 HtmlContent - (464:11,103 [6] MinimizedTagHelpers.cshtml) - RazorIRToken - (464:11,103 [6] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (464:11,103 [6] MinimizedTagHelpers.cshtml) - Html - \n TagHelper - (470:12,4 [206] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (484:12,18 [3] MinimizedTagHelpers.cshtml) - RazorIRToken - (484:12,18 [3] MinimizedTagHelpers.cshtml) - Html - btn + IntermediateToken - (484:12,18 [3] MinimizedTagHelpers.cshtml) - Html - btn AddTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (529:13,38 [5] MinimizedTagHelpers.cshtml) - RazorIRToken - (529:13,38 [5] MinimizedTagHelpers.cshtml) - Html - hello + IntermediateToken - (529:13,38 [5] MinimizedTagHelpers.cshtml) - Html - hello AddTagHelperHtmlAttribute - - input-unbound-required - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (578:14,40 [6] MinimizedTagHelpers.cshtml) - RazorIRToken - (578:14,40 [6] MinimizedTagHelpers.cshtml) - Html - hello2 + IntermediateToken - (578:14,40 [6] MinimizedTagHelpers.cshtml) - Html - hello2 AddTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (667:16,40 [5] MinimizedTagHelpers.cshtml) - input-bound-required-string - BoundRequiredString - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (667:16,40 [5] MinimizedTagHelpers.cshtml) - RazorIRToken - (667:16,40 [5] MinimizedTagHelpers.cshtml) - Html - world + IntermediateToken - (667:16,40 [5] MinimizedTagHelpers.cshtml) - Html - world HtmlContent - (676:16,49 [2] MinimizedTagHelpers.cshtml) - RazorIRToken - (676:16,49 [2] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (676:16,49 [2] MinimizedTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized 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 3cc6a488f..4ab449de1 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 @@ -11,22 +11,22 @@ Document - DeclareTagHelperFields - - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] MinimizedTagHelpers.cshtml) - RazorIRToken - (33:1,0 [2] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] MinimizedTagHelpers.cshtml) - Html - \n TagHelper - (35:2,0 [647] MinimizedTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (64:2,29 [34] MinimizedTagHelpers.cshtml) - RazorIRToken - (64:2,29 [6] MinimizedTagHelpers.cshtml) - Html - \n - RazorIRToken - (70:3,4 [6] MinimizedTagHelpers.cshtml) - Html - - RazorIRToken - (92:3,26 [6] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (64:2,29 [6] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (70:3,4 [6] MinimizedTagHelpers.cshtml) - Html - + IntermediateToken - (92:3,26 [6] MinimizedTagHelpers.cshtml) - Html - \n TagHelper - (98:4,4 [59] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.CatchAllTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 AddTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized HtmlContent - (157:5,39 [6] MinimizedTagHelpers.cshtml) - RazorIRToken - (157:5,39 [6] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (157:5,39 [6] MinimizedTagHelpers.cshtml) - Html - \n TagHelper - (163:6,4 [119] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -36,7 +36,7 @@ Document - AddTagHelperHtmlAttribute - - input-unbound-required - HtmlAttributeValueStyle.Minimized SetPreallocatedTagHelperProperty - - __tagHelperAttribute_1 - input-bound-required-string - BoundRequiredString HtmlContent - (282:7,110 [6] MinimizedTagHelpers.cshtml) - RazorIRToken - (282:7,110 [6] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (282:7,110 [6] MinimizedTagHelpers.cshtml) - Html - \n TagHelper - (288:8,4 [176] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -47,7 +47,7 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_2 - catchall-bound-string - BoundRequiredString SetPreallocatedTagHelperProperty - - __tagHelperAttribute_3 - input-bound-required-string - BoundRequiredString HtmlContent - (464:11,103 [6] MinimizedTagHelpers.cshtml) - RazorIRToken - (464:11,103 [6] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (464:11,103 [6] MinimizedTagHelpers.cshtml) - Html - \n TagHelper - (470:12,4 [206] MinimizedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -58,6 +58,6 @@ Document - AddTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized SetPreallocatedTagHelperProperty - - __tagHelperAttribute_6 - input-bound-required-string - BoundRequiredString HtmlContent - (676:16,49 [2] MinimizedTagHelpers.cshtml) - RazorIRToken - (676:16,49 [2] MinimizedTagHelpers.cshtml) - Html - \n + IntermediateToken - (676:16,49 [2] MinimizedTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - catchall-unbound-required - HtmlAttributeValueStyle.Minimized 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 6c90585a1..2dcbe468d 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 @@ -3,21 +3,21 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSharp_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] NestedCSharp.cshtml) - RazorIRToken - (2:0,2 [6] NestedCSharp.cshtml) - CSharp - \n + IntermediateToken - (2:0,2 [6] NestedCSharp.cshtml) - CSharp - \n CSharpCode - (9:1,5 [53] NestedCSharp.cshtml) - RazorIRToken - (9:1,5 [53] NestedCSharp.cshtml) - CSharp - foreach (var result in (dynamic)Url)\n {\n + IntermediateToken - (9:1,5 [53] NestedCSharp.cshtml) - CSharp - foreach (var result in (dynamic)Url)\n {\n HtmlContent - (62:3,8 [19] NestedCSharp.cshtml) - RazorIRToken - (62:3,8 [5] NestedCSharp.cshtml) - Html -
- RazorIRToken - (67:3,13 [14] NestedCSharp.cshtml) - Html - \n + IntermediateToken - (62:3,8 [5] NestedCSharp.cshtml) - Html -
+ IntermediateToken - (67:3,13 [14] NestedCSharp.cshtml) - Html - \n CSharpExpression - (82:4,13 [16] NestedCSharp.cshtml) - RazorIRToken - (82:4,13 [16] NestedCSharp.cshtml) - CSharp - result.SomeValue + IntermediateToken - (82:4,13 [16] NestedCSharp.cshtml) - CSharp - result.SomeValue HtmlContent - (98:4,29 [17] NestedCSharp.cshtml) - RazorIRToken - (98:4,29 [11] NestedCSharp.cshtml) - Html - .\n - RazorIRToken - (109:5,8 [6] NestedCSharp.cshtml) - Html -
+ IntermediateToken - (98:4,29 [11] NestedCSharp.cshtml) - Html - .\n + IntermediateToken - (109:5,8 [6] NestedCSharp.cshtml) - Html -
CSharpCode - (115:5,14 [7] NestedCSharp.cshtml) - RazorIRToken - (115:5,14 [7] NestedCSharp.cshtml) - CSharp - \n } + IntermediateToken - (115:5,14 [7] NestedCSharp.cshtml) - CSharp - \n } CSharpCode - (122:6,5 [2] NestedCSharp.cshtml) - RazorIRToken - (122:6,5 [2] NestedCSharp.cshtml) - CSharp - \n + IntermediateToken - (122:6,5 [2] NestedCSharp.cshtml) - CSharp - \n 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 97bd3337e..88311e244 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 @@ -3,21 +3,21 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSharp_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] NestedCSharp.cshtml) - RazorIRToken - (2:0,2 [6] NestedCSharp.cshtml) - CSharp - \n + IntermediateToken - (2:0,2 [6] NestedCSharp.cshtml) - CSharp - \n CSharpCode - (9:1,5 [45] NestedCSharp.cshtml) - RazorIRToken - (9:1,5 [45] NestedCSharp.cshtml) - CSharp - foreach (var result in (dynamic)Url)\n {\n + IntermediateToken - (9:1,5 [45] NestedCSharp.cshtml) - CSharp - foreach (var result in (dynamic)Url)\n {\n HtmlContent - (54:3,0 [27] NestedCSharp.cshtml) - RazorIRToken - (54:3,0 [8] NestedCSharp.cshtml) - Html - - RazorIRToken - (62:3,8 [5] NestedCSharp.cshtml) - Html -
- RazorIRToken - (67:3,13 [2] NestedCSharp.cshtml) - Html - \n - RazorIRToken - (69:4,0 [12] NestedCSharp.cshtml) - Html - + IntermediateToken - (54:3,0 [8] NestedCSharp.cshtml) - Html - + IntermediateToken - (62:3,8 [5] NestedCSharp.cshtml) - Html -
+ IntermediateToken - (67:3,13 [2] NestedCSharp.cshtml) - Html - \n + IntermediateToken - (69:4,0 [12] NestedCSharp.cshtml) - Html - CSharpExpression - (82:4,13 [16] NestedCSharp.cshtml) - RazorIRToken - (82:4,13 [16] NestedCSharp.cshtml) - CSharp - result.SomeValue + IntermediateToken - (82:4,13 [16] NestedCSharp.cshtml) - CSharp - result.SomeValue HtmlContent - (98:4,29 [19] NestedCSharp.cshtml) - RazorIRToken - (98:4,29 [11] NestedCSharp.cshtml) - Html - .\n - RazorIRToken - (109:5,8 [6] NestedCSharp.cshtml) - Html -
- RazorIRToken - (115:5,14 [2] NestedCSharp.cshtml) - Html - \n + IntermediateToken - (98:4,29 [11] NestedCSharp.cshtml) - Html - .\n + IntermediateToken - (109:5,8 [6] NestedCSharp.cshtml) - Html -
+ IntermediateToken - (115:5,14 [2] NestedCSharp.cshtml) - Html - \n CSharpCode - (117:6,0 [5] NestedCSharp.cshtml) - RazorIRToken - (117:6,0 [5] NestedCSharp.cshtml) - CSharp - } + IntermediateToken - (117:6,0 [5] NestedCSharp.cshtml) - CSharp - } CSharpCode - (122:6,5 [2] NestedCSharp.cshtml) - RazorIRToken - (122:6,5 [2] NestedCSharp.cshtml) - CSharp - \n + IntermediateToken - (122:6,5 [2] NestedCSharp.cshtml) - CSharp - \n 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 454481872..a91e77c12 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 @@ -3,11 +3,11 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCodeBlocks_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (1:0,1 [15] NestedCodeBlocks.cshtml) - RazorIRToken - (1:0,1 [15] NestedCodeBlocks.cshtml) - CSharp - if(foo) {\n + IntermediateToken - (1:0,1 [15] NestedCodeBlocks.cshtml) - CSharp - if(foo) {\n CSharpCode - (17:1,5 [16] NestedCodeBlocks.cshtml) - RazorIRToken - (17:1,5 [16] NestedCodeBlocks.cshtml) - CSharp - if(bar) {\n } + IntermediateToken - (17:1,5 [16] NestedCodeBlocks.cshtml) - CSharp - if(bar) {\n } CSharpCode - (33:2,5 [3] NestedCodeBlocks.cshtml) - RazorIRToken - (33:2,5 [3] NestedCodeBlocks.cshtml) - CSharp - \n} + IntermediateToken - (33:2,5 [3] NestedCodeBlocks.cshtml) - CSharp - \n} 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 b7c546ae1..b38c7cacd 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 @@ -3,8 +3,8 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCodeBlocks_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (1:0,1 [15] NestedCodeBlocks.cshtml) - RazorIRToken - (1:0,1 [15] NestedCodeBlocks.cshtml) - CSharp - if(foo) {\n + IntermediateToken - (1:0,1 [15] NestedCodeBlocks.cshtml) - CSharp - if(foo) {\n CSharpCode - (17:1,5 [16] NestedCodeBlocks.cshtml) - RazorIRToken - (17:1,5 [16] NestedCodeBlocks.cshtml) - CSharp - if(bar) {\n } + IntermediateToken - (17:1,5 [16] NestedCodeBlocks.cshtml) - CSharp - if(bar) {\n } CSharpCode - (33:2,5 [3] NestedCodeBlocks.cshtml) - RazorIRToken - (33:2,5 [3] NestedCodeBlocks.cshtml) - CSharp - \n} + IntermediateToken - (33:2,5 [3] NestedCodeBlocks.cshtml) - CSharp - \n} 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 6036cbdb1..9716c6c69 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 @@ -4,75 +4,75 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] NestedScriptTagTagHelpers.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [108] NestedScriptTagTagHelpers.cshtml) - RazorIRToken - (31:0,31 [4] NestedScriptTagTagHelpers.cshtml) - Html - \n\n - RazorIRToken - (35:2,0 [7] NestedScriptTagTagHelpers.cshtml) - Html - + IntermediateToken - (395:7,106 [18] NestedScriptTagTagHelpers.cshtml) - Html - \n + IntermediateToken - (413:8,16 [9] NestedScriptTagTagHelpers.cshtml) - Html - CSharpCode - (422:8,25 [15] NestedScriptTagTagHelpers.cshtml) - RazorIRToken - (422:8,25 [15] NestedScriptTagTagHelpers.cshtml) - CSharp - \n } + IntermediateToken - (422:8,25 [15] NestedScriptTagTagHelpers.cshtml) - CSharp - \n } HtmlContent - (437:9,13 [131] NestedScriptTagTagHelpers.cshtml) - RazorIRToken - (437:9,13 [14] NestedScriptTagTagHelpers.cshtml) - Html - \n - RazorIRToken - (451:10,12 [7] NestedScriptTagTagHelpers.cshtml) - Html - - RazorIRToken - (558:12,21 [10] NestedScriptTagTagHelpers.cshtml) - Html - \n + IntermediateToken - (437:9,13 [14] NestedScriptTagTagHelpers.cshtml) - Html - \n + IntermediateToken - (451:10,12 [7] NestedScriptTagTagHelpers.cshtml) - Html - + IntermediateToken - (558:12,21 [10] NestedScriptTagTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (149:4,18 [11] NestedScriptTagTagHelpers.cshtml) - RazorIRToken - (149:4,18 [11] NestedScriptTagTagHelpers.cshtml) - Html - Hello World + IntermediateToken - (149:4,18 [11] NestedScriptTagTagHelpers.cshtml) - Html - Hello World AddTagHelperHtmlAttribute - - data-delay - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (174:4,43 [4] NestedScriptTagTagHelpers.cshtml) - RazorIRToken - (174:4,43 [4] NestedScriptTagTagHelpers.cshtml) - Html - 1000 + IntermediateToken - (174:4,43 [4] NestedScriptTagTagHelpers.cshtml) - Html - 1000 HtmlContent - (572:13,12 [23] NestedScriptTagTagHelpers.cshtml) - RazorIRToken - (572:13,12 [6] NestedScriptTagTagHelpers.cshtml) - Html - \n - RazorIRToken - (578:14,4 [6] NestedScriptTagTagHelpers.cshtml) - Html - - RazorIRToken - (584:14,10 [2] NestedScriptTagTagHelpers.cshtml) - Html - \n - RazorIRToken - (586:15,0 [9] NestedScriptTagTagHelpers.cshtml) - Html - + IntermediateToken - (572:13,12 [6] NestedScriptTagTagHelpers.cshtml) - Html - \n + IntermediateToken - (578:14,4 [6] NestedScriptTagTagHelpers.cshtml) - Html - + IntermediateToken - (584:14,10 [2] NestedScriptTagTagHelpers.cshtml) - Html - \n + IntermediateToken - (586:15,0 [9] NestedScriptTagTagHelpers.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.ir.txt index fdff95b77..5d1bc8206 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.ir.txt @@ -7,67 +7,67 @@ Document - DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [106] NestedScriptTagTagHelpers.cshtml) - RazorIRToken - (33:1,0 [2] NestedScriptTagTagHelpers.cshtml) - Html - \n - RazorIRToken - (35:2,0 [7] NestedScriptTagTagHelpers.cshtml) - Html - - RazorIRToken - (422:8,25 [2] NestedScriptTagTagHelpers.cshtml) - Html - \n + IntermediateToken - (395:7,106 [18] NestedScriptTagTagHelpers.cshtml) - Html - \n + IntermediateToken - (413:8,16 [9] NestedScriptTagTagHelpers.cshtml) - Html - + IntermediateToken - (422:8,25 [2] NestedScriptTagTagHelpers.cshtml) - Html - \n CSharpCode - (424:9,0 [15] NestedScriptTagTagHelpers.cshtml) - RazorIRToken - (424:9,0 [15] NestedScriptTagTagHelpers.cshtml) - CSharp - }\n + IntermediateToken - (424:9,0 [15] NestedScriptTagTagHelpers.cshtml) - CSharp - }\n HtmlContent - (439:10,0 [129] NestedScriptTagTagHelpers.cshtml) - RazorIRToken - (439:10,0 [12] NestedScriptTagTagHelpers.cshtml) - Html - - RazorIRToken - (451:10,12 [7] NestedScriptTagTagHelpers.cshtml) - Html - - RazorIRToken - (558:12,21 [10] NestedScriptTagTagHelpers.cshtml) - Html - \n + IntermediateToken - (439:10,0 [12] NestedScriptTagTagHelpers.cshtml) - Html - + IntermediateToken - (451:10,12 [7] NestedScriptTagTagHelpers.cshtml) - Html - + IntermediateToken - (558:12,21 [10] NestedScriptTagTagHelpers.cshtml) - Html - \n CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 HtmlContent - (572:13,12 [23] NestedScriptTagTagHelpers.cshtml) - RazorIRToken - (572:13,12 [6] NestedScriptTagTagHelpers.cshtml) - Html - \n - RazorIRToken - (578:14,4 [6] NestedScriptTagTagHelpers.cshtml) - Html - - RazorIRToken - (584:14,10 [2] NestedScriptTagTagHelpers.cshtml) - Html - \n - RazorIRToken - (586:15,0 [9] NestedScriptTagTagHelpers.cshtml) - Html - + IntermediateToken - (572:13,12 [6] NestedScriptTagTagHelpers.cshtml) - Html - \n + IntermediateToken - (578:14,4 [6] NestedScriptTagTagHelpers.cshtml) - Html - + IntermediateToken - (584:14,10 [2] NestedScriptTagTagHelpers.cshtml) - Html - \n + IntermediateToken - (586:15,0 [9] NestedScriptTagTagHelpers.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.ir.txt index 6e144788d..fc5e73e82 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.ir.txt @@ -4,35 +4,35 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [15] NestedTagHelpers.cshtml) - *, TestAssembly CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - SpanTagHelper - DivTagHelper - InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [2] NestedTagHelpers.cshtml) - RazorIRToken - (29:0,29 [2] NestedTagHelpers.cshtml) - Html - \n + IntermediateToken - (29:0,29 [2] NestedTagHelpers.cshtml) - Html - \n TagHelper - (31:1,0 [26] NestedTagHelpers.cshtml) - span - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (46:1,15 [4] NestedTagHelpers.cshtml) - RazorIRToken - (46:1,15 [4] NestedTagHelpers.cshtml) - Html - Hola + IntermediateToken - (46:1,15 [4] NestedTagHelpers.cshtml) - Html - Hola CreateTagHelper - - SpanTagHelper AddTagHelperHtmlAttribute - - someattr - HtmlAttributeValueStyle.Minimized HtmlContent - (57:1,26 [2] NestedTagHelpers.cshtml) - RazorIRToken - (57:1,26 [2] NestedTagHelpers.cshtml) - Html - \n + IntermediateToken - (57:1,26 [2] NestedTagHelpers.cshtml) - Html - \n TagHelper - (59:2,0 [66] NestedTagHelpers.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (78:2,19 [6] NestedTagHelpers.cshtml) - RazorIRToken - (78:2,19 [6] NestedTagHelpers.cshtml) - Html - \n + IntermediateToken - (78:2,19 [6] NestedTagHelpers.cshtml) - Html - \n TagHelper - (84:3,4 [33] NestedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper SetTagHelperProperty - (97:3,17 [5] NestedTagHelpers.cshtml) - value - FooProp - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (97:3,17 [5] NestedTagHelpers.cshtml) - RazorIRToken - (97:3,17 [5] NestedTagHelpers.cshtml) - Html - Hello + IntermediateToken - (97:3,17 [5] NestedTagHelpers.cshtml) - Html - Hello AddTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.SingleQuotes HtmlContent - (109:3,29 [4] NestedTagHelpers.cshtml) - RazorIRToken - (109:3,29 [4] NestedTagHelpers.cshtml) - Html - text + IntermediateToken - (109:3,29 [4] NestedTagHelpers.cshtml) - Html - text HtmlContent - (117:3,37 [2] NestedTagHelpers.cshtml) - RazorIRToken - (117:3,37 [2] NestedTagHelpers.cshtml) - Html - \n + IntermediateToken - (117:3,37 [2] NestedTagHelpers.cshtml) - Html - \n CreateTagHelper - - DivTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (73:2,14 [3] NestedTagHelpers.cshtml) - RazorIRToken - (73:2,14 [3] NestedTagHelpers.cshtml) - Html - foo + IntermediateToken - (73:2,14 [3] NestedTagHelpers.cshtml) - Html - foo diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_Runtime.ir.txt index 4dc43c05a..236742497 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_Runtime.ir.txt @@ -9,21 +9,21 @@ Document - TagHelper - (31:1,0 [26] NestedTagHelpers.cshtml) - span - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (46:1,15 [4] NestedTagHelpers.cshtml) - RazorIRToken - (46:1,15 [4] NestedTagHelpers.cshtml) - Html - Hola + IntermediateToken - (46:1,15 [4] NestedTagHelpers.cshtml) - Html - Hola CreateTagHelper - - SpanTagHelper AddTagHelperHtmlAttribute - - someattr - HtmlAttributeValueStyle.Minimized HtmlContent - (57:1,26 [2] NestedTagHelpers.cshtml) - RazorIRToken - (57:1,26 [2] NestedTagHelpers.cshtml) - Html - \n + IntermediateToken - (57:1,26 [2] NestedTagHelpers.cshtml) - Html - \n TagHelper - (59:2,0 [66] NestedTagHelpers.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (78:2,19 [6] NestedTagHelpers.cshtml) - RazorIRToken - (78:2,19 [6] NestedTagHelpers.cshtml) - Html - \n + IntermediateToken - (78:2,19 [6] NestedTagHelpers.cshtml) - Html - \n TagHelper - (84:3,4 [33] NestedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - value - FooProp AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 HtmlContent - (117:3,37 [2] NestedTagHelpers.cshtml) - RazorIRToken - (117:3,37 [2] NestedTagHelpers.cshtml) - Html - \n + IntermediateToken - (117:3,37 [2] NestedTagHelpers.cshtml) - Html - \n CreateTagHelper - - DivTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.ir.txt index c3a912a9f..e9609e47f 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.ir.txt @@ -3,97 +3,97 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NoLinePragmas_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [18] NoLinePragmas.cshtml) - RazorIRToken - (2:0,2 [18] NoLinePragmas.cshtml) - CSharp - \n int i = 1;\n + IntermediateToken - (2:0,2 [18] NoLinePragmas.cshtml) - CSharp - \n int i = 1;\n HtmlContent - (23:3,0 [2] NoLinePragmas.cshtml) - RazorIRToken - (23:3,0 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (23:3,0 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (26:4,1 [22] NoLinePragmas.cshtml) - RazorIRToken - (26:4,1 [22] NoLinePragmas.cshtml) - CSharp - while(i <= 10) {\n + IntermediateToken - (26:4,1 [22] NoLinePragmas.cshtml) - CSharp - while(i <= 10) {\n HtmlContent - (48:5,4 [19] NoLinePragmas.cshtml) - RazorIRToken - (48:5,4 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (51:5,7 [16] NoLinePragmas.cshtml) - Html - Hello from C#, # + IntermediateToken - (48:5,4 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (51:5,7 [16] NoLinePragmas.cshtml) - Html - Hello from C#, # CSharpExpression - (69:5,25 [1] NoLinePragmas.cshtml) - RazorIRToken - (69:5,25 [1] NoLinePragmas.cshtml) - CSharp - i + IntermediateToken - (69:5,25 [1] NoLinePragmas.cshtml) - CSharp - i HtmlContent - (71:5,27 [4] NoLinePragmas.cshtml) - RazorIRToken - (71:5,27 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (71:5,27 [4] NoLinePragmas.cshtml) - Html -

CSharpCode - (75:5,31 [16] NoLinePragmas.cshtml) - RazorIRToken - (75:5,31 [16] NoLinePragmas.cshtml) - CSharp - \n i += 1;\n} + IntermediateToken - (75:5,31 [16] NoLinePragmas.cshtml) - CSharp - \n i += 1;\n} HtmlContent - (91:7,1 [4] NoLinePragmas.cshtml) - RazorIRToken - (91:7,1 [4] NoLinePragmas.cshtml) - Html - \n\n + IntermediateToken - (91:7,1 [4] NoLinePragmas.cshtml) - Html - \n\n CSharpCode - (96:9,1 [19] NoLinePragmas.cshtml) - RazorIRToken - (96:9,1 [19] NoLinePragmas.cshtml) - CSharp - if(i == 11) {\n + IntermediateToken - (96:9,1 [19] NoLinePragmas.cshtml) - CSharp - if(i == 11) {\n HtmlContent - (115:10,4 [25] NoLinePragmas.cshtml) - RazorIRToken - (115:10,4 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (118:10,7 [18] NoLinePragmas.cshtml) - Html - We wrote 10 lines! - RazorIRToken - (136:10,25 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (115:10,4 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (118:10,7 [18] NoLinePragmas.cshtml) - Html - We wrote 10 lines! + IntermediateToken - (136:10,25 [4] NoLinePragmas.cshtml) - Html -

CSharpCode - (140:10,29 [3] NoLinePragmas.cshtml) - RazorIRToken - (140:10,29 [3] NoLinePragmas.cshtml) - CSharp - \n} + IntermediateToken - (140:10,29 [3] NoLinePragmas.cshtml) - CSharp - \n} HtmlContent - (143:11,1 [4] NoLinePragmas.cshtml) - RazorIRToken - (143:11,1 [4] NoLinePragmas.cshtml) - Html - \n\n + IntermediateToken - (143:11,1 [4] NoLinePragmas.cshtml) - Html - \n\n CSharpCode - (148:13,1 [35] NoLinePragmas.cshtml) - RazorIRToken - (148:13,1 [35] NoLinePragmas.cshtml) - CSharp - switch(i) {\n case 11:\n + IntermediateToken - (148:13,1 [35] NoLinePragmas.cshtml) - CSharp - switch(i) {\n case 11:\n HtmlContent - (183:15,8 [36] NoLinePragmas.cshtml) - RazorIRToken - (183:15,8 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (186:15,11 [29] NoLinePragmas.cshtml) - Html - No really, we wrote 10 lines! - RazorIRToken - (215:15,40 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (183:15,8 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (186:15,11 [29] NoLinePragmas.cshtml) - Html - No really, we wrote 10 lines! + IntermediateToken - (215:15,40 [4] NoLinePragmas.cshtml) - Html -

CSharpCode - (219:15,44 [40] NoLinePragmas.cshtml) - RazorIRToken - (219:15,44 [40] NoLinePragmas.cshtml) - CSharp - \n break;\n default:\n + IntermediateToken - (219:15,44 [40] NoLinePragmas.cshtml) - CSharp - \n break;\n default:\n HtmlContent - (259:18,8 [29] NoLinePragmas.cshtml) - RazorIRToken - (259:18,8 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (262:18,11 [22] NoLinePragmas.cshtml) - Html - Actually, we didn't... - RazorIRToken - (284:18,33 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (259:18,8 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (262:18,11 [22] NoLinePragmas.cshtml) - Html - Actually, we didn't... + IntermediateToken - (284:18,33 [4] NoLinePragmas.cshtml) - Html -

CSharpCode - (288:18,37 [19] NoLinePragmas.cshtml) - RazorIRToken - (288:18,37 [19] NoLinePragmas.cshtml) - CSharp - \n break;\n} + IntermediateToken - (288:18,37 [19] NoLinePragmas.cshtml) - CSharp - \n break;\n} HtmlContent - (307:20,1 [4] NoLinePragmas.cshtml) - RazorIRToken - (307:20,1 [4] NoLinePragmas.cshtml) - Html - \n\n + IntermediateToken - (307:20,1 [4] NoLinePragmas.cshtml) - Html - \n\n CSharpCode - (312:22,1 [39] NoLinePragmas.cshtml) - RazorIRToken - (312:22,1 [39] NoLinePragmas.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n + IntermediateToken - (312:22,1 [39] NoLinePragmas.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n HtmlContent - (351:23,4 [25] NoLinePragmas.cshtml) - RazorIRToken - (351:23,4 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (354:23,7 [22] NoLinePragmas.cshtml) - Html - Hello again from C#, # + IntermediateToken - (351:23,4 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (354:23,7 [22] NoLinePragmas.cshtml) - Html - Hello again from C#, # CSharpExpression - (378:23,31 [1] NoLinePragmas.cshtml) - RazorIRToken - (378:23,31 [1] NoLinePragmas.cshtml) - CSharp - j + IntermediateToken - (378:23,31 [1] NoLinePragmas.cshtml) - CSharp - j HtmlContent - (380:23,33 [4] NoLinePragmas.cshtml) - RazorIRToken - (380:23,33 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (380:23,33 [4] NoLinePragmas.cshtml) - Html -

CSharpCode - (384:23,37 [3] NoLinePragmas.cshtml) - RazorIRToken - (384:23,37 [3] NoLinePragmas.cshtml) - CSharp - \n} + IntermediateToken - (384:23,37 [3] NoLinePragmas.cshtml) - CSharp - \n} HtmlContent - (387:24,1 [4] NoLinePragmas.cshtml) - RazorIRToken - (387:24,1 [4] NoLinePragmas.cshtml) - Html - \n\n + IntermediateToken - (387:24,1 [4] NoLinePragmas.cshtml) - Html - \n\n CSharpCode - (392:26,1 [11] NoLinePragmas.cshtml) - RazorIRToken - (392:26,1 [11] NoLinePragmas.cshtml) - CSharp - try {\n + IntermediateToken - (392:26,1 [11] NoLinePragmas.cshtml) - CSharp - try {\n HtmlContent - (403:27,4 [35] NoLinePragmas.cshtml) - RazorIRToken - (403:27,4 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (406:27,7 [28] NoLinePragmas.cshtml) - Html - That time, we wrote 5 lines! - RazorIRToken - (434:27,35 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (403:27,4 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (406:27,7 [28] NoLinePragmas.cshtml) - Html - That time, we wrote 5 lines! + IntermediateToken - (434:27,35 [4] NoLinePragmas.cshtml) - Html -

CSharpCode - (438:27,39 [31] NoLinePragmas.cshtml) - RazorIRToken - (438:27,39 [31] NoLinePragmas.cshtml) - CSharp - \n} catch(Exception ex) {\n + IntermediateToken - (438:27,39 [31] NoLinePragmas.cshtml) - CSharp - \n} catch(Exception ex) {\n HtmlContent - (469:29,4 [29] NoLinePragmas.cshtml) - RazorIRToken - (469:29,4 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (472:29,7 [26] NoLinePragmas.cshtml) - Html - Oh no! An error occurred: + IntermediateToken - (469:29,4 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (472:29,7 [26] NoLinePragmas.cshtml) - Html - Oh no! An error occurred: CSharpExpression - (500:29,35 [10] NoLinePragmas.cshtml) - RazorIRToken - (500:29,35 [10] NoLinePragmas.cshtml) - CSharp - ex.Message + IntermediateToken - (500:29,35 [10] NoLinePragmas.cshtml) - CSharp - ex.Message HtmlContent - (511:29,46 [4] NoLinePragmas.cshtml) - RazorIRToken - (511:29,46 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (511:29,46 [4] NoLinePragmas.cshtml) - Html -

CSharpCode - (515:29,50 [7] NoLinePragmas.cshtml) - RazorIRToken - (515:29,50 [7] NoLinePragmas.cshtml) - CSharp - \n}\n\n + IntermediateToken - (515:29,50 [7] NoLinePragmas.cshtml) - CSharp - \n}\n\n CSharpCode - (556:32,34 [0] NoLinePragmas.cshtml) - RazorIRToken - (556:32,34 [0] NoLinePragmas.cshtml) - CSharp - + IntermediateToken - (556:32,34 [0] NoLinePragmas.cshtml) - CSharp - HtmlContent - (556:32,34 [14] NoLinePragmas.cshtml) - RazorIRToken - (556:32,34 [2] NoLinePragmas.cshtml) - Html - \n - RazorIRToken - (558:33,0 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (561:33,3 [9] NoLinePragmas.cshtml) - Html - i is now + IntermediateToken - (556:32,34 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (558:33,0 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (561:33,3 [9] NoLinePragmas.cshtml) - Html - i is now CSharpExpression - (571:33,13 [1] NoLinePragmas.cshtml) - RazorIRToken - (571:33,13 [1] NoLinePragmas.cshtml) - CSharp - i + IntermediateToken - (571:33,13 [1] NoLinePragmas.cshtml) - CSharp - i HtmlContent - (572:33,14 [8] NoLinePragmas.cshtml) - RazorIRToken - (572:33,14 [4] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (576:33,18 [4] NoLinePragmas.cshtml) - Html - \n\n + IntermediateToken - (572:33,14 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (576:33,18 [4] NoLinePragmas.cshtml) - Html - \n\n CSharpCode - (581:35,1 [26] NoLinePragmas.cshtml) - RazorIRToken - (581:35,1 [26] NoLinePragmas.cshtml) - CSharp - lock(new object()) {\n + IntermediateToken - (581:35,1 [26] NoLinePragmas.cshtml) - CSharp - lock(new object()) {\n HtmlContent - (607:36,4 [47] NoLinePragmas.cshtml) - RazorIRToken - (607:36,4 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (610:36,7 [40] NoLinePragmas.cshtml) - Html - This block is locked, for your security! - RazorIRToken - (650:36,47 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (607:36,4 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (610:36,7 [40] NoLinePragmas.cshtml) - Html - This block is locked, for your security! + IntermediateToken - (650:36,47 [4] NoLinePragmas.cshtml) - Html -

CSharpCode - (654:36,51 [3] NoLinePragmas.cshtml) - RazorIRToken - (654:36,51 [3] NoLinePragmas.cshtml) - CSharp - \n} + IntermediateToken - (654:36,51 [3] NoLinePragmas.cshtml) - CSharp - \n} diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.ir.txt index bb72488b7..ad70eb0bf 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.ir.txt @@ -3,109 +3,109 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NoLinePragmas_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [18] NoLinePragmas.cshtml) - RazorIRToken - (2:0,2 [18] NoLinePragmas.cshtml) - CSharp - \n int i = 1;\n + IntermediateToken - (2:0,2 [18] NoLinePragmas.cshtml) - CSharp - \n int i = 1;\n HtmlContent - (23:3,0 [2] NoLinePragmas.cshtml) - RazorIRToken - (23:3,0 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (23:3,0 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (26:4,1 [18] NoLinePragmas.cshtml) - RazorIRToken - (26:4,1 [18] NoLinePragmas.cshtml) - CSharp - while(i <= 10) {\n + IntermediateToken - (26:4,1 [18] NoLinePragmas.cshtml) - CSharp - while(i <= 10) {\n HtmlContent - (44:5,0 [23] NoLinePragmas.cshtml) - RazorIRToken - (44:5,0 [4] NoLinePragmas.cshtml) - Html - - RazorIRToken - (48:5,4 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (51:5,7 [16] NoLinePragmas.cshtml) - Html - Hello from C#, # + IntermediateToken - (44:5,0 [4] NoLinePragmas.cshtml) - Html - + IntermediateToken - (48:5,4 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (51:5,7 [16] NoLinePragmas.cshtml) - Html - Hello from C#, # CSharpExpression - (69:5,25 [1] NoLinePragmas.cshtml) - RazorIRToken - (69:5,25 [1] NoLinePragmas.cshtml) - CSharp - i + IntermediateToken - (69:5,25 [1] NoLinePragmas.cshtml) - CSharp - i HtmlContent - (71:5,27 [6] NoLinePragmas.cshtml) - RazorIRToken - (71:5,27 [4] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (75:5,31 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (71:5,27 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (75:5,31 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (77:6,0 [16] NoLinePragmas.cshtml) - RazorIRToken - (77:6,0 [16] NoLinePragmas.cshtml) - CSharp - i += 1;\n}\n + IntermediateToken - (77:6,0 [16] NoLinePragmas.cshtml) - CSharp - i += 1;\n}\n HtmlContent - (93:8,0 [2] NoLinePragmas.cshtml) - RazorIRToken - (93:8,0 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (93:8,0 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (96:9,1 [15] NoLinePragmas.cshtml) - RazorIRToken - (96:9,1 [15] NoLinePragmas.cshtml) - CSharp - if(i == 11) {\n + IntermediateToken - (96:9,1 [15] NoLinePragmas.cshtml) - CSharp - if(i == 11) {\n HtmlContent - (111:10,0 [31] NoLinePragmas.cshtml) - RazorIRToken - (111:10,0 [4] NoLinePragmas.cshtml) - Html - - RazorIRToken - (115:10,4 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (118:10,7 [18] NoLinePragmas.cshtml) - Html - We wrote 10 lines! - RazorIRToken - (136:10,25 [4] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (140:10,29 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (111:10,0 [4] NoLinePragmas.cshtml) - Html - + IntermediateToken - (115:10,4 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (118:10,7 [18] NoLinePragmas.cshtml) - Html - We wrote 10 lines! + IntermediateToken - (136:10,25 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (140:10,29 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (142:11,0 [3] NoLinePragmas.cshtml) - RazorIRToken - (142:11,0 [3] NoLinePragmas.cshtml) - CSharp - }\n + IntermediateToken - (142:11,0 [3] NoLinePragmas.cshtml) - CSharp - }\n HtmlContent - (145:12,0 [2] NoLinePragmas.cshtml) - RazorIRToken - (145:12,0 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (145:12,0 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (148:13,1 [27] NoLinePragmas.cshtml) - RazorIRToken - (148:13,1 [27] NoLinePragmas.cshtml) - CSharp - switch(i) {\n case 11:\n + IntermediateToken - (148:13,1 [27] NoLinePragmas.cshtml) - CSharp - switch(i) {\n case 11:\n HtmlContent - (175:15,0 [46] NoLinePragmas.cshtml) - RazorIRToken - (175:15,0 [8] NoLinePragmas.cshtml) - Html - - RazorIRToken - (183:15,8 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (186:15,11 [29] NoLinePragmas.cshtml) - Html - No really, we wrote 10 lines! - RazorIRToken - (215:15,40 [4] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (219:15,44 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (175:15,0 [8] NoLinePragmas.cshtml) - Html - + IntermediateToken - (183:15,8 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (186:15,11 [29] NoLinePragmas.cshtml) - Html - No really, we wrote 10 lines! + IntermediateToken - (215:15,40 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (219:15,44 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (221:16,0 [30] NoLinePragmas.cshtml) - RazorIRToken - (221:16,0 [30] NoLinePragmas.cshtml) - CSharp - break;\n default:\n + IntermediateToken - (221:16,0 [30] NoLinePragmas.cshtml) - CSharp - break;\n default:\n HtmlContent - (251:18,0 [39] NoLinePragmas.cshtml) - RazorIRToken - (251:18,0 [8] NoLinePragmas.cshtml) - Html - - RazorIRToken - (259:18,8 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (262:18,11 [22] NoLinePragmas.cshtml) - Html - Actually, we didn't... - RazorIRToken - (284:18,33 [4] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (288:18,37 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (251:18,0 [8] NoLinePragmas.cshtml) - Html - + IntermediateToken - (259:18,8 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (262:18,11 [22] NoLinePragmas.cshtml) - Html - Actually, we didn't... + IntermediateToken - (284:18,33 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (288:18,37 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (290:19,0 [19] NoLinePragmas.cshtml) - RazorIRToken - (290:19,0 [19] NoLinePragmas.cshtml) - CSharp - break;\n}\n + IntermediateToken - (290:19,0 [19] NoLinePragmas.cshtml) - CSharp - break;\n}\n HtmlContent - (309:21,0 [2] NoLinePragmas.cshtml) - RazorIRToken - (309:21,0 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (309:21,0 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (312:22,1 [35] NoLinePragmas.cshtml) - RazorIRToken - (312:22,1 [35] NoLinePragmas.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n + IntermediateToken - (312:22,1 [35] NoLinePragmas.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n HtmlContent - (347:23,0 [29] NoLinePragmas.cshtml) - RazorIRToken - (347:23,0 [4] NoLinePragmas.cshtml) - Html - - RazorIRToken - (351:23,4 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (354:23,7 [22] NoLinePragmas.cshtml) - Html - Hello again from C#, # + IntermediateToken - (347:23,0 [4] NoLinePragmas.cshtml) - Html - + IntermediateToken - (351:23,4 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (354:23,7 [22] NoLinePragmas.cshtml) - Html - Hello again from C#, # CSharpExpression - (378:23,31 [1] NoLinePragmas.cshtml) - RazorIRToken - (378:23,31 [1] NoLinePragmas.cshtml) - CSharp - j + IntermediateToken - (378:23,31 [1] NoLinePragmas.cshtml) - CSharp - j HtmlContent - (380:23,33 [6] NoLinePragmas.cshtml) - RazorIRToken - (380:23,33 [4] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (384:23,37 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (380:23,33 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (384:23,37 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (386:24,0 [3] NoLinePragmas.cshtml) - RazorIRToken - (386:24,0 [3] NoLinePragmas.cshtml) - CSharp - }\n + IntermediateToken - (386:24,0 [3] NoLinePragmas.cshtml) - CSharp - }\n HtmlContent - (389:25,0 [2] NoLinePragmas.cshtml) - RazorIRToken - (389:25,0 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (389:25,0 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (392:26,1 [7] NoLinePragmas.cshtml) - RazorIRToken - (392:26,1 [7] NoLinePragmas.cshtml) - CSharp - try {\n + IntermediateToken - (392:26,1 [7] NoLinePragmas.cshtml) - CSharp - try {\n HtmlContent - (399:27,0 [41] NoLinePragmas.cshtml) - RazorIRToken - (399:27,0 [4] NoLinePragmas.cshtml) - Html - - RazorIRToken - (403:27,4 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (406:27,7 [28] NoLinePragmas.cshtml) - Html - That time, we wrote 5 lines! - RazorIRToken - (434:27,35 [4] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (438:27,39 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (399:27,0 [4] NoLinePragmas.cshtml) - Html - + IntermediateToken - (403:27,4 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (406:27,7 [28] NoLinePragmas.cshtml) - Html - That time, we wrote 5 lines! + IntermediateToken - (434:27,35 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (438:27,39 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (440:28,0 [25] NoLinePragmas.cshtml) - RazorIRToken - (440:28,0 [25] NoLinePragmas.cshtml) - CSharp - } catch(Exception ex) {\n + IntermediateToken - (440:28,0 [25] NoLinePragmas.cshtml) - CSharp - } catch(Exception ex) {\n HtmlContent - (465:29,0 [33] NoLinePragmas.cshtml) - RazorIRToken - (465:29,0 [4] NoLinePragmas.cshtml) - Html - - RazorIRToken - (469:29,4 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (472:29,7 [26] NoLinePragmas.cshtml) - Html - Oh no! An error occurred: + IntermediateToken - (465:29,0 [4] NoLinePragmas.cshtml) - Html - + IntermediateToken - (469:29,4 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (472:29,7 [26] NoLinePragmas.cshtml) - Html - Oh no! An error occurred: CSharpExpression - (500:29,35 [10] NoLinePragmas.cshtml) - RazorIRToken - (500:29,35 [10] NoLinePragmas.cshtml) - CSharp - ex.Message + IntermediateToken - (500:29,35 [10] NoLinePragmas.cshtml) - CSharp - ex.Message HtmlContent - (511:29,46 [6] NoLinePragmas.cshtml) - RazorIRToken - (511:29,46 [4] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (515:29,50 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (511:29,46 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (515:29,50 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (517:30,0 [5] NoLinePragmas.cshtml) - RazorIRToken - (517:30,0 [5] NoLinePragmas.cshtml) - CSharp - }\n\n + IntermediateToken - (517:30,0 [5] NoLinePragmas.cshtml) - CSharp - }\n\n CSharpCode - (556:32,34 [2] NoLinePragmas.cshtml) - RazorIRToken - (556:32,34 [2] NoLinePragmas.cshtml) - CSharp - \n + IntermediateToken - (556:32,34 [2] NoLinePragmas.cshtml) - CSharp - \n HtmlContent - (558:33,0 [12] NoLinePragmas.cshtml) - RazorIRToken - (558:33,0 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (561:33,3 [9] NoLinePragmas.cshtml) - Html - i is now + IntermediateToken - (558:33,0 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (561:33,3 [9] NoLinePragmas.cshtml) - Html - i is now CSharpExpression - (571:33,13 [1] NoLinePragmas.cshtml) - RazorIRToken - (571:33,13 [1] NoLinePragmas.cshtml) - CSharp - i + IntermediateToken - (571:33,13 [1] NoLinePragmas.cshtml) - CSharp - i HtmlContent - (572:33,14 [8] NoLinePragmas.cshtml) - RazorIRToken - (572:33,14 [4] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (576:33,18 [4] NoLinePragmas.cshtml) - Html - \n\n + IntermediateToken - (572:33,14 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (576:33,18 [4] NoLinePragmas.cshtml) - Html - \n\n CSharpCode - (581:35,1 [22] NoLinePragmas.cshtml) - RazorIRToken - (581:35,1 [22] NoLinePragmas.cshtml) - CSharp - lock(new object()) {\n + IntermediateToken - (581:35,1 [22] NoLinePragmas.cshtml) - CSharp - lock(new object()) {\n HtmlContent - (603:36,0 [53] NoLinePragmas.cshtml) - RazorIRToken - (603:36,0 [4] NoLinePragmas.cshtml) - Html - - RazorIRToken - (607:36,4 [3] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (610:36,7 [40] NoLinePragmas.cshtml) - Html - This block is locked, for your security! - RazorIRToken - (650:36,47 [4] NoLinePragmas.cshtml) - Html -

- RazorIRToken - (654:36,51 [2] NoLinePragmas.cshtml) - Html - \n + IntermediateToken - (603:36,0 [4] NoLinePragmas.cshtml) - Html - + IntermediateToken - (607:36,4 [3] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (610:36,7 [40] NoLinePragmas.cshtml) - Html - This block is locked, for your security! + IntermediateToken - (650:36,47 [4] NoLinePragmas.cshtml) - Html -

+ IntermediateToken - (654:36,51 [2] NoLinePragmas.cshtml) - Html - \n CSharpCode - (656:37,0 [1] NoLinePragmas.cshtml) - RazorIRToken - (656:37,0 [1] NoLinePragmas.cshtml) - CSharp - } + IntermediateToken - (656:37,0 [1] NoLinePragmas.cshtml) - CSharp - } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.ir.txt index 8154ab55b..83cd7fc2b 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.ir.txt @@ -3,39 +3,39 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NullConditionalExpressions_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] NullConditionalExpressions.cshtml) - RazorIRToken - (2:0,2 [6] NullConditionalExpressions.cshtml) - CSharp - \n + IntermediateToken - (2:0,2 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (9:1,5 [13] NullConditionalExpressions.cshtml) - RazorIRToken - (9:1,5 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data + IntermediateToken - (9:1,5 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data CSharpCode - (22:1,18 [6] NullConditionalExpressions.cshtml) - RazorIRToken - (22:1,18 [6] NullConditionalExpressions.cshtml) - CSharp - \n + IntermediateToken - (22:1,18 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (29:2,5 [22] NullConditionalExpressions.cshtml) - RazorIRToken - (29:2,5 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] + IntermediateToken - (29:2,5 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] CSharpCode - (51:2,27 [6] NullConditionalExpressions.cshtml) - RazorIRToken - (51:2,27 [6] NullConditionalExpressions.cshtml) - CSharp - \n + IntermediateToken - (51:2,27 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (58:3,5 [26] NullConditionalExpressions.cshtml) - RazorIRToken - (58:3,5 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] + IntermediateToken - (58:3,5 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] CSharpCode - (84:3,31 [6] NullConditionalExpressions.cshtml) - RazorIRToken - (84:3,31 [6] NullConditionalExpressions.cshtml) - CSharp - \n + IntermediateToken - (84:3,31 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (91:4,5 [41] NullConditionalExpressions.cshtml) - RazorIRToken - (91:4,5 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] + IntermediateToken - (91:4,5 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] CSharpCode - (132:4,46 [2] NullConditionalExpressions.cshtml) - RazorIRToken - (132:4,46 [2] NullConditionalExpressions.cshtml) - CSharp - \n + IntermediateToken - (132:4,46 [2] NullConditionalExpressions.cshtml) - CSharp - \n HtmlContent - (137:6,0 [2] NullConditionalExpressions.cshtml) - RazorIRToken - (137:6,0 [2] NullConditionalExpressions.cshtml) - Html - \n + IntermediateToken - (137:6,0 [2] NullConditionalExpressions.cshtml) - Html - \n CSharpExpression - (140:7,1 [13] NullConditionalExpressions.cshtml) - RazorIRToken - (140:7,1 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data + IntermediateToken - (140:7,1 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data HtmlContent - (153:7,14 [2] NullConditionalExpressions.cshtml) - RazorIRToken - (153:7,14 [2] NullConditionalExpressions.cshtml) - Html - \n + IntermediateToken - (153:7,14 [2] NullConditionalExpressions.cshtml) - Html - \n CSharpExpression - (156:8,1 [22] NullConditionalExpressions.cshtml) - RazorIRToken - (156:8,1 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] + IntermediateToken - (156:8,1 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] HtmlContent - (178:8,23 [2] NullConditionalExpressions.cshtml) - RazorIRToken - (178:8,23 [2] NullConditionalExpressions.cshtml) - Html - \n + IntermediateToken - (178:8,23 [2] NullConditionalExpressions.cshtml) - Html - \n CSharpExpression - (181:9,1 [26] NullConditionalExpressions.cshtml) - RazorIRToken - (181:9,1 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] + IntermediateToken - (181:9,1 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] HtmlContent - (207:9,27 [2] NullConditionalExpressions.cshtml) - RazorIRToken - (207:9,27 [2] NullConditionalExpressions.cshtml) - Html - \n + IntermediateToken - (207:9,27 [2] NullConditionalExpressions.cshtml) - Html - \n CSharpExpression - (210:10,1 [41] NullConditionalExpressions.cshtml) - RazorIRToken - (210:10,1 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] + IntermediateToken - (210:10,1 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.ir.txt index f21e6a586..d8eb62464 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.ir.txt @@ -3,36 +3,36 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NullConditionalExpressions_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [6] NullConditionalExpressions.cshtml) - RazorIRToken - (2:0,2 [6] NullConditionalExpressions.cshtml) - CSharp - \n + IntermediateToken - (2:0,2 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (9:1,5 [13] NullConditionalExpressions.cshtml) - RazorIRToken - (9:1,5 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data + IntermediateToken - (9:1,5 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data CSharpCode - (22:1,18 [6] NullConditionalExpressions.cshtml) - RazorIRToken - (22:1,18 [6] NullConditionalExpressions.cshtml) - CSharp - \n + IntermediateToken - (22:1,18 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (29:2,5 [22] NullConditionalExpressions.cshtml) - RazorIRToken - (29:2,5 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] + IntermediateToken - (29:2,5 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] CSharpCode - (51:2,27 [6] NullConditionalExpressions.cshtml) - RazorIRToken - (51:2,27 [6] NullConditionalExpressions.cshtml) - CSharp - \n + IntermediateToken - (51:2,27 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (58:3,5 [26] NullConditionalExpressions.cshtml) - RazorIRToken - (58:3,5 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] + IntermediateToken - (58:3,5 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] CSharpCode - (84:3,31 [6] NullConditionalExpressions.cshtml) - RazorIRToken - (84:3,31 [6] NullConditionalExpressions.cshtml) - CSharp - \n + IntermediateToken - (84:3,31 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (91:4,5 [41] NullConditionalExpressions.cshtml) - RazorIRToken - (91:4,5 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] + IntermediateToken - (91:4,5 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] CSharpCode - (132:4,46 [2] NullConditionalExpressions.cshtml) - RazorIRToken - (132:4,46 [2] NullConditionalExpressions.cshtml) - CSharp - \n + IntermediateToken - (132:4,46 [2] NullConditionalExpressions.cshtml) - CSharp - \n HtmlContent - (137:6,0 [2] NullConditionalExpressions.cshtml) - RazorIRToken - (137:6,0 [2] NullConditionalExpressions.cshtml) - Html - \n + IntermediateToken - (137:6,0 [2] NullConditionalExpressions.cshtml) - Html - \n CSharpExpression - (140:7,1 [13] NullConditionalExpressions.cshtml) - RazorIRToken - (140:7,1 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data + IntermediateToken - (140:7,1 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data HtmlContent - (153:7,14 [2] NullConditionalExpressions.cshtml) - RazorIRToken - (153:7,14 [2] NullConditionalExpressions.cshtml) - Html - \n + IntermediateToken - (153:7,14 [2] NullConditionalExpressions.cshtml) - Html - \n CSharpExpression - (156:8,1 [22] NullConditionalExpressions.cshtml) - RazorIRToken - (156:8,1 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] + IntermediateToken - (156:8,1 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] HtmlContent - (178:8,23 [2] NullConditionalExpressions.cshtml) - RazorIRToken - (178:8,23 [2] NullConditionalExpressions.cshtml) - Html - \n + IntermediateToken - (178:8,23 [2] NullConditionalExpressions.cshtml) - Html - \n CSharpExpression - (181:9,1 [26] NullConditionalExpressions.cshtml) - RazorIRToken - (181:9,1 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] + IntermediateToken - (181:9,1 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] HtmlContent - (207:9,27 [2] NullConditionalExpressions.cshtml) - RazorIRToken - (207:9,27 [2] NullConditionalExpressions.cshtml) - Html - \n + IntermediateToken - (207:9,27 [2] NullConditionalExpressions.cshtml) - Html - \n CSharpExpression - (210:10,1 [41] NullConditionalExpressions.cshtml) - RazorIRToken - (210:10,1 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] + IntermediateToken - (210:10,1 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.ir.txt index de7c1e352..3eb5515e6 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.ir.txt @@ -3,20 +3,20 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [16] OpenedIf.cshtml) - RazorIRToken - (0:0,0 [6] OpenedIf.cshtml) - Html - - RazorIRToken - (6:0,6 [2] OpenedIf.cshtml) - Html - \n - RazorIRToken - (8:1,0 [6] OpenedIf.cshtml) - Html - - RazorIRToken - (14:1,6 [2] OpenedIf.cshtml) - Html - \n + IntermediateToken - (0:0,0 [6] OpenedIf.cshtml) - Html - + IntermediateToken - (6:0,6 [2] OpenedIf.cshtml) - Html - \n + IntermediateToken - (8:1,0 [6] OpenedIf.cshtml) - Html - + IntermediateToken - (14:1,6 [2] OpenedIf.cshtml) - Html - \n CSharpCode - (17:2,1 [14] OpenedIf.cshtml) - RazorIRToken - (17:2,1 [14] OpenedIf.cshtml) - CSharp - if (true) { \n + IntermediateToken - (17:2,1 [14] OpenedIf.cshtml) - CSharp - if (true) { \n HtmlContent - (31:3,0 [7] OpenedIf.cshtml) - RazorIRToken - (31:3,0 [7] OpenedIf.cshtml) - Html - + IntermediateToken - (31:3,0 [7] OpenedIf.cshtml) - Html - CSharpCode - (38:3,7 [2] OpenedIf.cshtml) - RazorIRToken - (38:3,7 [2] OpenedIf.cshtml) - CSharp - \n + IntermediateToken - (38:3,7 [2] OpenedIf.cshtml) - CSharp - \n HtmlContent - (40:4,0 [7] OpenedIf.cshtml) - RazorIRToken - (40:4,0 [7] OpenedIf.cshtml) - Html - + IntermediateToken - (40:4,0 [7] OpenedIf.cshtml) - Html - CSharpCode - (47:4,7 [0] OpenedIf.cshtml) - RazorIRToken - (47:4,7 [0] OpenedIf.cshtml) - CSharp - + IntermediateToken - (47:4,7 [0] OpenedIf.cshtml) - CSharp - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.ir.txt index cdab6552c..3188bc2d8 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.ir.txt @@ -3,15 +3,15 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [16] OpenedIf.cshtml) - RazorIRToken - (0:0,0 [6] OpenedIf.cshtml) - Html - - RazorIRToken - (6:0,6 [2] OpenedIf.cshtml) - Html - \n - RazorIRToken - (8:1,0 [6] OpenedIf.cshtml) - Html - - RazorIRToken - (14:1,6 [2] OpenedIf.cshtml) - Html - \n + IntermediateToken - (0:0,0 [6] OpenedIf.cshtml) - Html - + IntermediateToken - (6:0,6 [2] OpenedIf.cshtml) - Html - \n + IntermediateToken - (8:1,0 [6] OpenedIf.cshtml) - Html - + IntermediateToken - (14:1,6 [2] OpenedIf.cshtml) - Html - \n CSharpCode - (17:2,1 [14] OpenedIf.cshtml) - RazorIRToken - (17:2,1 [14] OpenedIf.cshtml) - CSharp - if (true) { \n + IntermediateToken - (17:2,1 [14] OpenedIf.cshtml) - CSharp - if (true) { \n HtmlContent - (31:3,0 [16] OpenedIf.cshtml) - RazorIRToken - (31:3,0 [7] OpenedIf.cshtml) - Html - - RazorIRToken - (38:3,7 [2] OpenedIf.cshtml) - Html - \n - RazorIRToken - (40:4,0 [7] OpenedIf.cshtml) - Html - + IntermediateToken - (31:3,0 [7] OpenedIf.cshtml) - Html - + IntermediateToken - (38:3,7 [2] OpenedIf.cshtml) - Html - \n + IntermediateToken - (40:4,0 [7] OpenedIf.cshtml) - Html - CSharpCode - (47:4,7 [0] OpenedIf.cshtml) - RazorIRToken - (47:4,7 [0] OpenedIf.cshtml) - CSharp - + IntermediateToken - (47:4,7 [0] OpenedIf.cshtml) - CSharp - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.ir.txt index c8869b432..437aee768 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.ir.txt @@ -3,7 +3,7 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ParserError_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [31] ParserError.cshtml) - RazorIRToken - (2:0,2 [31] ParserError.cshtml) - CSharp - \n/*\nint i =10;\nint j =20;\n} + IntermediateToken - (2:0,2 [31] ParserError.cshtml) - CSharp - \n/*\nint i =10;\nint j =20;\n} diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.ir.txt index fae1d9668..be44526b4 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.ir.txt @@ -3,4 +3,4 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ParserError_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [31] ParserError.cshtml) - RazorIRToken - (2:0,2 [31] ParserError.cshtml) - CSharp - \n/*\nint i =10;\nint j =20;\n} + IntermediateToken - (2:0,2 [31] ParserError.cshtml) - CSharp - \n/*\nint i =10;\nint j =20;\n} diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.ir.txt index b82f8bf74..193c9563c 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.ir.txt @@ -4,123 +4,123 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] PrefixedAttributeTagHelpers.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper1 - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (31:0,31 [4] PrefixedAttributeTagHelpers.cshtml) - Html - \n\n + IntermediateToken - (31:0,31 [4] PrefixedAttributeTagHelpers.cshtml) - Html - \n\n CSharpCode - (37:2,2 [242] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (37:2,2 [242] PrefixedAttributeTagHelpers.cshtml) - CSharp - \n var literate = "or illiterate";\n var intDictionary = new Dictionary\n {\n { "three", 3 },\n };\n var stringDictionary = new SortedDictionary\n {\n { "name", "value" },\n };\n + IntermediateToken - (37:2,2 [242] PrefixedAttributeTagHelpers.cshtml) - CSharp - \n var literate = "or illiterate";\n var intDictionary = new Dictionary\n {\n { "three", 3 },\n };\n var stringDictionary = new SortedDictionary\n {\n { "name", "value" },\n };\n HtmlContent - (282:13,0 [49] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (282:13,0 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n - RazorIRToken - (284:14,0 [4] PrefixedAttributeTagHelpers.cshtml) - Html -
- RazorIRToken - (325:14,41 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (282:13,0 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (284:14,0 [4] PrefixedAttributeTagHelpers.cshtml) - Html -
+ IntermediateToken - (325:14,41 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n TagHelper - (331:15,4 [92] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper1 CreateTagHelper - - TestNamespace.InputTagHelper2 AddTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (344:15,17 [8] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (344:15,17 [8] PrefixedAttributeTagHelpers.cshtml) - Html - checkbox + IntermediateToken - (344:15,17 [8] PrefixedAttributeTagHelpers.cshtml) - Html - checkbox SetTagHelperProperty - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary + IntermediateToken - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary SetTagHelperProperty - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary + IntermediateToken - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary SetTagHelperProperty - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - string-dictionary - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - CSharp - stringDictionary + IntermediateToken - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - CSharp - stringDictionary SetTagHelperProperty - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - string-dictionary - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - CSharp - stringDictionary + IntermediateToken - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - CSharp - stringDictionary HtmlContent - (423:15,96 [6] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (423:15,96 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (423:15,96 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n TagHelper - (429:16,4 [103] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper1 CreateTagHelper - - TestNamespace.InputTagHelper2 AddTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (442:16,17 [8] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (442:16,17 [8] PrefixedAttributeTagHelpers.cshtml) - Html - password + IntermediateToken - (442:16,17 [8] PrefixedAttributeTagHelpers.cshtml) - Html - password SetTagHelperProperty - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary + IntermediateToken - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary SetTagHelperProperty - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary + IntermediateToken - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary SetTagHelperProperty - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-garlic - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 + IntermediateToken - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 SetTagHelperProperty - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-garlic - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 + IntermediateToken - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 SetTagHelperProperty - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - IntProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 + IntermediateToken - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 SetTagHelperProperty - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 + IntermediateToken - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 HtmlContent - (532:16,107 [6] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (532:16,107 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (532:16,107 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n TagHelper - (538:17,4 [257] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper1 CreateTagHelper - - TestNamespace.InputTagHelper2 AddTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (551:17,17 [5] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (551:17,17 [5] PrefixedAttributeTagHelpers.cshtml) - Html - radio + IntermediateToken - (551:17,17 [5] PrefixedAttributeTagHelpers.cshtml) - Html - radio SetTagHelperProperty - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - IntProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 + IntermediateToken - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 SetTagHelperProperty - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 + IntermediateToken - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 SetTagHelperProperty - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-salt - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 + IntermediateToken - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 SetTagHelperProperty - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-salt - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 + IntermediateToken - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 SetTagHelperProperty - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-pepper - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 98 + IntermediateToken - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 98 SetTagHelperProperty - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-pepper - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 98 + IntermediateToken - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 98 AddTagHelperHtmlAttribute - - int-prefix-salt - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (655:18,96 [1] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (655:18,96 [1] PrefixedAttributeTagHelpers.cshtml) - Html - 8 + IntermediateToken - (655:18,96 [1] PrefixedAttributeTagHelpers.cshtml) - Html - 8 SetTagHelperProperty - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - string-prefix-grabber - StringProperty - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - Html - string + IntermediateToken - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - Html - string SetTagHelperProperty - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - string-prefix-grabber - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - Html - string + IntermediateToken - (693:19,34 [6] PrefixedAttributeTagHelpers.cshtml) - Html - string SetTagHelperProperty - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - string-prefix-paprika - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - Html - another string + IntermediateToken - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - Html - another string SetTagHelperProperty - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - string-prefix-paprika - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - Html - another string + IntermediateToken - (724:19,65 [14] PrefixedAttributeTagHelpers.cshtml) - Html - another string SetTagHelperProperty - (773:20,32 [19] PrefixedAttributeTagHelpers.cshtml) - string-prefix-cumin - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (773:20,32 [9] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (773:20,32 [8] PrefixedAttributeTagHelpers.cshtml) - Html - literate - RazorIRToken - (781:20,40 [1] PrefixedAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (773:20,32 [8] PrefixedAttributeTagHelpers.cshtml) - Html - literate + IntermediateToken - (781:20,40 [1] PrefixedAttributeTagHelpers.cshtml) - Html - CSharpExpression - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - CSharp - literate + IntermediateToken - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - CSharp - literate HtmlContent - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - Html - ? + IntermediateToken - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - Html - ? SetTagHelperProperty - (773:20,32 [19] PrefixedAttributeTagHelpers.cshtml) - string-prefix-cumin - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (773:20,32 [9] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (773:20,32 [8] PrefixedAttributeTagHelpers.cshtml) - Html - literate - RazorIRToken - (781:20,40 [1] PrefixedAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (773:20,32 [8] PrefixedAttributeTagHelpers.cshtml) - Html - literate + IntermediateToken - (781:20,40 [1] PrefixedAttributeTagHelpers.cshtml) - Html - CSharpExpression - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - CSharp - literate + IntermediateToken - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - CSharp - literate HtmlContent - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - Html - ? + IntermediateToken - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - Html - ? HtmlContent - (795:20,54 [6] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (795:20,54 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (795:20,54 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n TagHelper - (801:21,4 [60] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper1 CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-value - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 + IntermediateToken - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 SetTagHelperProperty - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-value - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 + IntermediateToken - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 SetTagHelperProperty - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - string-prefix-thyme - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - Html - string + IntermediateToken - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - Html - string SetTagHelperProperty - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - string-prefix-thyme - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - Html - string + IntermediateToken - (851:21,54 [6] PrefixedAttributeTagHelpers.cshtml) - Html - string HtmlContent - (861:21,64 [8] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (861:21,64 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n - RazorIRToken - (863:22,0 [6] PrefixedAttributeTagHelpers.cshtml) - Html -
+ IntermediateToken - (861:21,64 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (863:22,0 [6] PrefixedAttributeTagHelpers.cshtml) - Html -
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.ir.txt index a2b87d923..577af5998 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.ir.txt @@ -11,66 +11,66 @@ Document - DeclareTagHelperFields - - TestNamespace.InputTagHelper1 - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (33:1,0 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n CSharpCode - (37:2,2 [242] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (37:2,2 [242] PrefixedAttributeTagHelpers.cshtml) - CSharp - \n var literate = "or illiterate";\n var intDictionary = new Dictionary\n {\n { "three", 3 },\n };\n var stringDictionary = new SortedDictionary\n {\n { "name", "value" },\n };\n + IntermediateToken - (37:2,2 [242] PrefixedAttributeTagHelpers.cshtml) - CSharp - \n var literate = "or illiterate";\n var intDictionary = new Dictionary\n {\n { "three", 3 },\n };\n var stringDictionary = new SortedDictionary\n {\n { "name", "value" },\n };\n HtmlContent - (282:13,0 [49] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (282:13,0 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n - RazorIRToken - (284:14,0 [4] PrefixedAttributeTagHelpers.cshtml) - Html -
- RazorIRToken - (325:14,41 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (282:13,0 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (284:14,0 [4] PrefixedAttributeTagHelpers.cshtml) - Html -
+ IntermediateToken - (325:14,41 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n TagHelper - (331:15,4 [92] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper1 CreateTagHelper - - TestNamespace.InputTagHelper2 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 SetTagHelperProperty - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary + IntermediateToken - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary SetTagHelperProperty - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary + IntermediateToken - (370:15,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary SetTagHelperProperty - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - string-dictionary - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - CSharp - stringDictionary + IntermediateToken - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - CSharp - stringDictionary SetTagHelperProperty - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - string-dictionary - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - CSharp - stringDictionary + IntermediateToken - (404:15,77 [16] PrefixedAttributeTagHelpers.cshtml) - CSharp - stringDictionary HtmlContent - (423:15,96 [6] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (423:15,96 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (423:15,96 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n TagHelper - (429:16,4 [103] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper1 CreateTagHelper - - TestNamespace.InputTagHelper2 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 SetTagHelperProperty - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary + IntermediateToken - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary SetTagHelperProperty - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - int-dictionary - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary + IntermediateToken - (468:16,43 [13] PrefixedAttributeTagHelpers.cshtml) - CSharp - intDictionary SetTagHelperProperty - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-garlic - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 + IntermediateToken - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 SetTagHelperProperty - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-garlic - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 + IntermediateToken - (502:16,77 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 SetTagHelperProperty - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - IntProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 + IntermediateToken - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 SetTagHelperProperty - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 + IntermediateToken - (526:16,101 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 HtmlContent - (532:16,107 [6] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (532:16,107 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (532:16,107 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n TagHelper - (538:17,4 [257] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper1 CreateTagHelper - - TestNamespace.InputTagHelper2 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 SetTagHelperProperty - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - IntProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 + IntermediateToken - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 SetTagHelperProperty - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-grabber - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 + IntermediateToken - (590:18,31 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 42 SetTagHelperProperty - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-salt - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 + IntermediateToken - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 SetTagHelperProperty - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-salt - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 + IntermediateToken - (611:18,52 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 SetTagHelperProperty - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-pepper - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 98 + IntermediateToken - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 98 SetTagHelperProperty - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-pepper - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 98 + IntermediateToken - (634:18,75 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 98 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 SetPreallocatedTagHelperProperty - - __tagHelperAttribute_4 - string-prefix-grabber - StringProperty SetPreallocatedTagHelperProperty - - __tagHelperAttribute_4 - string-prefix-grabber - StringDictionaryProperty @@ -78,32 +78,32 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_5 - string-prefix-paprika - StringDictionaryProperty SetTagHelperProperty - (773:20,32 [19] PrefixedAttributeTagHelpers.cshtml) - string-prefix-cumin - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (773:20,32 [9] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (773:20,32 [8] PrefixedAttributeTagHelpers.cshtml) - Html - literate - RazorIRToken - (781:20,40 [1] PrefixedAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (773:20,32 [8] PrefixedAttributeTagHelpers.cshtml) - Html - literate + IntermediateToken - (781:20,40 [1] PrefixedAttributeTagHelpers.cshtml) - Html - CSharpExpression - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - CSharp - literate + IntermediateToken - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - CSharp - literate HtmlContent - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - Html - ? + IntermediateToken - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - Html - ? SetTagHelperProperty - (773:20,32 [19] PrefixedAttributeTagHelpers.cshtml) - string-prefix-cumin - StringDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (773:20,32 [9] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (773:20,32 [8] PrefixedAttributeTagHelpers.cshtml) - Html - literate - RazorIRToken - (781:20,40 [1] PrefixedAttributeTagHelpers.cshtml) - Html - + IntermediateToken - (773:20,32 [8] PrefixedAttributeTagHelpers.cshtml) - Html - literate + IntermediateToken - (781:20,40 [1] PrefixedAttributeTagHelpers.cshtml) - Html - CSharpExpression - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - CSharp - literate + IntermediateToken - (783:20,42 [8] PrefixedAttributeTagHelpers.cshtml) - CSharp - literate HtmlContent - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - Html - ? + IntermediateToken - (791:20,50 [1] PrefixedAttributeTagHelpers.cshtml) - Html - ? HtmlContent - (795:20,54 [6] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (795:20,54 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (795:20,54 [6] PrefixedAttributeTagHelpers.cshtml) - Html - \n TagHelper - (801:21,4 [60] PrefixedAttributeTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper1 CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-value - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 + IntermediateToken - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 SetTagHelperProperty - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - int-prefix-value - IntDictionaryProperty - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 + IntermediateToken - (826:21,29 [2] PrefixedAttributeTagHelpers.cshtml) - CSharp - 37 SetPreallocatedTagHelperProperty - - __tagHelperAttribute_6 - string-prefix-thyme - StringDictionaryProperty SetPreallocatedTagHelperProperty - - __tagHelperAttribute_6 - string-prefix-thyme - StringDictionaryProperty HtmlContent - (861:21,64 [8] PrefixedAttributeTagHelpers.cshtml) - RazorIRToken - (861:21,64 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n - RazorIRToken - (863:22,0 [6] PrefixedAttributeTagHelpers.cshtml) - Html -
+ IntermediateToken - (861:21,64 [2] PrefixedAttributeTagHelpers.cshtml) - Html - \n + IntermediateToken - (863:22,0 [6] PrefixedAttributeTagHelpers.cshtml) - Html -
diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.ir.txt index 813f48d0e..78c2c739d 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.ir.txt @@ -3,36 +3,36 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorComments_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (36:0,36 [17] RazorComments.cshtml) - RazorIRToken - (36:0,36 [2] RazorComments.cshtml) - Html - \n - RazorIRToken - (38:1,0 [3] RazorComments.cshtml) - Html -

- RazorIRToken - (41:1,3 [12] RazorComments.cshtml) - Html - This should + IntermediateToken - (36:0,36 [2] RazorComments.cshtml) - Html - \n + IntermediateToken - (38:1,0 [3] RazorComments.cshtml) - Html -

+ IntermediateToken - (41:1,3 [12] RazorComments.cshtml) - Html - This should HtmlContent - (62:1,24 [17] RazorComments.cshtml) - RazorIRToken - (62:1,24 [9] RazorComments.cshtml) - Html - be shown - RazorIRToken - (71:1,33 [4] RazorComments.cshtml) - Html -

- RazorIRToken - (75:1,37 [4] RazorComments.cshtml) - Html - \n\n + IntermediateToken - (62:1,24 [9] RazorComments.cshtml) - Html - be shown + IntermediateToken - (71:1,33 [4] RazorComments.cshtml) - Html -

+ IntermediateToken - (75:1,37 [4] RazorComments.cshtml) - Html - \n\n CSharpCode - (81:3,2 [6] RazorComments.cshtml) - RazorIRToken - (81:3,2 [6] RazorComments.cshtml) - CSharp - \n + IntermediateToken - (81:3,2 [6] RazorComments.cshtml) - CSharp - \n CSharpCode - (122:4,39 [22] RazorComments.cshtml) - RazorIRToken - (122:4,39 [22] RazorComments.cshtml) - CSharp - \n Exception foo = + IntermediateToken - (122:4,39 [22] RazorComments.cshtml) - CSharp - \n Exception foo = CSharpCode - (173:5,49 [58] RazorComments.cshtml) - RazorIRToken - (173:5,49 [58] RazorComments.cshtml) - CSharp - null;\n if(foo != null) {\n throw foo;\n }\n + IntermediateToken - (173:5,49 [58] RazorComments.cshtml) - CSharp - null;\n if(foo != null) {\n throw foo;\n }\n HtmlContent - (234:10,0 [2] RazorComments.cshtml) - RazorIRToken - (234:10,0 [2] RazorComments.cshtml) - Html - \n + IntermediateToken - (234:10,0 [2] RazorComments.cshtml) - Html - \n CSharpCode - (238:11,2 [24] RazorComments.cshtml) - RazorIRToken - (238:11,2 [24] RazorComments.cshtml) - CSharp - var bar = "@* bar *@"; + IntermediateToken - (238:11,2 [24] RazorComments.cshtml) - CSharp - var bar = "@* bar *@"; HtmlContent - (265:12,0 [44] RazorComments.cshtml) - RazorIRToken - (265:12,0 [3] RazorComments.cshtml) - Html -

- RazorIRToken - (268:12,3 [41] RazorComments.cshtml) - Html - But this should show the comment syntax: + IntermediateToken - (265:12,0 [3] RazorComments.cshtml) - Html -

+ IntermediateToken - (268:12,3 [41] RazorComments.cshtml) - Html - But this should show the comment syntax: CSharpExpression - (310:12,45 [3] RazorComments.cshtml) - RazorIRToken - (310:12,45 [3] RazorComments.cshtml) - CSharp - bar + IntermediateToken - (310:12,45 [3] RazorComments.cshtml) - CSharp - bar HtmlContent - (313:12,48 [8] RazorComments.cshtml) - RazorIRToken - (313:12,48 [4] RazorComments.cshtml) - Html -

- RazorIRToken - (317:12,52 [4] RazorComments.cshtml) - Html - \n\n + IntermediateToken - (313:12,48 [4] RazorComments.cshtml) - Html -

+ IntermediateToken - (317:12,52 [4] RazorComments.cshtml) - Html - \n\n CSharpExpression - (323:14,2 [2] RazorComments.cshtml) - RazorIRToken - (323:14,2 [1] RazorComments.cshtml) - CSharp - a - RazorIRToken - (328:14,7 [1] RazorComments.cshtml) - CSharp - b + IntermediateToken - (323:14,2 [1] RazorComments.cshtml) - CSharp - a + IntermediateToken - (328:14,7 [1] RazorComments.cshtml) - CSharp - b HtmlContent - (330:14,9 [2] RazorComments.cshtml) - RazorIRToken - (330:14,9 [2] RazorComments.cshtml) - Html - \n + IntermediateToken - (330:14,9 [2] RazorComments.cshtml) - Html - \n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.ir.txt index 21d95f9d5..e7adfcb2c 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.ir.txt @@ -3,33 +3,33 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorComments_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (36:0,36 [17] RazorComments.cshtml) - RazorIRToken - (36:0,36 [2] RazorComments.cshtml) - Html - \n - RazorIRToken - (38:1,0 [3] RazorComments.cshtml) - Html -

- RazorIRToken - (41:1,3 [12] RazorComments.cshtml) - Html - This should + IntermediateToken - (36:0,36 [2] RazorComments.cshtml) - Html - \n + IntermediateToken - (38:1,0 [3] RazorComments.cshtml) - Html -

+ IntermediateToken - (41:1,3 [12] RazorComments.cshtml) - Html - This should HtmlContent - (62:1,24 [17] RazorComments.cshtml) - RazorIRToken - (62:1,24 [9] RazorComments.cshtml) - Html - be shown - RazorIRToken - (71:1,33 [4] RazorComments.cshtml) - Html -

- RazorIRToken - (75:1,37 [4] RazorComments.cshtml) - Html - \n\n + IntermediateToken - (62:1,24 [9] RazorComments.cshtml) - Html - be shown + IntermediateToken - (71:1,33 [4] RazorComments.cshtml) - Html -

+ IntermediateToken - (75:1,37 [4] RazorComments.cshtml) - Html - \n\n CSharpCode - (81:3,2 [6] RazorComments.cshtml) - RazorIRToken - (81:3,2 [6] RazorComments.cshtml) - CSharp - \n + IntermediateToken - (81:3,2 [6] RazorComments.cshtml) - CSharp - \n CSharpCode - (122:4,39 [22] RazorComments.cshtml) - RazorIRToken - (122:4,39 [22] RazorComments.cshtml) - CSharp - \n Exception foo = + IntermediateToken - (122:4,39 [22] RazorComments.cshtml) - CSharp - \n Exception foo = CSharpCode - (173:5,49 [58] RazorComments.cshtml) - RazorIRToken - (173:5,49 [58] RazorComments.cshtml) - CSharp - null;\n if(foo != null) {\n throw foo;\n }\n + IntermediateToken - (173:5,49 [58] RazorComments.cshtml) - CSharp - null;\n if(foo != null) {\n throw foo;\n }\n HtmlContent - (234:10,0 [2] RazorComments.cshtml) - RazorIRToken - (234:10,0 [2] RazorComments.cshtml) - Html - \n + IntermediateToken - (234:10,0 [2] RazorComments.cshtml) - Html - \n CSharpCode - (238:11,2 [24] RazorComments.cshtml) - RazorIRToken - (238:11,2 [24] RazorComments.cshtml) - CSharp - var bar = "@* bar *@"; + IntermediateToken - (238:11,2 [24] RazorComments.cshtml) - CSharp - var bar = "@* bar *@"; HtmlContent - (265:12,0 [44] RazorComments.cshtml) - RazorIRToken - (265:12,0 [3] RazorComments.cshtml) - Html -

- RazorIRToken - (268:12,3 [41] RazorComments.cshtml) - Html - But this should show the comment syntax: + IntermediateToken - (265:12,0 [3] RazorComments.cshtml) - Html -

+ IntermediateToken - (268:12,3 [41] RazorComments.cshtml) - Html - But this should show the comment syntax: CSharpExpression - (310:12,45 [3] RazorComments.cshtml) - RazorIRToken - (310:12,45 [3] RazorComments.cshtml) - CSharp - bar + IntermediateToken - (310:12,45 [3] RazorComments.cshtml) - CSharp - bar HtmlContent - (313:12,48 [8] RazorComments.cshtml) - RazorIRToken - (313:12,48 [4] RazorComments.cshtml) - Html -

- RazorIRToken - (317:12,52 [4] RazorComments.cshtml) - Html - \n\n + IntermediateToken - (313:12,48 [4] RazorComments.cshtml) - Html -

+ IntermediateToken - (317:12,52 [4] RazorComments.cshtml) - Html - \n\n CSharpExpression - (323:14,2 [2] RazorComments.cshtml) - RazorIRToken - (323:14,2 [1] RazorComments.cshtml) - CSharp - a - RazorIRToken - (328:14,7 [1] RazorComments.cshtml) - CSharp - b + IntermediateToken - (323:14,2 [1] RazorComments.cshtml) - CSharp - a + IntermediateToken - (328:14,7 [1] RazorComments.cshtml) - CSharp - b HtmlContent - (330:14,9 [2] RazorComments.cshtml) - RazorIRToken - (330:14,9 [2] RazorComments.cshtml) - Html - \n + IntermediateToken - (330:14,9 [2] RazorComments.cshtml) - Html - \n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.ir.txt index 678f5c8fc..d75209c3e 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.ir.txt @@ -4,7 +4,7 @@ Document - DesignTimeDirective - DirectiveToken - (17:0,17 [15] RemoveTagHelperDirective.cshtml) - *, TestAssembly CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (32:0,32 [2] RemoveTagHelperDirective.cshtml) - RazorIRToken - (32:0,32 [2] RemoveTagHelperDirective.cshtml) - Html - \n + IntermediateToken - (32:0,32 [2] RemoveTagHelperDirective.cshtml) - Html - \n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.ir.txt index fffbd086a..1eb87340d 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.ir.txt @@ -6,50 +6,50 @@ Document - DirectiveToken - (172:10,9 [8] Sections.cshtml) - Section1 DirectiveToken - (235:14,9 [15] Sections.cshtml) - NestedDelegates CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [44] Sections.cshtml) - RazorIRToken - (2:0,2 [44] Sections.cshtml) - CSharp - \n Layout = "_SectionTestLayout.cshtml"\n + IntermediateToken - (2:0,2 [44] Sections.cshtml) - CSharp - \n Layout = "_SectionTestLayout.cshtml"\n HtmlContent - (49:3,0 [31] Sections.cshtml) - RazorIRToken - (49:3,0 [2] Sections.cshtml) - Html - \n - RazorIRToken - (51:4,0 [5] Sections.cshtml) - Html -
- RazorIRToken - (56:4,5 [24] Sections.cshtml) - Html - This is in the Body>\n\n + IntermediateToken - (49:3,0 [2] Sections.cshtml) - Html - \n + IntermediateToken - (51:4,0 [5] Sections.cshtml) - Html -
+ IntermediateToken - (56:4,5 [24] Sections.cshtml) - Html - This is in the Body>\n\n Section - - Section2 HtmlContent - (99:6,19 [10] Sections.cshtml) - RazorIRToken - (99:6,19 [6] Sections.cshtml) - Html - \n - RazorIRToken - (105:7,4 [4] Sections.cshtml) - Html -
- RazorIRToken - (130:7,29 [20] Sections.cshtml) - Html - This is in Section 2 - RazorIRToken - (150:7,49 [6] Sections.cshtml) - Html -
- RazorIRToken - (156:7,55 [2] Sections.cshtml) - Html - \n + IntermediateToken - (129:7,28 [1] Sections.cshtml) - Html - > + IntermediateToken - (130:7,29 [20] Sections.cshtml) - Html - This is in Section 2 + IntermediateToken - (150:7,49 [6] Sections.cshtml) - Html -
+ IntermediateToken - (156:7,55 [2] Sections.cshtml) - Html - \n HtmlContent - (159:8,1 [4] Sections.cshtml) - RazorIRToken - (159:8,1 [4] Sections.cshtml) - Html - \n\n + IntermediateToken - (159:8,1 [4] Sections.cshtml) - Html - \n\n Section - - Section1 HtmlContent - (182:10,19 [39] Sections.cshtml) - RazorIRToken - (182:10,19 [6] Sections.cshtml) - Html - \n - RazorIRToken - (188:11,4 [5] Sections.cshtml) - Html -
- RazorIRToken - (193:11,9 [20] Sections.cshtml) - Html - This is in Section 1 - RazorIRToken - (213:11,29 [6] Sections.cshtml) - Html -
- RazorIRToken - (219:11,35 [2] Sections.cshtml) - Html - \n + IntermediateToken - (182:10,19 [6] Sections.cshtml) - Html - \n + IntermediateToken - (188:11,4 [5] Sections.cshtml) - Html -
+ IntermediateToken - (193:11,9 [20] Sections.cshtml) - Html - This is in Section 1 + IntermediateToken - (213:11,29 [6] Sections.cshtml) - Html -
+ IntermediateToken - (219:11,35 [2] Sections.cshtml) - Html - \n HtmlContent - (222:12,1 [4] Sections.cshtml) - RazorIRToken - (222:12,1 [4] Sections.cshtml) - Html - \n\n + IntermediateToken - (222:12,1 [4] Sections.cshtml) - Html - \n\n Section - - NestedDelegates HtmlContent - (252:14,26 [6] Sections.cshtml) - RazorIRToken - (252:14,26 [6] Sections.cshtml) - Html - \n + IntermediateToken - (252:14,26 [6] Sections.cshtml) - Html - \n CSharpCode - (260:15,6 [27] Sections.cshtml) - RazorIRToken - (260:15,6 [27] Sections.cshtml) - CSharp - Func f = + IntermediateToken - (260:15,6 [27] Sections.cshtml) - CSharp - Func f = Template - (288:15,34 [17] Sections.cshtml) HtmlContent - (288:15,34 [6] Sections.cshtml) - RazorIRToken - (288:15,34 [6] Sections.cshtml) - Html - + IntermediateToken - (288:15,34 [6] Sections.cshtml) - Html - CSharpExpression - (295:15,41 [4] Sections.cshtml) - RazorIRToken - (295:15,41 [4] Sections.cshtml) - CSharp - item + IntermediateToken - (295:15,41 [4] Sections.cshtml) - CSharp - item HtmlContent - (299:15,45 [7] Sections.cshtml) - RazorIRToken - (299:15,45 [7] Sections.cshtml) - Html - + IntermediateToken - (299:15,45 [7] Sections.cshtml) - Html - CSharpCode - (306:15,52 [2] Sections.cshtml) - RazorIRToken - (306:15,52 [2] Sections.cshtml) - CSharp - ; + IntermediateToken - (306:15,52 [2] Sections.cshtml) - CSharp - ; diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.ir.txt index a8bf6750d..598609821 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.ir.txt @@ -3,49 +3,49 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [44] Sections.cshtml) - RazorIRToken - (2:0,2 [44] Sections.cshtml) - CSharp - \n Layout = "_SectionTestLayout.cshtml"\n + IntermediateToken - (2:0,2 [44] Sections.cshtml) - CSharp - \n Layout = "_SectionTestLayout.cshtml"\n HtmlContent - (49:3,0 [31] Sections.cshtml) - RazorIRToken - (49:3,0 [2] Sections.cshtml) - Html - \n - RazorIRToken - (51:4,0 [5] Sections.cshtml) - Html -
- RazorIRToken - (56:4,5 [24] Sections.cshtml) - Html - This is in the Body>\n\n + IntermediateToken - (49:3,0 [2] Sections.cshtml) - Html - \n + IntermediateToken - (51:4,0 [5] Sections.cshtml) - Html -
+ IntermediateToken - (56:4,5 [24] Sections.cshtml) - Html - This is in the Body>\n\n Section - - Section2 HtmlContent - (99:6,19 [10] Sections.cshtml) - RazorIRToken - (99:6,19 [6] Sections.cshtml) - Html - \n - RazorIRToken - (105:7,4 [4] Sections.cshtml) - Html -
- RazorIRToken - (130:7,29 [20] Sections.cshtml) - Html - This is in Section 2 - RazorIRToken - (150:7,49 [6] Sections.cshtml) - Html -
- RazorIRToken - (156:7,55 [2] Sections.cshtml) - Html - \n + IntermediateToken - (129:7,28 [1] Sections.cshtml) - Html - > + IntermediateToken - (130:7,29 [20] Sections.cshtml) - Html - This is in Section 2 + IntermediateToken - (150:7,49 [6] Sections.cshtml) - Html -
+ IntermediateToken - (156:7,55 [2] Sections.cshtml) - Html - \n HtmlContent - (161:9,0 [2] Sections.cshtml) - RazorIRToken - (161:9,0 [2] Sections.cshtml) - Html - \n + IntermediateToken - (161:9,0 [2] Sections.cshtml) - Html - \n Section - - Section1 HtmlContent - (182:10,19 [39] Sections.cshtml) - RazorIRToken - (182:10,19 [6] Sections.cshtml) - Html - \n - RazorIRToken - (188:11,4 [5] Sections.cshtml) - Html -
- RazorIRToken - (193:11,9 [20] Sections.cshtml) - Html - This is in Section 1 - RazorIRToken - (213:11,29 [6] Sections.cshtml) - Html -
- RazorIRToken - (219:11,35 [2] Sections.cshtml) - Html - \n + IntermediateToken - (182:10,19 [6] Sections.cshtml) - Html - \n + IntermediateToken - (188:11,4 [5] Sections.cshtml) - Html -
+ IntermediateToken - (193:11,9 [20] Sections.cshtml) - Html - This is in Section 1 + IntermediateToken - (213:11,29 [6] Sections.cshtml) - Html -
+ IntermediateToken - (219:11,35 [2] Sections.cshtml) - Html - \n HtmlContent - (224:13,0 [2] Sections.cshtml) - RazorIRToken - (224:13,0 [2] Sections.cshtml) - Html - \n + IntermediateToken - (224:13,0 [2] Sections.cshtml) - Html - \n Section - - NestedDelegates HtmlContent - (252:14,26 [2] Sections.cshtml) - RazorIRToken - (252:14,26 [2] Sections.cshtml) - Html - \n + IntermediateToken - (252:14,26 [2] Sections.cshtml) - Html - \n CSharpCode - (254:15,0 [4] Sections.cshtml) - RazorIRToken - (254:15,0 [4] Sections.cshtml) - CSharp - + IntermediateToken - (254:15,0 [4] Sections.cshtml) - CSharp - CSharpCode - (260:15,6 [27] Sections.cshtml) - RazorIRToken - (260:15,6 [27] Sections.cshtml) - CSharp - Func f = + IntermediateToken - (260:15,6 [27] Sections.cshtml) - CSharp - Func f = Template - (288:15,34 [17] Sections.cshtml) HtmlContent - (288:15,34 [6] Sections.cshtml) - RazorIRToken - (288:15,34 [6] Sections.cshtml) - Html - + IntermediateToken - (288:15,34 [6] Sections.cshtml) - Html - CSharpExpression - (295:15,41 [4] Sections.cshtml) - RazorIRToken - (295:15,41 [4] Sections.cshtml) - CSharp - item + IntermediateToken - (295:15,41 [4] Sections.cshtml) - CSharp - item HtmlContent - (299:15,45 [7] Sections.cshtml) - RazorIRToken - (299:15,45 [7] Sections.cshtml) - Html - + IntermediateToken - (299:15,45 [7] Sections.cshtml) - Html - CSharpCode - (306:15,52 [2] Sections.cshtml) - RazorIRToken - (306:15,52 [2] Sections.cshtml) - CSharp - ; + IntermediateToken - (306:15,52 [2] Sections.cshtml) - CSharp - ; diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.ir.txt index e30e5f725..a60cf0636 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.ir.txt @@ -4,26 +4,26 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [15] SimpleTagHelpers.cshtml) - *, TestAssembly CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [27] SimpleTagHelpers.cshtml) - RazorIRToken - (29:0,29 [2] SimpleTagHelpers.cshtml) - Html - \n - RazorIRToken - (31:1,0 [3] SimpleTagHelpers.cshtml) - Html -

- RazorIRToken - (34:1,3 [4] SimpleTagHelpers.cshtml) - Html - Hola - RazorIRToken - (38:1,7 [4] SimpleTagHelpers.cshtml) - Html -

- RazorIRToken - (42:1,11 [2] SimpleTagHelpers.cshtml) - Html - \n - RazorIRToken - (44:2,0 [6] SimpleTagHelpers.cshtml) - Html -
- RazorIRToken - (50:2,6 [6] SimpleTagHelpers.cshtml) - Html - \n + IntermediateToken - (29:0,29 [2] SimpleTagHelpers.cshtml) - Html - \n + IntermediateToken - (31:1,0 [3] SimpleTagHelpers.cshtml) - Html -

+ IntermediateToken - (34:1,3 [4] SimpleTagHelpers.cshtml) - Html - Hola + IntermediateToken - (38:1,7 [4] SimpleTagHelpers.cshtml) - Html -

+ IntermediateToken - (42:1,11 [2] SimpleTagHelpers.cshtml) - Html - \n + IntermediateToken - (44:2,0 [6] SimpleTagHelpers.cshtml) - Html - + IntermediateToken - (50:2,6 [6] SimpleTagHelpers.cshtml) - Html - \n TagHelper - (56:3,4 [35] SimpleTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper SetTagHelperProperty - (70:3,18 [5] SimpleTagHelpers.cshtml) - value - FooProp - HtmlAttributeValueStyle.SingleQuotes HtmlContent - (70:3,18 [5] SimpleTagHelpers.cshtml) - RazorIRToken - (70:3,18 [5] SimpleTagHelpers.cshtml) - Html - Hello + IntermediateToken - (70:3,18 [5] SimpleTagHelpers.cshtml) - Html - Hello AddTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.SingleQuotes HtmlContent - (83:3,31 [4] SimpleTagHelpers.cshtml) - RazorIRToken - (83:3,31 [4] SimpleTagHelpers.cshtml) - Html - text + IntermediateToken - (83:3,31 [4] SimpleTagHelpers.cshtml) - Html - text HtmlContent - (91:3,39 [9] SimpleTagHelpers.cshtml) - RazorIRToken - (91:3,39 [2] SimpleTagHelpers.cshtml) - Html - \n - RazorIRToken - (93:4,0 [7] SimpleTagHelpers.cshtml) - Html -
+ IntermediateToken - (91:3,39 [2] SimpleTagHelpers.cshtml) - Html - \n + IntermediateToken - (93:4,0 [7] SimpleTagHelpers.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_Runtime.ir.txt index a91bb487e..cfd3dc881 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_Runtime.ir.txt @@ -6,17 +6,17 @@ Document - DeclareTagHelperFields - - InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [25] SimpleTagHelpers.cshtml) - RazorIRToken - (31:1,0 [3] SimpleTagHelpers.cshtml) - Html -

- RazorIRToken - (34:1,3 [4] SimpleTagHelpers.cshtml) - Html - Hola - RazorIRToken - (38:1,7 [4] SimpleTagHelpers.cshtml) - Html -

- RazorIRToken - (42:1,11 [2] SimpleTagHelpers.cshtml) - Html - \n - RazorIRToken - (44:2,0 [6] SimpleTagHelpers.cshtml) - Html -
- RazorIRToken - (50:2,6 [6] SimpleTagHelpers.cshtml) - Html - \n + IntermediateToken - (31:1,0 [3] SimpleTagHelpers.cshtml) - Html -

+ IntermediateToken - (34:1,3 [4] SimpleTagHelpers.cshtml) - Html - Hola + IntermediateToken - (38:1,7 [4] SimpleTagHelpers.cshtml) - Html -

+ IntermediateToken - (42:1,11 [2] SimpleTagHelpers.cshtml) - Html - \n + IntermediateToken - (44:2,0 [6] SimpleTagHelpers.cshtml) - Html - + IntermediateToken - (50:2,6 [6] SimpleTagHelpers.cshtml) - Html - \n TagHelper - (56:3,4 [35] SimpleTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - value - FooProp AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 HtmlContent - (91:3,39 [9] SimpleTagHelpers.cshtml) - RazorIRToken - (91:3,39 [2] SimpleTagHelpers.cshtml) - Html - \n - RazorIRToken - (93:4,0 [7] SimpleTagHelpers.cshtml) - Html -
+ IntermediateToken - (91:3,39 [2] SimpleTagHelpers.cshtml) - Html - \n + IntermediateToken - (93:4,0 [7] SimpleTagHelpers.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.ir.txt index be53ea5bc..d14c79734 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.ir.txt @@ -3,12 +3,12 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleUnspacedIf_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (1:0,1 [15] SimpleUnspacedIf.cshtml) - RazorIRToken - (1:0,1 [15] SimpleUnspacedIf.cshtml) - CSharp - if (true)\n{\n + IntermediateToken - (1:0,1 [15] SimpleUnspacedIf.cshtml) - CSharp - if (true)\n{\n HtmlContent - (16:2,1 [11] SimpleUnspacedIf.cshtml) - RazorIRToken - (16:2,1 [5] SimpleUnspacedIf.cshtml) - Html -
- RazorIRToken - (21:2,6 [6] SimpleUnspacedIf.cshtml) - Html -
+ IntermediateToken - (16:2,1 [5] SimpleUnspacedIf.cshtml) - Html -
+ IntermediateToken - (21:2,6 [6] SimpleUnspacedIf.cshtml) - Html -
CSharpCode - (27:2,12 [3] SimpleUnspacedIf.cshtml) - RazorIRToken - (27:2,12 [3] SimpleUnspacedIf.cshtml) - CSharp - \n} + IntermediateToken - (27:2,12 [3] SimpleUnspacedIf.cshtml) - CSharp - \n} diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.ir.txt index 0ad3d1c43..bed8b2be9 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.ir.txt @@ -3,11 +3,11 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleUnspacedIf_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (1:0,1 [14] SimpleUnspacedIf.cshtml) - RazorIRToken - (1:0,1 [14] SimpleUnspacedIf.cshtml) - CSharp - if (true)\n{\n + IntermediateToken - (1:0,1 [14] SimpleUnspacedIf.cshtml) - CSharp - if (true)\n{\n HtmlContent - (15:2,0 [14] SimpleUnspacedIf.cshtml) - RazorIRToken - (15:2,0 [1] SimpleUnspacedIf.cshtml) - Html - - RazorIRToken - (16:2,1 [5] SimpleUnspacedIf.cshtml) - Html -
- RazorIRToken - (21:2,6 [6] SimpleUnspacedIf.cshtml) - Html -
- RazorIRToken - (27:2,12 [2] SimpleUnspacedIf.cshtml) - Html - \n + IntermediateToken - (15:2,0 [1] SimpleUnspacedIf.cshtml) - Html - + IntermediateToken - (16:2,1 [5] SimpleUnspacedIf.cshtml) - Html -
+ IntermediateToken - (21:2,6 [6] SimpleUnspacedIf.cshtml) - Html -
+ IntermediateToken - (27:2,12 [2] SimpleUnspacedIf.cshtml) - Html - \n CSharpCode - (29:3,0 [1] SimpleUnspacedIf.cshtml) - RazorIRToken - (29:3,0 [1] SimpleUnspacedIf.cshtml) - CSharp - } + IntermediateToken - (29:3,0 [1] SimpleUnspacedIf.cshtml) - CSharp - } diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.ir.txt index 02bc61124..18507c272 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.ir.txt @@ -4,18 +4,18 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - RazorIRToken - (31:0,31 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - \n\n + IntermediateToken - (31:0,31 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - \n\n TagHelper - (35:2,0 [53] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (73:3,34 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - RazorIRToken - (73:3,34 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - Body of Tag + IntermediateToken - (73:3,34 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - Body of Tag CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (49:3,10 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - RazorIRToken - (49:3,10 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - Hello World + IntermediateToken - (49:3,10 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - Hello World SetTagHelperProperty - (67:3,28 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (67:3,28 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - CSharp - 1337 + IntermediateToken - (67:3,28 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - CSharp - 1337 diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.ir.txt index 80731a11a..72ac557a9 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.ir.txt @@ -5,12 +5,12 @@ Document - DeclareTagHelperFields - - TestNamespace.PTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - RazorIRToken - (33:1,0 [2] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - \n TagHelper - (35:2,0 [53] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (73:3,34 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - RazorIRToken - (73:3,34 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - Body of Tag + IntermediateToken - (73:3,34 [11] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - Html - Body of Tag CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 SetTagHelperProperty - (67:3,28 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (67:3,28 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - CSharp - 1337 + IntermediateToken - (67:3,28 [4] SingleTagHelperWithNewlineBeforeAttributes.cshtml) - CSharp - 1337 diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.ir.txt index dd29ca6b1..f8afd2447 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.ir.txt @@ -4,18 +4,18 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] SingleTagHelper.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] SingleTagHelper.cshtml) - RazorIRToken - (31:0,31 [4] SingleTagHelper.cshtml) - Html - \n\n + IntermediateToken - (31:0,31 [4] SingleTagHelper.cshtml) - Html - \n\n TagHelper - (35:2,0 [49] SingleTagHelper.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (69:2,34 [11] SingleTagHelper.cshtml) - RazorIRToken - (69:2,34 [11] SingleTagHelper.cshtml) - Html - Body of Tag + IntermediateToken - (69:2,34 [11] SingleTagHelper.cshtml) - Html - Body of Tag CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (45:2,10 [11] SingleTagHelper.cshtml) - RazorIRToken - (45:2,10 [11] SingleTagHelper.cshtml) - Html - Hello World + IntermediateToken - (45:2,10 [11] SingleTagHelper.cshtml) - Html - Hello World SetTagHelperProperty - (63:2,28 [4] SingleTagHelper.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (63:2,28 [4] SingleTagHelper.cshtml) - CSharp - 1337 + IntermediateToken - (63:2,28 [4] SingleTagHelper.cshtml) - CSharp - 1337 diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.ir.txt index b069627df..2caf21d8d 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.ir.txt @@ -5,12 +5,12 @@ Document - DeclareTagHelperFields - - TestNamespace.PTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] SingleTagHelper.cshtml) - RazorIRToken - (33:1,0 [2] SingleTagHelper.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] SingleTagHelper.cshtml) - Html - \n TagHelper - (35:2,0 [49] SingleTagHelper.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (69:2,34 [11] SingleTagHelper.cshtml) - RazorIRToken - (69:2,34 [11] SingleTagHelper.cshtml) - Html - Body of Tag + IntermediateToken - (69:2,34 [11] SingleTagHelper.cshtml) - Html - Body of Tag CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 SetTagHelperProperty - (63:2,28 [4] SingleTagHelper.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (63:2,28 [4] SingleTagHelper.cshtml) - CSharp - 1337 + IntermediateToken - (63:2,28 [4] SingleTagHelper.cshtml) - CSharp - 1337 diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.ir.txt index c42ca3017..621c58c56 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.ir.txt @@ -5,945 +5,945 @@ Document - DirectiveToken - (2022:85,9 [21] StringLiterals.cshtml) - WriteLiteralsToInHere DirectiveToken - (5701:205,9 [25] StringLiterals.cshtml) - WriteLiteralsToInHereAlso CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [2013] StringLiterals.cshtml) - RazorIRToken - (0:0,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3:0,3 [14] StringLiterals.cshtml) - Html - This is line 1 - RazorIRToken - (17:0,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (21:0,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (23:1,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (26:1,3 [14] StringLiterals.cshtml) - Html - This is line 2 - RazorIRToken - (40:1,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (44:1,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (46:2,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (49:2,3 [14] StringLiterals.cshtml) - Html - This is line 3 - RazorIRToken - (63:2,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (67:2,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (69:3,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (72:3,3 [14] StringLiterals.cshtml) - Html - This is line 4 - RazorIRToken - (86:3,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (90:3,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (92:4,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (95:4,3 [14] StringLiterals.cshtml) - Html - This is line 5 - RazorIRToken - (109:4,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (113:4,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (115:5,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (118:5,3 [14] StringLiterals.cshtml) - Html - This is line 6 - RazorIRToken - (132:5,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (136:5,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (138:6,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (141:6,3 [14] StringLiterals.cshtml) - Html - This is line 7 - RazorIRToken - (155:6,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (159:6,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (161:7,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (164:7,3 [14] StringLiterals.cshtml) - Html - This is line 8 - RazorIRToken - (178:7,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (182:7,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (184:8,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (187:8,3 [14] StringLiterals.cshtml) - Html - This is line 9 - RazorIRToken - (201:8,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (205:8,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (207:9,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (210:9,3 [15] StringLiterals.cshtml) - Html - This is line 10 - RazorIRToken - (225:9,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (229:9,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (231:10,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (234:10,3 [15] StringLiterals.cshtml) - Html - This is line 11 - RazorIRToken - (249:10,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (253:10,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (255:11,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (258:11,3 [15] StringLiterals.cshtml) - Html - This is line 12 - RazorIRToken - (273:11,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (277:11,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (279:12,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (282:12,3 [15] StringLiterals.cshtml) - Html - This is line 13 - RazorIRToken - (297:12,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (301:12,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (303:13,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (306:13,3 [15] StringLiterals.cshtml) - Html - This is line 14 - RazorIRToken - (321:13,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (325:13,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (327:14,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (330:14,3 [15] StringLiterals.cshtml) - Html - This is line 15 - RazorIRToken - (345:14,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (349:14,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (351:15,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (354:15,3 [15] StringLiterals.cshtml) - Html - This is line 16 - RazorIRToken - (369:15,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (373:15,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (375:16,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (378:16,3 [15] StringLiterals.cshtml) - Html - This is line 17 - RazorIRToken - (393:16,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (397:16,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (399:17,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (402:17,3 [15] StringLiterals.cshtml) - Html - This is line 18 - RazorIRToken - (417:17,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (421:17,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (423:18,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (426:18,3 [15] StringLiterals.cshtml) - Html - This is line 19 - RazorIRToken - (441:18,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (445:18,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (447:19,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (450:19,3 [15] StringLiterals.cshtml) - Html - This is line 20 - RazorIRToken - (465:19,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (469:19,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (471:20,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (474:20,3 [15] StringLiterals.cshtml) - Html - This is line 21 - RazorIRToken - (489:20,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (493:20,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (495:21,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (498:21,3 [15] StringLiterals.cshtml) - Html - This is line 22 - RazorIRToken - (513:21,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (517:21,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (519:22,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (522:22,3 [15] StringLiterals.cshtml) - Html - This is line 23 - RazorIRToken - (537:22,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (541:22,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (543:23,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (546:23,3 [15] StringLiterals.cshtml) - Html - This is line 24 - RazorIRToken - (561:23,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (565:23,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (567:24,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (570:24,3 [15] StringLiterals.cshtml) - Html - This is line 25 - RazorIRToken - (585:24,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (589:24,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (591:25,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (594:25,3 [15] StringLiterals.cshtml) - Html - This is line 26 - RazorIRToken - (609:25,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (613:25,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (615:26,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (618:26,3 [15] StringLiterals.cshtml) - Html - This is line 27 - RazorIRToken - (633:26,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (637:26,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (639:27,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (642:27,3 [15] StringLiterals.cshtml) - Html - This is line 28 - RazorIRToken - (657:27,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (661:27,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (663:28,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (666:28,3 [15] StringLiterals.cshtml) - Html - This is line 29 - RazorIRToken - (681:28,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (685:28,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (687:29,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (690:29,3 [15] StringLiterals.cshtml) - Html - This is line 30 - RazorIRToken - (705:29,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (709:29,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (711:30,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (714:30,3 [15] StringLiterals.cshtml) - Html - This is line 31 - RazorIRToken - (729:30,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (733:30,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (735:31,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (738:31,3 [15] StringLiterals.cshtml) - Html - This is line 32 - RazorIRToken - (753:31,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (757:31,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (759:32,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (762:32,3 [15] StringLiterals.cshtml) - Html - This is line 33 - RazorIRToken - (777:32,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (781:32,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (783:33,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (786:33,3 [15] StringLiterals.cshtml) - Html - This is line 34 - RazorIRToken - (801:33,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (805:33,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (807:34,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (810:34,3 [15] StringLiterals.cshtml) - Html - This is line 35 - RazorIRToken - (825:34,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (829:34,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (831:35,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (834:35,3 [15] StringLiterals.cshtml) - Html - This is line 36 - RazorIRToken - (849:35,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (853:35,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (855:36,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (858:36,3 [15] StringLiterals.cshtml) - Html - This is line 37 - RazorIRToken - (873:36,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (877:36,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (879:37,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (882:37,3 [15] StringLiterals.cshtml) - Html - This is line 38 - RazorIRToken - (897:37,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (901:37,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (903:38,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (906:38,3 [15] StringLiterals.cshtml) - Html - This is line 39 - RazorIRToken - (921:38,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (925:38,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (927:39,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (930:39,3 [15] StringLiterals.cshtml) - Html - This is line 40 - RazorIRToken - (945:39,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (949:39,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (951:40,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (954:40,3 [15] StringLiterals.cshtml) - Html - This is line 41 - RazorIRToken - (969:40,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (973:40,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (975:41,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (978:41,3 [15] StringLiterals.cshtml) - Html - This is line 42 - RazorIRToken - (993:41,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (997:41,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (999:42,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1002:42,3 [15] StringLiterals.cshtml) - Html - This is line 43 - RazorIRToken - (1017:42,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1021:42,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1023:43,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1026:43,3 [15] StringLiterals.cshtml) - Html - This is line 44 - RazorIRToken - (1041:43,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1045:43,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1047:44,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1050:44,3 [15] StringLiterals.cshtml) - Html - This is line 45 - RazorIRToken - (1065:44,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1069:44,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1071:45,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1074:45,3 [15] StringLiterals.cshtml) - Html - This is line 46 - RazorIRToken - (1089:45,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1093:45,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1095:46,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1098:46,3 [15] StringLiterals.cshtml) - Html - This is line 47 - RazorIRToken - (1113:46,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1117:46,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1119:47,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1122:47,3 [15] StringLiterals.cshtml) - Html - This is line 48 - RazorIRToken - (1137:47,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1141:47,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1143:48,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1146:48,3 [15] StringLiterals.cshtml) - Html - This is line 49 - RazorIRToken - (1161:48,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1165:48,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1167:49,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1170:49,3 [15] StringLiterals.cshtml) - Html - This is line 50 - RazorIRToken - (1185:49,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1189:49,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1191:50,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1194:50,3 [15] StringLiterals.cshtml) - Html - This is line 51 - RazorIRToken - (1209:50,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1213:50,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1215:51,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1218:51,3 [15] StringLiterals.cshtml) - Html - This is line 52 - RazorIRToken - (1233:51,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1237:51,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1239:52,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1242:52,3 [15] StringLiterals.cshtml) - Html - This is line 53 - RazorIRToken - (1257:52,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1261:52,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1263:53,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1266:53,3 [15] StringLiterals.cshtml) - Html - This is line 54 - RazorIRToken - (1281:53,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1285:53,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1287:54,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1290:54,3 [15] StringLiterals.cshtml) - Html - This is line 55 - RazorIRToken - (1305:54,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1309:54,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1311:55,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1314:55,3 [15] StringLiterals.cshtml) - Html - This is line 56 - RazorIRToken - (1329:55,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1333:55,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1335:56,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1338:56,3 [15] StringLiterals.cshtml) - Html - This is line 57 - RazorIRToken - (1353:56,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1357:56,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1359:57,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1362:57,3 [15] StringLiterals.cshtml) - Html - This is line 58 - RazorIRToken - (1377:57,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1381:57,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1383:58,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1386:58,3 [15] StringLiterals.cshtml) - Html - This is line 59 - RazorIRToken - (1401:58,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1405:58,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1407:59,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1410:59,3 [15] StringLiterals.cshtml) - Html - This is line 60 - RazorIRToken - (1425:59,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1429:59,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1431:60,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1434:60,3 [15] StringLiterals.cshtml) - Html - This is line 61 - RazorIRToken - (1449:60,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1453:60,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1455:61,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1458:61,3 [15] StringLiterals.cshtml) - Html - This is line 62 - RazorIRToken - (1473:61,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1477:61,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1479:62,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1482:62,3 [15] StringLiterals.cshtml) - Html - This is line 63 - RazorIRToken - (1497:62,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1501:62,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1503:63,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1506:63,3 [15] StringLiterals.cshtml) - Html - This is line 64 - RazorIRToken - (1521:63,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1525:63,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1527:64,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1530:64,3 [15] StringLiterals.cshtml) - Html - This is line 65 - RazorIRToken - (1545:64,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1549:64,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1551:65,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1554:65,3 [15] StringLiterals.cshtml) - Html - This is line 66 - RazorIRToken - (1569:65,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1573:65,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1575:66,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1578:66,3 [15] StringLiterals.cshtml) - Html - This is line 67 - RazorIRToken - (1593:66,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1597:66,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1599:67,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1602:67,3 [15] StringLiterals.cshtml) - Html - This is line 68 - RazorIRToken - (1617:67,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1621:67,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1623:68,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1626:68,3 [15] StringLiterals.cshtml) - Html - This is line 69 - RazorIRToken - (1641:68,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1645:68,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1647:69,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1650:69,3 [15] StringLiterals.cshtml) - Html - This is line 70 - RazorIRToken - (1665:69,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1669:69,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1671:70,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1674:70,3 [15] StringLiterals.cshtml) - Html - This is line 71 - RazorIRToken - (1689:70,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1693:70,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1695:71,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1698:71,3 [15] StringLiterals.cshtml) - Html - This is line 72 - RazorIRToken - (1713:71,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1717:71,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1719:72,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1722:72,3 [15] StringLiterals.cshtml) - Html - This is line 73 - RazorIRToken - (1737:72,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1741:72,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1743:73,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1746:73,3 [15] StringLiterals.cshtml) - Html - This is line 74 - RazorIRToken - (1761:73,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1765:73,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1767:74,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1770:74,3 [15] StringLiterals.cshtml) - Html - This is line 75 - RazorIRToken - (1785:74,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1789:74,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1791:75,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1794:75,3 [15] StringLiterals.cshtml) - Html - This is line 76 - RazorIRToken - (1809:75,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1813:75,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1815:76,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1818:76,3 [15] StringLiterals.cshtml) - Html - This is line 77 - RazorIRToken - (1833:76,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1837:76,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1839:77,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1842:77,3 [15] StringLiterals.cshtml) - Html - This is line 78 - RazorIRToken - (1857:77,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1861:77,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1863:78,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1866:78,3 [15] StringLiterals.cshtml) - Html - This is line 79 - RazorIRToken - (1881:78,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1885:78,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1887:79,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1890:79,3 [15] StringLiterals.cshtml) - Html - This is line 80 - RazorIRToken - (1905:79,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1909:79,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1911:80,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1914:80,3 [15] StringLiterals.cshtml) - Html - This is line 81 - RazorIRToken - (1929:80,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1933:80,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1935:81,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1938:81,3 [15] StringLiterals.cshtml) - Html - This is line 82 - RazorIRToken - (1953:81,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1957:81,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1959:82,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1962:82,3 [15] StringLiterals.cshtml) - Html - This is line 83 - RazorIRToken - (1977:82,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1981:82,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1983:83,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1986:83,3 [15] StringLiterals.cshtml) - Html - This is line 84 - RazorIRToken - (2001:83,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2005:83,22 [4] StringLiterals.cshtml) - Html -
- RazorIRToken - (2009:83,26 [4] StringLiterals.cshtml) - Html - \n\n + IntermediateToken - (0:0,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3:0,3 [14] StringLiterals.cshtml) - Html - This is line 1 + IntermediateToken - (17:0,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (21:0,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (23:1,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (26:1,3 [14] StringLiterals.cshtml) - Html - This is line 2 + IntermediateToken - (40:1,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (44:1,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (46:2,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (49:2,3 [14] StringLiterals.cshtml) - Html - This is line 3 + IntermediateToken - (63:2,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (67:2,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (69:3,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (72:3,3 [14] StringLiterals.cshtml) - Html - This is line 4 + IntermediateToken - (86:3,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (90:3,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (92:4,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (95:4,3 [14] StringLiterals.cshtml) - Html - This is line 5 + IntermediateToken - (109:4,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (113:4,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (115:5,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (118:5,3 [14] StringLiterals.cshtml) - Html - This is line 6 + IntermediateToken - (132:5,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (136:5,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (138:6,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (141:6,3 [14] StringLiterals.cshtml) - Html - This is line 7 + IntermediateToken - (155:6,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (159:6,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (161:7,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (164:7,3 [14] StringLiterals.cshtml) - Html - This is line 8 + IntermediateToken - (178:7,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (182:7,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (184:8,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (187:8,3 [14] StringLiterals.cshtml) - Html - This is line 9 + IntermediateToken - (201:8,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (205:8,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (207:9,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (210:9,3 [15] StringLiterals.cshtml) - Html - This is line 10 + IntermediateToken - (225:9,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (229:9,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (231:10,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (234:10,3 [15] StringLiterals.cshtml) - Html - This is line 11 + IntermediateToken - (249:10,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (253:10,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (255:11,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (258:11,3 [15] StringLiterals.cshtml) - Html - This is line 12 + IntermediateToken - (273:11,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (277:11,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (279:12,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (282:12,3 [15] StringLiterals.cshtml) - Html - This is line 13 + IntermediateToken - (297:12,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (301:12,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (303:13,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (306:13,3 [15] StringLiterals.cshtml) - Html - This is line 14 + IntermediateToken - (321:13,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (325:13,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (327:14,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (330:14,3 [15] StringLiterals.cshtml) - Html - This is line 15 + IntermediateToken - (345:14,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (349:14,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (351:15,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (354:15,3 [15] StringLiterals.cshtml) - Html - This is line 16 + IntermediateToken - (369:15,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (373:15,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (375:16,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (378:16,3 [15] StringLiterals.cshtml) - Html - This is line 17 + IntermediateToken - (393:16,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (397:16,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (399:17,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (402:17,3 [15] StringLiterals.cshtml) - Html - This is line 18 + IntermediateToken - (417:17,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (421:17,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (423:18,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (426:18,3 [15] StringLiterals.cshtml) - Html - This is line 19 + IntermediateToken - (441:18,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (445:18,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (447:19,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (450:19,3 [15] StringLiterals.cshtml) - Html - This is line 20 + IntermediateToken - (465:19,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (469:19,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (471:20,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (474:20,3 [15] StringLiterals.cshtml) - Html - This is line 21 + IntermediateToken - (489:20,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (493:20,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (495:21,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (498:21,3 [15] StringLiterals.cshtml) - Html - This is line 22 + IntermediateToken - (513:21,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (517:21,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (519:22,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (522:22,3 [15] StringLiterals.cshtml) - Html - This is line 23 + IntermediateToken - (537:22,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (541:22,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (543:23,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (546:23,3 [15] StringLiterals.cshtml) - Html - This is line 24 + IntermediateToken - (561:23,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (565:23,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (567:24,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (570:24,3 [15] StringLiterals.cshtml) - Html - This is line 25 + IntermediateToken - (585:24,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (589:24,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (591:25,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (594:25,3 [15] StringLiterals.cshtml) - Html - This is line 26 + IntermediateToken - (609:25,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (613:25,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (615:26,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (618:26,3 [15] StringLiterals.cshtml) - Html - This is line 27 + IntermediateToken - (633:26,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (637:26,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (639:27,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (642:27,3 [15] StringLiterals.cshtml) - Html - This is line 28 + IntermediateToken - (657:27,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (661:27,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (663:28,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (666:28,3 [15] StringLiterals.cshtml) - Html - This is line 29 + IntermediateToken - (681:28,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (685:28,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (687:29,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (690:29,3 [15] StringLiterals.cshtml) - Html - This is line 30 + IntermediateToken - (705:29,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (709:29,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (711:30,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (714:30,3 [15] StringLiterals.cshtml) - Html - This is line 31 + IntermediateToken - (729:30,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (733:30,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (735:31,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (738:31,3 [15] StringLiterals.cshtml) - Html - This is line 32 + IntermediateToken - (753:31,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (757:31,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (759:32,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (762:32,3 [15] StringLiterals.cshtml) - Html - This is line 33 + IntermediateToken - (777:32,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (781:32,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (783:33,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (786:33,3 [15] StringLiterals.cshtml) - Html - This is line 34 + IntermediateToken - (801:33,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (805:33,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (807:34,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (810:34,3 [15] StringLiterals.cshtml) - Html - This is line 35 + IntermediateToken - (825:34,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (829:34,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (831:35,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (834:35,3 [15] StringLiterals.cshtml) - Html - This is line 36 + IntermediateToken - (849:35,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (853:35,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (855:36,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (858:36,3 [15] StringLiterals.cshtml) - Html - This is line 37 + IntermediateToken - (873:36,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (877:36,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (879:37,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (882:37,3 [15] StringLiterals.cshtml) - Html - This is line 38 + IntermediateToken - (897:37,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (901:37,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (903:38,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (906:38,3 [15] StringLiterals.cshtml) - Html - This is line 39 + IntermediateToken - (921:38,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (925:38,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (927:39,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (930:39,3 [15] StringLiterals.cshtml) - Html - This is line 40 + IntermediateToken - (945:39,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (949:39,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (951:40,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (954:40,3 [15] StringLiterals.cshtml) - Html - This is line 41 + IntermediateToken - (969:40,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (973:40,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (975:41,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (978:41,3 [15] StringLiterals.cshtml) - Html - This is line 42 + IntermediateToken - (993:41,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (997:41,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (999:42,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1002:42,3 [15] StringLiterals.cshtml) - Html - This is line 43 + IntermediateToken - (1017:42,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1021:42,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1023:43,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1026:43,3 [15] StringLiterals.cshtml) - Html - This is line 44 + IntermediateToken - (1041:43,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1045:43,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1047:44,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1050:44,3 [15] StringLiterals.cshtml) - Html - This is line 45 + IntermediateToken - (1065:44,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1069:44,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1071:45,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1074:45,3 [15] StringLiterals.cshtml) - Html - This is line 46 + IntermediateToken - (1089:45,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1093:45,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1095:46,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1098:46,3 [15] StringLiterals.cshtml) - Html - This is line 47 + IntermediateToken - (1113:46,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1117:46,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1119:47,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1122:47,3 [15] StringLiterals.cshtml) - Html - This is line 48 + IntermediateToken - (1137:47,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1141:47,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1143:48,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1146:48,3 [15] StringLiterals.cshtml) - Html - This is line 49 + IntermediateToken - (1161:48,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1165:48,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1167:49,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1170:49,3 [15] StringLiterals.cshtml) - Html - This is line 50 + IntermediateToken - (1185:49,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1189:49,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1191:50,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1194:50,3 [15] StringLiterals.cshtml) - Html - This is line 51 + IntermediateToken - (1209:50,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1213:50,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1215:51,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1218:51,3 [15] StringLiterals.cshtml) - Html - This is line 52 + IntermediateToken - (1233:51,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1237:51,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1239:52,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1242:52,3 [15] StringLiterals.cshtml) - Html - This is line 53 + IntermediateToken - (1257:52,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1261:52,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1263:53,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1266:53,3 [15] StringLiterals.cshtml) - Html - This is line 54 + IntermediateToken - (1281:53,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1285:53,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1287:54,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1290:54,3 [15] StringLiterals.cshtml) - Html - This is line 55 + IntermediateToken - (1305:54,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1309:54,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1311:55,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1314:55,3 [15] StringLiterals.cshtml) - Html - This is line 56 + IntermediateToken - (1329:55,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1333:55,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1335:56,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1338:56,3 [15] StringLiterals.cshtml) - Html - This is line 57 + IntermediateToken - (1353:56,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1357:56,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1359:57,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1362:57,3 [15] StringLiterals.cshtml) - Html - This is line 58 + IntermediateToken - (1377:57,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1381:57,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1383:58,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1386:58,3 [15] StringLiterals.cshtml) - Html - This is line 59 + IntermediateToken - (1401:58,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1405:58,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1407:59,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1410:59,3 [15] StringLiterals.cshtml) - Html - This is line 60 + IntermediateToken - (1425:59,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1429:59,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1431:60,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1434:60,3 [15] StringLiterals.cshtml) - Html - This is line 61 + IntermediateToken - (1449:60,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1453:60,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1455:61,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1458:61,3 [15] StringLiterals.cshtml) - Html - This is line 62 + IntermediateToken - (1473:61,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1477:61,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1479:62,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1482:62,3 [15] StringLiterals.cshtml) - Html - This is line 63 + IntermediateToken - (1497:62,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1501:62,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1503:63,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1506:63,3 [15] StringLiterals.cshtml) - Html - This is line 64 + IntermediateToken - (1521:63,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1525:63,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1527:64,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1530:64,3 [15] StringLiterals.cshtml) - Html - This is line 65 + IntermediateToken - (1545:64,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1549:64,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1551:65,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1554:65,3 [15] StringLiterals.cshtml) - Html - This is line 66 + IntermediateToken - (1569:65,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1573:65,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1575:66,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1578:66,3 [15] StringLiterals.cshtml) - Html - This is line 67 + IntermediateToken - (1593:66,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1597:66,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1599:67,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1602:67,3 [15] StringLiterals.cshtml) - Html - This is line 68 + IntermediateToken - (1617:67,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1621:67,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1623:68,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1626:68,3 [15] StringLiterals.cshtml) - Html - This is line 69 + IntermediateToken - (1641:68,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1645:68,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1647:69,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1650:69,3 [15] StringLiterals.cshtml) - Html - This is line 70 + IntermediateToken - (1665:69,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1669:69,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1671:70,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1674:70,3 [15] StringLiterals.cshtml) - Html - This is line 71 + IntermediateToken - (1689:70,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1693:70,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1695:71,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1698:71,3 [15] StringLiterals.cshtml) - Html - This is line 72 + IntermediateToken - (1713:71,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1717:71,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1719:72,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1722:72,3 [15] StringLiterals.cshtml) - Html - This is line 73 + IntermediateToken - (1737:72,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1741:72,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1743:73,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1746:73,3 [15] StringLiterals.cshtml) - Html - This is line 74 + IntermediateToken - (1761:73,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1765:73,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1767:74,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1770:74,3 [15] StringLiterals.cshtml) - Html - This is line 75 + IntermediateToken - (1785:74,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1789:74,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1791:75,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1794:75,3 [15] StringLiterals.cshtml) - Html - This is line 76 + IntermediateToken - (1809:75,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1813:75,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1815:76,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1818:76,3 [15] StringLiterals.cshtml) - Html - This is line 77 + IntermediateToken - (1833:76,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1837:76,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1839:77,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1842:77,3 [15] StringLiterals.cshtml) - Html - This is line 78 + IntermediateToken - (1857:77,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1861:77,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1863:78,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1866:78,3 [15] StringLiterals.cshtml) - Html - This is line 79 + IntermediateToken - (1881:78,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1885:78,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1887:79,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1890:79,3 [15] StringLiterals.cshtml) - Html - This is line 80 + IntermediateToken - (1905:79,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1909:79,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1911:80,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1914:80,3 [15] StringLiterals.cshtml) - Html - This is line 81 + IntermediateToken - (1929:80,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1933:80,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1935:81,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1938:81,3 [15] StringLiterals.cshtml) - Html - This is line 82 + IntermediateToken - (1953:81,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1957:81,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1959:82,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1962:82,3 [15] StringLiterals.cshtml) - Html - This is line 83 + IntermediateToken - (1977:82,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1981:82,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1983:83,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1986:83,3 [15] StringLiterals.cshtml) - Html - This is line 84 + IntermediateToken - (2001:83,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2005:83,22 [4] StringLiterals.cshtml) - Html -
+ IntermediateToken - (2009:83,26 [4] StringLiterals.cshtml) - Html - \n\n Section - - WriteLiteralsToInHere HtmlContent - (2045:85,32 [2618] StringLiterals.cshtml) - RazorIRToken - (2045:85,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2051:86,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2054:86,7 [21] StringLiterals.cshtml) - Html - This is line 1 nested - RazorIRToken - (2075:86,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2079:86,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2085:87,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2088:87,7 [21] StringLiterals.cshtml) - Html - This is line 2 nested - RazorIRToken - (2109:87,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2113:87,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2119:88,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2122:88,7 [21] StringLiterals.cshtml) - Html - This is line 3 nested - RazorIRToken - (2143:88,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2147:88,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2153:89,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2156:89,7 [21] StringLiterals.cshtml) - Html - This is line 4 nested - RazorIRToken - (2177:89,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2181:89,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2187:90,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2190:90,7 [21] StringLiterals.cshtml) - Html - This is line 5 nested - RazorIRToken - (2211:90,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2215:90,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2221:91,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2224:91,7 [21] StringLiterals.cshtml) - Html - This is line 6 nested - RazorIRToken - (2245:91,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2249:91,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2255:92,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2258:92,7 [21] StringLiterals.cshtml) - Html - This is line 7 nested - RazorIRToken - (2279:92,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2283:92,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2289:93,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2292:93,7 [21] StringLiterals.cshtml) - Html - This is line 8 nested - RazorIRToken - (2313:93,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2317:93,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2323:94,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2326:94,7 [21] StringLiterals.cshtml) - Html - This is line 9 nested - RazorIRToken - (2347:94,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2351:94,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2357:95,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2360:95,7 [22] StringLiterals.cshtml) - Html - This is line 10 nested - RazorIRToken - (2382:95,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2386:95,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2392:96,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2395:96,7 [22] StringLiterals.cshtml) - Html - This is line 11 nested - RazorIRToken - (2417:96,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2421:96,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2427:97,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2430:97,7 [22] StringLiterals.cshtml) - Html - This is line 12 nested - RazorIRToken - (2452:97,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2456:97,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2462:98,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2465:98,7 [22] StringLiterals.cshtml) - Html - This is line 13 nested - RazorIRToken - (2487:98,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2491:98,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2497:99,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2500:99,7 [22] StringLiterals.cshtml) - Html - This is line 14 nested - RazorIRToken - (2522:99,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2526:99,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2532:100,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2535:100,7 [22] StringLiterals.cshtml) - Html - This is line 15 nested - RazorIRToken - (2557:100,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2561:100,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2567:101,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2570:101,7 [22] StringLiterals.cshtml) - Html - This is line 16 nested - RazorIRToken - (2592:101,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2596:101,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2602:102,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2605:102,7 [22] StringLiterals.cshtml) - Html - This is line 17 nested - RazorIRToken - (2627:102,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2631:102,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2637:103,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2640:103,7 [22] StringLiterals.cshtml) - Html - This is line 18 nested - RazorIRToken - (2662:103,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2666:103,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2672:104,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2675:104,7 [22] StringLiterals.cshtml) - Html - This is line 19 nested - RazorIRToken - (2697:104,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2701:104,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2707:105,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2710:105,7 [22] StringLiterals.cshtml) - Html - This is line 20 nested - RazorIRToken - (2732:105,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2736:105,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2742:106,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2745:106,7 [22] StringLiterals.cshtml) - Html - This is line 21 nested - RazorIRToken - (2767:106,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2771:106,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2777:107,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2780:107,7 [22] StringLiterals.cshtml) - Html - This is line 22 nested - RazorIRToken - (2802:107,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2806:107,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2812:108,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2815:108,7 [22] StringLiterals.cshtml) - Html - This is line 23 nested - RazorIRToken - (2837:108,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2841:108,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2847:109,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2850:109,7 [22] StringLiterals.cshtml) - Html - This is line 24 nested - RazorIRToken - (2872:109,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2876:109,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2882:110,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2885:110,7 [22] StringLiterals.cshtml) - Html - This is line 25 nested - RazorIRToken - (2907:110,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2911:110,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2917:111,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2920:111,7 [22] StringLiterals.cshtml) - Html - This is line 26 nested - RazorIRToken - (2942:111,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2946:111,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2952:112,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2955:112,7 [22] StringLiterals.cshtml) - Html - This is line 27 nested - RazorIRToken - (2977:112,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2981:112,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2987:113,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2990:113,7 [22] StringLiterals.cshtml) - Html - This is line 28 nested - RazorIRToken - (3012:113,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3016:113,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3022:114,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3025:114,7 [22] StringLiterals.cshtml) - Html - This is line 29 nested - RazorIRToken - (3047:114,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3051:114,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3057:115,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3060:115,7 [22] StringLiterals.cshtml) - Html - This is line 30 nested - RazorIRToken - (3082:115,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3086:115,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3092:116,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3095:116,7 [22] StringLiterals.cshtml) - Html - This is line 31 nested - RazorIRToken - (3117:116,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3121:116,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3127:117,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3130:117,7 [22] StringLiterals.cshtml) - Html - This is line 32 nested - RazorIRToken - (3152:117,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3156:117,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3162:118,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3165:118,7 [22] StringLiterals.cshtml) - Html - This is line 33 nested - RazorIRToken - (3187:118,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3191:118,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3197:119,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3200:119,7 [22] StringLiterals.cshtml) - Html - This is line 34 nested - RazorIRToken - (3222:119,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3226:119,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3232:120,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3235:120,7 [22] StringLiterals.cshtml) - Html - This is line 35 nested - RazorIRToken - (3257:120,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3261:120,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3267:121,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3270:121,7 [22] StringLiterals.cshtml) - Html - This is line 36 nested - RazorIRToken - (3292:121,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3296:121,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3302:122,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3305:122,7 [22] StringLiterals.cshtml) - Html - This is line 37 nested - RazorIRToken - (3327:122,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3331:122,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3337:123,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3340:123,7 [22] StringLiterals.cshtml) - Html - This is line 38 nested - RazorIRToken - (3362:123,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3366:123,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3372:124,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3375:124,7 [22] StringLiterals.cshtml) - Html - This is line 39 nested - RazorIRToken - (3397:124,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3401:124,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3407:125,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3410:125,7 [22] StringLiterals.cshtml) - Html - This is line 40 nested - RazorIRToken - (3432:125,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3436:125,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3442:126,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3445:126,7 [22] StringLiterals.cshtml) - Html - This is line 41 nested - RazorIRToken - (3467:126,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3471:126,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3477:127,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3480:127,7 [22] StringLiterals.cshtml) - Html - This is line 42 nested - RazorIRToken - (3502:127,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3506:127,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3512:128,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3515:128,7 [22] StringLiterals.cshtml) - Html - This is line 43 nested - RazorIRToken - (3537:128,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3541:128,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3547:129,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3550:129,7 [22] StringLiterals.cshtml) - Html - This is line 44 nested - RazorIRToken - (3572:129,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3576:129,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3582:130,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3585:130,7 [22] StringLiterals.cshtml) - Html - This is line 45 nested - RazorIRToken - (3607:130,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3611:130,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3617:131,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3620:131,7 [22] StringLiterals.cshtml) - Html - This is line 46 nested - RazorIRToken - (3642:131,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3646:131,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3652:132,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3655:132,7 [22] StringLiterals.cshtml) - Html - This is line 47 nested - RazorIRToken - (3677:132,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3681:132,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3687:133,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3690:133,7 [22] StringLiterals.cshtml) - Html - This is line 48 nested - RazorIRToken - (3712:133,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3716:133,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3722:134,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3725:134,7 [22] StringLiterals.cshtml) - Html - This is line 49 nested - RazorIRToken - (3747:134,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3751:134,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3757:135,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3760:135,7 [22] StringLiterals.cshtml) - Html - This is line 50 nested - RazorIRToken - (3782:135,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3786:135,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3792:136,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3795:136,7 [22] StringLiterals.cshtml) - Html - This is line 51 nested - RazorIRToken - (3817:136,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3821:136,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3827:137,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3830:137,7 [22] StringLiterals.cshtml) - Html - This is line 52 nested - RazorIRToken - (3852:137,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3856:137,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3862:138,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3865:138,7 [22] StringLiterals.cshtml) - Html - This is line 53 nested - RazorIRToken - (3887:138,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3891:138,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3897:139,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3900:139,7 [22] StringLiterals.cshtml) - Html - This is line 54 nested - RazorIRToken - (3922:139,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3926:139,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3932:140,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3935:140,7 [22] StringLiterals.cshtml) - Html - This is line 55 nested - RazorIRToken - (3957:140,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3961:140,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3967:141,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3970:141,7 [22] StringLiterals.cshtml) - Html - This is line 56 nested - RazorIRToken - (3992:141,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3996:141,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4002:142,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4005:142,7 [22] StringLiterals.cshtml) - Html - This is line 57 nested - RazorIRToken - (4027:142,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4031:142,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4037:143,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4040:143,7 [22] StringLiterals.cshtml) - Html - This is line 58 nested - RazorIRToken - (4062:143,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4066:143,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4072:144,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4075:144,7 [22] StringLiterals.cshtml) - Html - This is line 59 nested - RazorIRToken - (4097:144,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4101:144,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4107:145,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4110:145,7 [22] StringLiterals.cshtml) - Html - This is line 60 nested - RazorIRToken - (4132:145,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4136:145,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4142:146,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4145:146,7 [22] StringLiterals.cshtml) - Html - This is line 61 nested - RazorIRToken - (4167:146,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4171:146,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4177:147,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4180:147,7 [22] StringLiterals.cshtml) - Html - This is line 62 nested - RazorIRToken - (4202:147,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4206:147,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4212:148,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4215:148,7 [22] StringLiterals.cshtml) - Html - This is line 63 nested - RazorIRToken - (4237:148,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4241:148,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4247:149,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4250:149,7 [22] StringLiterals.cshtml) - Html - This is line 64 nested - RazorIRToken - (4272:149,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4276:149,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4282:150,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4285:150,7 [22] StringLiterals.cshtml) - Html - This is line 65 nested - RazorIRToken - (4307:150,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4311:150,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4317:151,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4320:151,7 [22] StringLiterals.cshtml) - Html - This is line 66 nested - RazorIRToken - (4342:151,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4346:151,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4352:152,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4355:152,7 [22] StringLiterals.cshtml) - Html - This is line 67 nested - RazorIRToken - (4377:152,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4381:152,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4387:153,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4390:153,7 [22] StringLiterals.cshtml) - Html - This is line 68 nested - RazorIRToken - (4412:153,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4416:153,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4422:154,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4425:154,7 [22] StringLiterals.cshtml) - Html - This is line 69 nested - RazorIRToken - (4447:154,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4451:154,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4457:155,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4460:155,7 [22] StringLiterals.cshtml) - Html - This is line 70 nested - RazorIRToken - (4482:155,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4486:155,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4492:156,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4495:156,7 [22] StringLiterals.cshtml) - Html - This is line 71 nested - RazorIRToken - (4517:156,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4521:156,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4527:157,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4530:157,7 [22] StringLiterals.cshtml) - Html - This is line 72 nested - RazorIRToken - (4552:157,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4556:157,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4562:158,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4565:158,7 [22] StringLiterals.cshtml) - Html - This is line 73 nested - RazorIRToken - (4587:158,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4591:158,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4597:159,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4600:159,7 [22] StringLiterals.cshtml) - Html - This is line 74 nested - RazorIRToken - (4622:159,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4626:159,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4632:160,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4635:160,7 [22] StringLiterals.cshtml) - Html - This is line 75 nested - RazorIRToken - (4657:160,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4661:160,33 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2045:85,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2051:86,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2054:86,7 [21] StringLiterals.cshtml) - Html - This is line 1 nested + IntermediateToken - (2075:86,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2079:86,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2085:87,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2088:87,7 [21] StringLiterals.cshtml) - Html - This is line 2 nested + IntermediateToken - (2109:87,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2113:87,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2119:88,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2122:88,7 [21] StringLiterals.cshtml) - Html - This is line 3 nested + IntermediateToken - (2143:88,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2147:88,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2153:89,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2156:89,7 [21] StringLiterals.cshtml) - Html - This is line 4 nested + IntermediateToken - (2177:89,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2181:89,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2187:90,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2190:90,7 [21] StringLiterals.cshtml) - Html - This is line 5 nested + IntermediateToken - (2211:90,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2215:90,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2221:91,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2224:91,7 [21] StringLiterals.cshtml) - Html - This is line 6 nested + IntermediateToken - (2245:91,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2249:91,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2255:92,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2258:92,7 [21] StringLiterals.cshtml) - Html - This is line 7 nested + IntermediateToken - (2279:92,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2283:92,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2289:93,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2292:93,7 [21] StringLiterals.cshtml) - Html - This is line 8 nested + IntermediateToken - (2313:93,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2317:93,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2323:94,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2326:94,7 [21] StringLiterals.cshtml) - Html - This is line 9 nested + IntermediateToken - (2347:94,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2351:94,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2357:95,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2360:95,7 [22] StringLiterals.cshtml) - Html - This is line 10 nested + IntermediateToken - (2382:95,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2386:95,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2392:96,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2395:96,7 [22] StringLiterals.cshtml) - Html - This is line 11 nested + IntermediateToken - (2417:96,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2421:96,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2427:97,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2430:97,7 [22] StringLiterals.cshtml) - Html - This is line 12 nested + IntermediateToken - (2452:97,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2456:97,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2462:98,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2465:98,7 [22] StringLiterals.cshtml) - Html - This is line 13 nested + IntermediateToken - (2487:98,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2491:98,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2497:99,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2500:99,7 [22] StringLiterals.cshtml) - Html - This is line 14 nested + IntermediateToken - (2522:99,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2526:99,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2532:100,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2535:100,7 [22] StringLiterals.cshtml) - Html - This is line 15 nested + IntermediateToken - (2557:100,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2561:100,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2567:101,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2570:101,7 [22] StringLiterals.cshtml) - Html - This is line 16 nested + IntermediateToken - (2592:101,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2596:101,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2602:102,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2605:102,7 [22] StringLiterals.cshtml) - Html - This is line 17 nested + IntermediateToken - (2627:102,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2631:102,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2637:103,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2640:103,7 [22] StringLiterals.cshtml) - Html - This is line 18 nested + IntermediateToken - (2662:103,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2666:103,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2672:104,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2675:104,7 [22] StringLiterals.cshtml) - Html - This is line 19 nested + IntermediateToken - (2697:104,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2701:104,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2707:105,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2710:105,7 [22] StringLiterals.cshtml) - Html - This is line 20 nested + IntermediateToken - (2732:105,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2736:105,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2742:106,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2745:106,7 [22] StringLiterals.cshtml) - Html - This is line 21 nested + IntermediateToken - (2767:106,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2771:106,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2777:107,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2780:107,7 [22] StringLiterals.cshtml) - Html - This is line 22 nested + IntermediateToken - (2802:107,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2806:107,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2812:108,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2815:108,7 [22] StringLiterals.cshtml) - Html - This is line 23 nested + IntermediateToken - (2837:108,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2841:108,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2847:109,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2850:109,7 [22] StringLiterals.cshtml) - Html - This is line 24 nested + IntermediateToken - (2872:109,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2876:109,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2882:110,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2885:110,7 [22] StringLiterals.cshtml) - Html - This is line 25 nested + IntermediateToken - (2907:110,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2911:110,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2917:111,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2920:111,7 [22] StringLiterals.cshtml) - Html - This is line 26 nested + IntermediateToken - (2942:111,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2946:111,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2952:112,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2955:112,7 [22] StringLiterals.cshtml) - Html - This is line 27 nested + IntermediateToken - (2977:112,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2981:112,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2987:113,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2990:113,7 [22] StringLiterals.cshtml) - Html - This is line 28 nested + IntermediateToken - (3012:113,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3016:113,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3022:114,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3025:114,7 [22] StringLiterals.cshtml) - Html - This is line 29 nested + IntermediateToken - (3047:114,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3051:114,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3057:115,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3060:115,7 [22] StringLiterals.cshtml) - Html - This is line 30 nested + IntermediateToken - (3082:115,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3086:115,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3092:116,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3095:116,7 [22] StringLiterals.cshtml) - Html - This is line 31 nested + IntermediateToken - (3117:116,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3121:116,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3127:117,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3130:117,7 [22] StringLiterals.cshtml) - Html - This is line 32 nested + IntermediateToken - (3152:117,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3156:117,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3162:118,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3165:118,7 [22] StringLiterals.cshtml) - Html - This is line 33 nested + IntermediateToken - (3187:118,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3191:118,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3197:119,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3200:119,7 [22] StringLiterals.cshtml) - Html - This is line 34 nested + IntermediateToken - (3222:119,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3226:119,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3232:120,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3235:120,7 [22] StringLiterals.cshtml) - Html - This is line 35 nested + IntermediateToken - (3257:120,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3261:120,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3267:121,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3270:121,7 [22] StringLiterals.cshtml) - Html - This is line 36 nested + IntermediateToken - (3292:121,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3296:121,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3302:122,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3305:122,7 [22] StringLiterals.cshtml) - Html - This is line 37 nested + IntermediateToken - (3327:122,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3331:122,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3337:123,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3340:123,7 [22] StringLiterals.cshtml) - Html - This is line 38 nested + IntermediateToken - (3362:123,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3366:123,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3372:124,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3375:124,7 [22] StringLiterals.cshtml) - Html - This is line 39 nested + IntermediateToken - (3397:124,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3401:124,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3407:125,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3410:125,7 [22] StringLiterals.cshtml) - Html - This is line 40 nested + IntermediateToken - (3432:125,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3436:125,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3442:126,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3445:126,7 [22] StringLiterals.cshtml) - Html - This is line 41 nested + IntermediateToken - (3467:126,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3471:126,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3477:127,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3480:127,7 [22] StringLiterals.cshtml) - Html - This is line 42 nested + IntermediateToken - (3502:127,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3506:127,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3512:128,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3515:128,7 [22] StringLiterals.cshtml) - Html - This is line 43 nested + IntermediateToken - (3537:128,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3541:128,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3547:129,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3550:129,7 [22] StringLiterals.cshtml) - Html - This is line 44 nested + IntermediateToken - (3572:129,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3576:129,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3582:130,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3585:130,7 [22] StringLiterals.cshtml) - Html - This is line 45 nested + IntermediateToken - (3607:130,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3611:130,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3617:131,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3620:131,7 [22] StringLiterals.cshtml) - Html - This is line 46 nested + IntermediateToken - (3642:131,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3646:131,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3652:132,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3655:132,7 [22] StringLiterals.cshtml) - Html - This is line 47 nested + IntermediateToken - (3677:132,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3681:132,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3687:133,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3690:133,7 [22] StringLiterals.cshtml) - Html - This is line 48 nested + IntermediateToken - (3712:133,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3716:133,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3722:134,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3725:134,7 [22] StringLiterals.cshtml) - Html - This is line 49 nested + IntermediateToken - (3747:134,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3751:134,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3757:135,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3760:135,7 [22] StringLiterals.cshtml) - Html - This is line 50 nested + IntermediateToken - (3782:135,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3786:135,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3792:136,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3795:136,7 [22] StringLiterals.cshtml) - Html - This is line 51 nested + IntermediateToken - (3817:136,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3821:136,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3827:137,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3830:137,7 [22] StringLiterals.cshtml) - Html - This is line 52 nested + IntermediateToken - (3852:137,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3856:137,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3862:138,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3865:138,7 [22] StringLiterals.cshtml) - Html - This is line 53 nested + IntermediateToken - (3887:138,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3891:138,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3897:139,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3900:139,7 [22] StringLiterals.cshtml) - Html - This is line 54 nested + IntermediateToken - (3922:139,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3926:139,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3932:140,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3935:140,7 [22] StringLiterals.cshtml) - Html - This is line 55 nested + IntermediateToken - (3957:140,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3961:140,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3967:141,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3970:141,7 [22] StringLiterals.cshtml) - Html - This is line 56 nested + IntermediateToken - (3992:141,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3996:141,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4002:142,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4005:142,7 [22] StringLiterals.cshtml) - Html - This is line 57 nested + IntermediateToken - (4027:142,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4031:142,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4037:143,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4040:143,7 [22] StringLiterals.cshtml) - Html - This is line 58 nested + IntermediateToken - (4062:143,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4066:143,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4072:144,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4075:144,7 [22] StringLiterals.cshtml) - Html - This is line 59 nested + IntermediateToken - (4097:144,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4101:144,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4107:145,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4110:145,7 [22] StringLiterals.cshtml) - Html - This is line 60 nested + IntermediateToken - (4132:145,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4136:145,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4142:146,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4145:146,7 [22] StringLiterals.cshtml) - Html - This is line 61 nested + IntermediateToken - (4167:146,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4171:146,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4177:147,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4180:147,7 [22] StringLiterals.cshtml) - Html - This is line 62 nested + IntermediateToken - (4202:147,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4206:147,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4212:148,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4215:148,7 [22] StringLiterals.cshtml) - Html - This is line 63 nested + IntermediateToken - (4237:148,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4241:148,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4247:149,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4250:149,7 [22] StringLiterals.cshtml) - Html - This is line 64 nested + IntermediateToken - (4272:149,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4276:149,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4282:150,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4285:150,7 [22] StringLiterals.cshtml) - Html - This is line 65 nested + IntermediateToken - (4307:150,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4311:150,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4317:151,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4320:151,7 [22] StringLiterals.cshtml) - Html - This is line 66 nested + IntermediateToken - (4342:151,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4346:151,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4352:152,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4355:152,7 [22] StringLiterals.cshtml) - Html - This is line 67 nested + IntermediateToken - (4377:152,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4381:152,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4387:153,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4390:153,7 [22] StringLiterals.cshtml) - Html - This is line 68 nested + IntermediateToken - (4412:153,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4416:153,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4422:154,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4425:154,7 [22] StringLiterals.cshtml) - Html - This is line 69 nested + IntermediateToken - (4447:154,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4451:154,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4457:155,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4460:155,7 [22] StringLiterals.cshtml) - Html - This is line 70 nested + IntermediateToken - (4482:155,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4486:155,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4492:156,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4495:156,7 [22] StringLiterals.cshtml) - Html - This is line 71 nested + IntermediateToken - (4517:156,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4521:156,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4527:157,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4530:157,7 [22] StringLiterals.cshtml) - Html - This is line 72 nested + IntermediateToken - (4552:157,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4556:157,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4562:158,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4565:158,7 [22] StringLiterals.cshtml) - Html - This is line 73 nested + IntermediateToken - (4587:158,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4591:158,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4597:159,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4600:159,7 [22] StringLiterals.cshtml) - Html - This is line 74 nested + IntermediateToken - (4622:159,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4626:159,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4632:160,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4635:160,7 [22] StringLiterals.cshtml) - Html - This is line 75 nested + IntermediateToken - (4657:160,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4661:160,33 [2] StringLiterals.cshtml) - Html - \n HtmlContent - (4664:161,1 [1028] StringLiterals.cshtml) - RazorIRToken - (4664:161,1 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4666:162,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4669:162,3 [14] StringLiterals.cshtml) - Html - This is line 1 - RazorIRToken - (4683:162,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4687:162,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4689:163,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4692:163,3 [14] StringLiterals.cshtml) - Html - This is line 2 - RazorIRToken - (4706:163,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4710:163,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4712:164,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4715:164,3 [14] StringLiterals.cshtml) - Html - This is line 3 - RazorIRToken - (4729:164,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4733:164,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4735:165,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4738:165,3 [14] StringLiterals.cshtml) - Html - This is line 4 - RazorIRToken - (4752:165,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4756:165,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4758:166,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4761:166,3 [14] StringLiterals.cshtml) - Html - This is line 5 - RazorIRToken - (4775:166,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4779:166,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4781:167,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4784:167,3 [14] StringLiterals.cshtml) - Html - This is line 6 - RazorIRToken - (4798:167,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4802:167,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4804:168,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4807:168,3 [14] StringLiterals.cshtml) - Html - This is line 7 - RazorIRToken - (4821:168,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4825:168,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4827:169,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4830:169,3 [14] StringLiterals.cshtml) - Html - This is line 8 - RazorIRToken - (4844:169,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4848:169,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4850:170,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4853:170,3 [14] StringLiterals.cshtml) - Html - This is line 9 - RazorIRToken - (4867:170,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4871:170,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4873:171,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4876:171,3 [15] StringLiterals.cshtml) - Html - This is line 10 - RazorIRToken - (4891:171,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4895:171,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4897:172,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4900:172,3 [15] StringLiterals.cshtml) - Html - This is line 11 - RazorIRToken - (4915:172,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4919:172,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4921:173,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4924:173,3 [15] StringLiterals.cshtml) - Html - This is line 12 - RazorIRToken - (4939:173,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4943:173,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4945:174,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4948:174,3 [15] StringLiterals.cshtml) - Html - This is line 13 - RazorIRToken - (4963:174,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4967:174,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4969:175,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4972:175,3 [15] StringLiterals.cshtml) - Html - This is line 14 - RazorIRToken - (4987:175,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4991:175,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4993:176,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4996:176,3 [15] StringLiterals.cshtml) - Html - This is line 15 - RazorIRToken - (5011:176,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5015:176,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5017:177,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5020:177,3 [15] StringLiterals.cshtml) - Html - This is line 16 - RazorIRToken - (5035:177,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5039:177,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5041:178,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5044:178,3 [15] StringLiterals.cshtml) - Html - This is line 17 - RazorIRToken - (5059:178,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5063:178,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5065:179,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5068:179,3 [15] StringLiterals.cshtml) - Html - This is line 18 - RazorIRToken - (5083:179,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5087:179,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5089:180,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5092:180,3 [15] StringLiterals.cshtml) - Html - This is line 19 - RazorIRToken - (5107:180,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5111:180,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5113:181,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5116:181,3 [15] StringLiterals.cshtml) - Html - This is line 20 - RazorIRToken - (5131:181,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5135:181,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5137:182,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5140:182,3 [15] StringLiterals.cshtml) - Html - This is line 21 - RazorIRToken - (5155:182,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5159:182,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5161:183,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5164:183,3 [15] StringLiterals.cshtml) - Html - This is line 22 - RazorIRToken - (5179:183,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5183:183,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5185:184,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5188:184,3 [15] StringLiterals.cshtml) - Html - This is line 23 - RazorIRToken - (5203:184,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5207:184,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5209:185,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5212:185,3 [15] StringLiterals.cshtml) - Html - This is line 24 - RazorIRToken - (5227:185,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5231:185,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5233:186,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5236:186,3 [15] StringLiterals.cshtml) - Html - This is line 25 - RazorIRToken - (5251:186,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5255:186,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5257:187,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5260:187,3 [15] StringLiterals.cshtml) - Html - This is line 26 - RazorIRToken - (5275:187,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5279:187,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5281:188,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5284:188,3 [15] StringLiterals.cshtml) - Html - This is line 27 - RazorIRToken - (5299:188,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5303:188,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5305:189,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5308:189,3 [15] StringLiterals.cshtml) - Html - This is line 28 - RazorIRToken - (5323:189,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5327:189,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5329:190,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5332:190,3 [15] StringLiterals.cshtml) - Html - This is line 29 - RazorIRToken - (5347:190,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5351:190,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5353:191,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5356:191,3 [15] StringLiterals.cshtml) - Html - This is line 30 - RazorIRToken - (5371:191,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5375:191,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5377:192,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5380:192,3 [15] StringLiterals.cshtml) - Html - This is line 31 - RazorIRToken - (5395:192,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5399:192,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5401:193,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5404:193,3 [15] StringLiterals.cshtml) - Html - This is line 32 - RazorIRToken - (5419:193,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5423:193,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5425:194,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5428:194,3 [15] StringLiterals.cshtml) - Html - This is line 33 - RazorIRToken - (5443:194,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5447:194,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5449:195,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5452:195,3 [15] StringLiterals.cshtml) - Html - This is line 34 - RazorIRToken - (5467:195,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5471:195,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5473:196,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5476:196,3 [15] StringLiterals.cshtml) - Html - This is line 35 - RazorIRToken - (5491:196,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5495:196,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5497:197,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5500:197,3 [15] StringLiterals.cshtml) - Html - This is line 36 - RazorIRToken - (5515:197,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5519:197,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5521:198,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5524:198,3 [15] StringLiterals.cshtml) - Html - This is line 37 - RazorIRToken - (5539:198,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5543:198,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5545:199,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5548:199,3 [15] StringLiterals.cshtml) - Html - This is line 38 - RazorIRToken - (5563:199,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5567:199,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5569:200,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5572:200,3 [15] StringLiterals.cshtml) - Html - This is line 39 - RazorIRToken - (5587:200,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5591:200,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5593:201,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5596:201,3 [15] StringLiterals.cshtml) - Html - This is line 40 - RazorIRToken - (5611:201,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5615:201,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5617:202,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5620:202,3 [15] StringLiterals.cshtml) - Html - This is line 41 - RazorIRToken - (5635:202,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5639:202,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5641:203,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5644:203,3 [15] StringLiterals.cshtml) - Html - This is line 42 - RazorIRToken - (5659:203,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5663:203,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5665:204,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5668:204,3 [15] StringLiterals.cshtml) - Html - This is line 43 - RazorIRToken - (5683:204,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5687:204,22 [5] StringLiterals.cshtml) - Html - hi!\n + IntermediateToken - (4664:161,1 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4666:162,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4669:162,3 [14] StringLiterals.cshtml) - Html - This is line 1 + IntermediateToken - (4683:162,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4687:162,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4689:163,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4692:163,3 [14] StringLiterals.cshtml) - Html - This is line 2 + IntermediateToken - (4706:163,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4710:163,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4712:164,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4715:164,3 [14] StringLiterals.cshtml) - Html - This is line 3 + IntermediateToken - (4729:164,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4733:164,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4735:165,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4738:165,3 [14] StringLiterals.cshtml) - Html - This is line 4 + IntermediateToken - (4752:165,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4756:165,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4758:166,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4761:166,3 [14] StringLiterals.cshtml) - Html - This is line 5 + IntermediateToken - (4775:166,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4779:166,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4781:167,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4784:167,3 [14] StringLiterals.cshtml) - Html - This is line 6 + IntermediateToken - (4798:167,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4802:167,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4804:168,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4807:168,3 [14] StringLiterals.cshtml) - Html - This is line 7 + IntermediateToken - (4821:168,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4825:168,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4827:169,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4830:169,3 [14] StringLiterals.cshtml) - Html - This is line 8 + IntermediateToken - (4844:169,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4848:169,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4850:170,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4853:170,3 [14] StringLiterals.cshtml) - Html - This is line 9 + IntermediateToken - (4867:170,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4871:170,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4873:171,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4876:171,3 [15] StringLiterals.cshtml) - Html - This is line 10 + IntermediateToken - (4891:171,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4895:171,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4897:172,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4900:172,3 [15] StringLiterals.cshtml) - Html - This is line 11 + IntermediateToken - (4915:172,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4919:172,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4921:173,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4924:173,3 [15] StringLiterals.cshtml) - Html - This is line 12 + IntermediateToken - (4939:173,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4943:173,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4945:174,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4948:174,3 [15] StringLiterals.cshtml) - Html - This is line 13 + IntermediateToken - (4963:174,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4967:174,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4969:175,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4972:175,3 [15] StringLiterals.cshtml) - Html - This is line 14 + IntermediateToken - (4987:175,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4991:175,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4993:176,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4996:176,3 [15] StringLiterals.cshtml) - Html - This is line 15 + IntermediateToken - (5011:176,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5015:176,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5017:177,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5020:177,3 [15] StringLiterals.cshtml) - Html - This is line 16 + IntermediateToken - (5035:177,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5039:177,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5041:178,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5044:178,3 [15] StringLiterals.cshtml) - Html - This is line 17 + IntermediateToken - (5059:178,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5063:178,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5065:179,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5068:179,3 [15] StringLiterals.cshtml) - Html - This is line 18 + IntermediateToken - (5083:179,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5087:179,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5089:180,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5092:180,3 [15] StringLiterals.cshtml) - Html - This is line 19 + IntermediateToken - (5107:180,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5111:180,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5113:181,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5116:181,3 [15] StringLiterals.cshtml) - Html - This is line 20 + IntermediateToken - (5131:181,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5135:181,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5137:182,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5140:182,3 [15] StringLiterals.cshtml) - Html - This is line 21 + IntermediateToken - (5155:182,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5159:182,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5161:183,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5164:183,3 [15] StringLiterals.cshtml) - Html - This is line 22 + IntermediateToken - (5179:183,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5183:183,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5185:184,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5188:184,3 [15] StringLiterals.cshtml) - Html - This is line 23 + IntermediateToken - (5203:184,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5207:184,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5209:185,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5212:185,3 [15] StringLiterals.cshtml) - Html - This is line 24 + IntermediateToken - (5227:185,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5231:185,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5233:186,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5236:186,3 [15] StringLiterals.cshtml) - Html - This is line 25 + IntermediateToken - (5251:186,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5255:186,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5257:187,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5260:187,3 [15] StringLiterals.cshtml) - Html - This is line 26 + IntermediateToken - (5275:187,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5279:187,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5281:188,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5284:188,3 [15] StringLiterals.cshtml) - Html - This is line 27 + IntermediateToken - (5299:188,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5303:188,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5305:189,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5308:189,3 [15] StringLiterals.cshtml) - Html - This is line 28 + IntermediateToken - (5323:189,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5327:189,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5329:190,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5332:190,3 [15] StringLiterals.cshtml) - Html - This is line 29 + IntermediateToken - (5347:190,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5351:190,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5353:191,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5356:191,3 [15] StringLiterals.cshtml) - Html - This is line 30 + IntermediateToken - (5371:191,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5375:191,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5377:192,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5380:192,3 [15] StringLiterals.cshtml) - Html - This is line 31 + IntermediateToken - (5395:192,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5399:192,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5401:193,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5404:193,3 [15] StringLiterals.cshtml) - Html - This is line 32 + IntermediateToken - (5419:193,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5423:193,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5425:194,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5428:194,3 [15] StringLiterals.cshtml) - Html - This is line 33 + IntermediateToken - (5443:194,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5447:194,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5449:195,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5452:195,3 [15] StringLiterals.cshtml) - Html - This is line 34 + IntermediateToken - (5467:195,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5471:195,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5473:196,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5476:196,3 [15] StringLiterals.cshtml) - Html - This is line 35 + IntermediateToken - (5491:196,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5495:196,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5497:197,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5500:197,3 [15] StringLiterals.cshtml) - Html - This is line 36 + IntermediateToken - (5515:197,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5519:197,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5521:198,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5524:198,3 [15] StringLiterals.cshtml) - Html - This is line 37 + IntermediateToken - (5539:198,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5543:198,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5545:199,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5548:199,3 [15] StringLiterals.cshtml) - Html - This is line 38 + IntermediateToken - (5563:199,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5567:199,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5569:200,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5572:200,3 [15] StringLiterals.cshtml) - Html - This is line 39 + IntermediateToken - (5587:200,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5591:200,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5593:201,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5596:201,3 [15] StringLiterals.cshtml) - Html - This is line 40 + IntermediateToken - (5611:201,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5615:201,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5617:202,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5620:202,3 [15] StringLiterals.cshtml) - Html - This is line 41 + IntermediateToken - (5635:202,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5639:202,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5641:203,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5644:203,3 [15] StringLiterals.cshtml) - Html - This is line 42 + IntermediateToken - (5659:203,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5663:203,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5665:204,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5668:204,3 [15] StringLiterals.cshtml) - Html - This is line 43 + IntermediateToken - (5683:204,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5687:204,22 [5] StringLiterals.cshtml) - Html - hi!\n Section - - WriteLiteralsToInHereAlso HtmlContent - (5728:205,36 [1023] StringLiterals.cshtml) - RazorIRToken - (5728:205,36 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5734:206,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5737:206,7 [21] StringLiterals.cshtml) - Html - This is line 1 nested - RazorIRToken - (5758:206,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5762:206,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5768:207,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5771:207,7 [21] StringLiterals.cshtml) - Html - This is line 2 nested - RazorIRToken - (5792:207,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5796:207,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5802:208,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5805:208,7 [21] StringLiterals.cshtml) - Html - This is line 3 nested - RazorIRToken - (5826:208,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5830:208,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5836:209,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5839:209,7 [21] StringLiterals.cshtml) - Html - This is line 4 nested - RazorIRToken - (5860:209,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5864:209,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5870:210,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5873:210,7 [21] StringLiterals.cshtml) - Html - This is line 5 nested - RazorIRToken - (5894:210,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5898:210,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5904:211,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5907:211,7 [21] StringLiterals.cshtml) - Html - This is line 6 nested - RazorIRToken - (5928:211,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5932:211,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5938:212,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5941:212,7 [21] StringLiterals.cshtml) - Html - This is line 7 nested - RazorIRToken - (5962:212,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5966:212,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5972:213,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5975:213,7 [21] StringLiterals.cshtml) - Html - This is line 8 nested - RazorIRToken - (5996:213,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6000:213,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6006:214,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6009:214,7 [21] StringLiterals.cshtml) - Html - This is line 9 nested - RazorIRToken - (6030:214,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6034:214,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6040:215,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6043:215,7 [22] StringLiterals.cshtml) - Html - This is line 10 nested - RazorIRToken - (6065:215,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6069:215,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6075:216,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6078:216,7 [22] StringLiterals.cshtml) - Html - This is line 11 nested - RazorIRToken - (6100:216,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6104:216,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6110:217,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6113:217,7 [22] StringLiterals.cshtml) - Html - This is line 12 nested - RazorIRToken - (6135:217,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6139:217,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6145:218,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6148:218,7 [22] StringLiterals.cshtml) - Html - This is line 13 nested - RazorIRToken - (6170:218,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6174:218,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6180:219,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6183:219,7 [22] StringLiterals.cshtml) - Html - This is line 14 nested - RazorIRToken - (6205:219,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6209:219,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6215:220,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6218:220,7 [22] StringLiterals.cshtml) - Html - This is line 15 nested - RazorIRToken - (6240:220,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6244:220,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6250:221,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6253:221,7 [22] StringLiterals.cshtml) - Html - This is line 16 nested - RazorIRToken - (6275:221,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6279:221,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6285:222,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6288:222,7 [22] StringLiterals.cshtml) - Html - This is line 17 nested - RazorIRToken - (6310:222,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6314:222,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6320:223,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6323:223,7 [22] StringLiterals.cshtml) - Html - This is line 18 nested - RazorIRToken - (6345:223,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6349:223,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6355:224,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6358:224,7 [22] StringLiterals.cshtml) - Html - This is line 19 nested - RazorIRToken - (6380:224,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6384:224,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6390:225,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6393:225,7 [22] StringLiterals.cshtml) - Html - This is line 20 nested - RazorIRToken - (6415:225,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6419:225,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6425:226,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6428:226,7 [22] StringLiterals.cshtml) - Html - This is line 21 nested - RazorIRToken - (6450:226,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6454:226,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6460:227,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6463:227,7 [22] StringLiterals.cshtml) - Html - This is line 22 nested - RazorIRToken - (6485:227,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6489:227,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6495:228,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6498:228,7 [22] StringLiterals.cshtml) - Html - This is line 23 nested - RazorIRToken - (6520:228,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6524:228,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6530:229,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6533:229,7 [22] StringLiterals.cshtml) - Html - This is line 24 nested - RazorIRToken - (6555:229,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6559:229,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6565:230,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6568:230,7 [22] StringLiterals.cshtml) - Html - This is line 25 nested - RazorIRToken - (6590:230,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6594:230,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6600:231,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6603:231,7 [22] StringLiterals.cshtml) - Html - This is line 26 nested - RazorIRToken - (6625:231,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6629:231,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6635:232,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6638:232,7 [22] StringLiterals.cshtml) - Html - This is line 27 nested - RazorIRToken - (6660:232,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6664:232,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6670:233,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6673:233,7 [22] StringLiterals.cshtml) - Html - This is line 28 nested - RazorIRToken - (6695:233,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6699:233,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6705:234,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6708:234,7 [22] StringLiterals.cshtml) - Html - This is line 29 nested - RazorIRToken - (6730:234,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6734:234,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6740:235,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6743:235,7 [2] StringLiterals.cshtml) - Html - 30 - RazorIRToken - (6745:235,9 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6749:235,13 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5728:205,36 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5734:206,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5737:206,7 [21] StringLiterals.cshtml) - Html - This is line 1 nested + IntermediateToken - (5758:206,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5762:206,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5768:207,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5771:207,7 [21] StringLiterals.cshtml) - Html - This is line 2 nested + IntermediateToken - (5792:207,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5796:207,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5802:208,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5805:208,7 [21] StringLiterals.cshtml) - Html - This is line 3 nested + IntermediateToken - (5826:208,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5830:208,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5836:209,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5839:209,7 [21] StringLiterals.cshtml) - Html - This is line 4 nested + IntermediateToken - (5860:209,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5864:209,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5870:210,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5873:210,7 [21] StringLiterals.cshtml) - Html - This is line 5 nested + IntermediateToken - (5894:210,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5898:210,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5904:211,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5907:211,7 [21] StringLiterals.cshtml) - Html - This is line 6 nested + IntermediateToken - (5928:211,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5932:211,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5938:212,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5941:212,7 [21] StringLiterals.cshtml) - Html - This is line 7 nested + IntermediateToken - (5962:212,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5966:212,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5972:213,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5975:213,7 [21] StringLiterals.cshtml) - Html - This is line 8 nested + IntermediateToken - (5996:213,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6000:213,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6006:214,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6009:214,7 [21] StringLiterals.cshtml) - Html - This is line 9 nested + IntermediateToken - (6030:214,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6034:214,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6040:215,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6043:215,7 [22] StringLiterals.cshtml) - Html - This is line 10 nested + IntermediateToken - (6065:215,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6069:215,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6075:216,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6078:216,7 [22] StringLiterals.cshtml) - Html - This is line 11 nested + IntermediateToken - (6100:216,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6104:216,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6110:217,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6113:217,7 [22] StringLiterals.cshtml) - Html - This is line 12 nested + IntermediateToken - (6135:217,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6139:217,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6145:218,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6148:218,7 [22] StringLiterals.cshtml) - Html - This is line 13 nested + IntermediateToken - (6170:218,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6174:218,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6180:219,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6183:219,7 [22] StringLiterals.cshtml) - Html - This is line 14 nested + IntermediateToken - (6205:219,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6209:219,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6215:220,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6218:220,7 [22] StringLiterals.cshtml) - Html - This is line 15 nested + IntermediateToken - (6240:220,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6244:220,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6250:221,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6253:221,7 [22] StringLiterals.cshtml) - Html - This is line 16 nested + IntermediateToken - (6275:221,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6279:221,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6285:222,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6288:222,7 [22] StringLiterals.cshtml) - Html - This is line 17 nested + IntermediateToken - (6310:222,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6314:222,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6320:223,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6323:223,7 [22] StringLiterals.cshtml) - Html - This is line 18 nested + IntermediateToken - (6345:223,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6349:223,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6355:224,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6358:224,7 [22] StringLiterals.cshtml) - Html - This is line 19 nested + IntermediateToken - (6380:224,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6384:224,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6390:225,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6393:225,7 [22] StringLiterals.cshtml) - Html - This is line 20 nested + IntermediateToken - (6415:225,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6419:225,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6425:226,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6428:226,7 [22] StringLiterals.cshtml) - Html - This is line 21 nested + IntermediateToken - (6450:226,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6454:226,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6460:227,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6463:227,7 [22] StringLiterals.cshtml) - Html - This is line 22 nested + IntermediateToken - (6485:227,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6489:227,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6495:228,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6498:228,7 [22] StringLiterals.cshtml) - Html - This is line 23 nested + IntermediateToken - (6520:228,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6524:228,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6530:229,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6533:229,7 [22] StringLiterals.cshtml) - Html - This is line 24 nested + IntermediateToken - (6555:229,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6559:229,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6565:230,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6568:230,7 [22] StringLiterals.cshtml) - Html - This is line 25 nested + IntermediateToken - (6590:230,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6594:230,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6600:231,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6603:231,7 [22] StringLiterals.cshtml) - Html - This is line 26 nested + IntermediateToken - (6625:231,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6629:231,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6635:232,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6638:232,7 [22] StringLiterals.cshtml) - Html - This is line 27 nested + IntermediateToken - (6660:232,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6664:232,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6670:233,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6673:233,7 [22] StringLiterals.cshtml) - Html - This is line 28 nested + IntermediateToken - (6695:233,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6699:233,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6705:234,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6708:234,7 [22] StringLiterals.cshtml) - Html - This is line 29 nested + IntermediateToken - (6730:234,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6734:234,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6740:235,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6743:235,7 [2] StringLiterals.cshtml) - Html - 30 + IntermediateToken - (6745:235,9 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6749:235,13 [2] StringLiterals.cshtml) - Html - \n HtmlContent - (6752:236,1 [1] StringLiterals.cshtml) - RazorIRToken - (6752:236,1 [1] StringLiterals.cshtml) - Html - ! + IntermediateToken - (6752:236,1 [1] StringLiterals.cshtml) - Html - ! diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_Runtime.ir.txt index 400ab757f..03996df2a 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_Runtime.ir.txt @@ -3,941 +3,941 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_StringLiterals_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [2013] StringLiterals.cshtml) - RazorIRToken - (0:0,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3:0,3 [14] StringLiterals.cshtml) - Html - This is line 1 - RazorIRToken - (17:0,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (21:0,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (23:1,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (26:1,3 [14] StringLiterals.cshtml) - Html - This is line 2 - RazorIRToken - (40:1,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (44:1,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (46:2,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (49:2,3 [14] StringLiterals.cshtml) - Html - This is line 3 - RazorIRToken - (63:2,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (67:2,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (69:3,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (72:3,3 [14] StringLiterals.cshtml) - Html - This is line 4 - RazorIRToken - (86:3,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (90:3,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (92:4,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (95:4,3 [14] StringLiterals.cshtml) - Html - This is line 5 - RazorIRToken - (109:4,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (113:4,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (115:5,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (118:5,3 [14] StringLiterals.cshtml) - Html - This is line 6 - RazorIRToken - (132:5,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (136:5,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (138:6,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (141:6,3 [14] StringLiterals.cshtml) - Html - This is line 7 - RazorIRToken - (155:6,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (159:6,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (161:7,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (164:7,3 [14] StringLiterals.cshtml) - Html - This is line 8 - RazorIRToken - (178:7,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (182:7,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (184:8,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (187:8,3 [14] StringLiterals.cshtml) - Html - This is line 9 - RazorIRToken - (201:8,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (205:8,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (207:9,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (210:9,3 [15] StringLiterals.cshtml) - Html - This is line 10 - RazorIRToken - (225:9,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (229:9,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (231:10,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (234:10,3 [15] StringLiterals.cshtml) - Html - This is line 11 - RazorIRToken - (249:10,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (253:10,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (255:11,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (258:11,3 [15] StringLiterals.cshtml) - Html - This is line 12 - RazorIRToken - (273:11,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (277:11,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (279:12,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (282:12,3 [15] StringLiterals.cshtml) - Html - This is line 13 - RazorIRToken - (297:12,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (301:12,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (303:13,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (306:13,3 [15] StringLiterals.cshtml) - Html - This is line 14 - RazorIRToken - (321:13,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (325:13,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (327:14,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (330:14,3 [15] StringLiterals.cshtml) - Html - This is line 15 - RazorIRToken - (345:14,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (349:14,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (351:15,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (354:15,3 [15] StringLiterals.cshtml) - Html - This is line 16 - RazorIRToken - (369:15,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (373:15,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (375:16,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (378:16,3 [15] StringLiterals.cshtml) - Html - This is line 17 - RazorIRToken - (393:16,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (397:16,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (399:17,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (402:17,3 [15] StringLiterals.cshtml) - Html - This is line 18 - RazorIRToken - (417:17,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (421:17,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (423:18,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (426:18,3 [15] StringLiterals.cshtml) - Html - This is line 19 - RazorIRToken - (441:18,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (445:18,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (447:19,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (450:19,3 [15] StringLiterals.cshtml) - Html - This is line 20 - RazorIRToken - (465:19,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (469:19,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (471:20,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (474:20,3 [15] StringLiterals.cshtml) - Html - This is line 21 - RazorIRToken - (489:20,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (493:20,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (495:21,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (498:21,3 [15] StringLiterals.cshtml) - Html - This is line 22 - RazorIRToken - (513:21,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (517:21,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (519:22,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (522:22,3 [15] StringLiterals.cshtml) - Html - This is line 23 - RazorIRToken - (537:22,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (541:22,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (543:23,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (546:23,3 [15] StringLiterals.cshtml) - Html - This is line 24 - RazorIRToken - (561:23,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (565:23,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (567:24,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (570:24,3 [15] StringLiterals.cshtml) - Html - This is line 25 - RazorIRToken - (585:24,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (589:24,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (591:25,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (594:25,3 [15] StringLiterals.cshtml) - Html - This is line 26 - RazorIRToken - (609:25,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (613:25,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (615:26,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (618:26,3 [15] StringLiterals.cshtml) - Html - This is line 27 - RazorIRToken - (633:26,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (637:26,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (639:27,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (642:27,3 [15] StringLiterals.cshtml) - Html - This is line 28 - RazorIRToken - (657:27,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (661:27,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (663:28,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (666:28,3 [15] StringLiterals.cshtml) - Html - This is line 29 - RazorIRToken - (681:28,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (685:28,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (687:29,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (690:29,3 [15] StringLiterals.cshtml) - Html - This is line 30 - RazorIRToken - (705:29,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (709:29,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (711:30,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (714:30,3 [15] StringLiterals.cshtml) - Html - This is line 31 - RazorIRToken - (729:30,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (733:30,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (735:31,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (738:31,3 [15] StringLiterals.cshtml) - Html - This is line 32 - RazorIRToken - (753:31,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (757:31,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (759:32,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (762:32,3 [15] StringLiterals.cshtml) - Html - This is line 33 - RazorIRToken - (777:32,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (781:32,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (783:33,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (786:33,3 [15] StringLiterals.cshtml) - Html - This is line 34 - RazorIRToken - (801:33,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (805:33,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (807:34,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (810:34,3 [15] StringLiterals.cshtml) - Html - This is line 35 - RazorIRToken - (825:34,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (829:34,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (831:35,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (834:35,3 [15] StringLiterals.cshtml) - Html - This is line 36 - RazorIRToken - (849:35,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (853:35,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (855:36,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (858:36,3 [15] StringLiterals.cshtml) - Html - This is line 37 - RazorIRToken - (873:36,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (877:36,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (879:37,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (882:37,3 [15] StringLiterals.cshtml) - Html - This is line 38 - RazorIRToken - (897:37,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (901:37,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (903:38,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (906:38,3 [15] StringLiterals.cshtml) - Html - This is line 39 - RazorIRToken - (921:38,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (925:38,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (927:39,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (930:39,3 [15] StringLiterals.cshtml) - Html - This is line 40 - RazorIRToken - (945:39,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (949:39,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (951:40,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (954:40,3 [15] StringLiterals.cshtml) - Html - This is line 41 - RazorIRToken - (969:40,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (973:40,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (975:41,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (978:41,3 [15] StringLiterals.cshtml) - Html - This is line 42 - RazorIRToken - (993:41,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (997:41,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (999:42,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1002:42,3 [15] StringLiterals.cshtml) - Html - This is line 43 - RazorIRToken - (1017:42,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1021:42,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1023:43,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1026:43,3 [15] StringLiterals.cshtml) - Html - This is line 44 - RazorIRToken - (1041:43,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1045:43,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1047:44,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1050:44,3 [15] StringLiterals.cshtml) - Html - This is line 45 - RazorIRToken - (1065:44,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1069:44,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1071:45,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1074:45,3 [15] StringLiterals.cshtml) - Html - This is line 46 - RazorIRToken - (1089:45,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1093:45,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1095:46,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1098:46,3 [15] StringLiterals.cshtml) - Html - This is line 47 - RazorIRToken - (1113:46,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1117:46,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1119:47,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1122:47,3 [15] StringLiterals.cshtml) - Html - This is line 48 - RazorIRToken - (1137:47,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1141:47,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1143:48,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1146:48,3 [15] StringLiterals.cshtml) - Html - This is line 49 - RazorIRToken - (1161:48,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1165:48,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1167:49,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1170:49,3 [15] StringLiterals.cshtml) - Html - This is line 50 - RazorIRToken - (1185:49,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1189:49,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1191:50,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1194:50,3 [15] StringLiterals.cshtml) - Html - This is line 51 - RazorIRToken - (1209:50,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1213:50,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1215:51,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1218:51,3 [15] StringLiterals.cshtml) - Html - This is line 52 - RazorIRToken - (1233:51,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1237:51,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1239:52,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1242:52,3 [15] StringLiterals.cshtml) - Html - This is line 53 - RazorIRToken - (1257:52,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1261:52,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1263:53,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1266:53,3 [15] StringLiterals.cshtml) - Html - This is line 54 - RazorIRToken - (1281:53,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1285:53,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1287:54,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1290:54,3 [15] StringLiterals.cshtml) - Html - This is line 55 - RazorIRToken - (1305:54,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1309:54,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1311:55,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1314:55,3 [15] StringLiterals.cshtml) - Html - This is line 56 - RazorIRToken - (1329:55,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1333:55,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1335:56,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1338:56,3 [15] StringLiterals.cshtml) - Html - This is line 57 - RazorIRToken - (1353:56,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1357:56,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1359:57,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1362:57,3 [15] StringLiterals.cshtml) - Html - This is line 58 - RazorIRToken - (1377:57,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1381:57,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1383:58,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1386:58,3 [15] StringLiterals.cshtml) - Html - This is line 59 - RazorIRToken - (1401:58,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1405:58,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1407:59,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1410:59,3 [15] StringLiterals.cshtml) - Html - This is line 60 - RazorIRToken - (1425:59,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1429:59,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1431:60,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1434:60,3 [15] StringLiterals.cshtml) - Html - This is line 61 - RazorIRToken - (1449:60,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1453:60,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1455:61,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1458:61,3 [15] StringLiterals.cshtml) - Html - This is line 62 - RazorIRToken - (1473:61,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1477:61,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1479:62,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1482:62,3 [15] StringLiterals.cshtml) - Html - This is line 63 - RazorIRToken - (1497:62,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1501:62,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1503:63,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1506:63,3 [15] StringLiterals.cshtml) - Html - This is line 64 - RazorIRToken - (1521:63,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1525:63,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1527:64,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1530:64,3 [15] StringLiterals.cshtml) - Html - This is line 65 - RazorIRToken - (1545:64,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1549:64,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1551:65,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1554:65,3 [15] StringLiterals.cshtml) - Html - This is line 66 - RazorIRToken - (1569:65,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1573:65,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1575:66,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1578:66,3 [15] StringLiterals.cshtml) - Html - This is line 67 - RazorIRToken - (1593:66,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1597:66,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1599:67,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1602:67,3 [15] StringLiterals.cshtml) - Html - This is line 68 - RazorIRToken - (1617:67,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1621:67,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1623:68,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1626:68,3 [15] StringLiterals.cshtml) - Html - This is line 69 - RazorIRToken - (1641:68,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1645:68,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1647:69,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1650:69,3 [15] StringLiterals.cshtml) - Html - This is line 70 - RazorIRToken - (1665:69,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1669:69,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1671:70,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1674:70,3 [15] StringLiterals.cshtml) - Html - This is line 71 - RazorIRToken - (1689:70,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1693:70,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1695:71,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1698:71,3 [15] StringLiterals.cshtml) - Html - This is line 72 - RazorIRToken - (1713:71,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1717:71,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1719:72,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1722:72,3 [15] StringLiterals.cshtml) - Html - This is line 73 - RazorIRToken - (1737:72,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1741:72,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1743:73,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1746:73,3 [15] StringLiterals.cshtml) - Html - This is line 74 - RazorIRToken - (1761:73,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1765:73,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1767:74,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1770:74,3 [15] StringLiterals.cshtml) - Html - This is line 75 - RazorIRToken - (1785:74,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1789:74,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1791:75,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1794:75,3 [15] StringLiterals.cshtml) - Html - This is line 76 - RazorIRToken - (1809:75,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1813:75,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1815:76,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1818:76,3 [15] StringLiterals.cshtml) - Html - This is line 77 - RazorIRToken - (1833:76,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1837:76,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1839:77,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1842:77,3 [15] StringLiterals.cshtml) - Html - This is line 78 - RazorIRToken - (1857:77,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1861:77,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1863:78,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1866:78,3 [15] StringLiterals.cshtml) - Html - This is line 79 - RazorIRToken - (1881:78,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1885:78,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1887:79,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1890:79,3 [15] StringLiterals.cshtml) - Html - This is line 80 - RazorIRToken - (1905:79,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1909:79,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1911:80,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1914:80,3 [15] StringLiterals.cshtml) - Html - This is line 81 - RazorIRToken - (1929:80,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1933:80,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1935:81,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1938:81,3 [15] StringLiterals.cshtml) - Html - This is line 82 - RazorIRToken - (1953:81,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1957:81,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1959:82,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1962:82,3 [15] StringLiterals.cshtml) - Html - This is line 83 - RazorIRToken - (1977:82,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (1981:82,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (1983:83,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (1986:83,3 [15] StringLiterals.cshtml) - Html - This is line 84 - RazorIRToken - (2001:83,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2005:83,22 [4] StringLiterals.cshtml) - Html -
- RazorIRToken - (2009:83,26 [4] StringLiterals.cshtml) - Html - \n\n + IntermediateToken - (0:0,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3:0,3 [14] StringLiterals.cshtml) - Html - This is line 1 + IntermediateToken - (17:0,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (21:0,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (23:1,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (26:1,3 [14] StringLiterals.cshtml) - Html - This is line 2 + IntermediateToken - (40:1,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (44:1,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (46:2,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (49:2,3 [14] StringLiterals.cshtml) - Html - This is line 3 + IntermediateToken - (63:2,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (67:2,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (69:3,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (72:3,3 [14] StringLiterals.cshtml) - Html - This is line 4 + IntermediateToken - (86:3,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (90:3,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (92:4,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (95:4,3 [14] StringLiterals.cshtml) - Html - This is line 5 + IntermediateToken - (109:4,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (113:4,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (115:5,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (118:5,3 [14] StringLiterals.cshtml) - Html - This is line 6 + IntermediateToken - (132:5,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (136:5,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (138:6,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (141:6,3 [14] StringLiterals.cshtml) - Html - This is line 7 + IntermediateToken - (155:6,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (159:6,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (161:7,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (164:7,3 [14] StringLiterals.cshtml) - Html - This is line 8 + IntermediateToken - (178:7,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (182:7,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (184:8,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (187:8,3 [14] StringLiterals.cshtml) - Html - This is line 9 + IntermediateToken - (201:8,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (205:8,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (207:9,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (210:9,3 [15] StringLiterals.cshtml) - Html - This is line 10 + IntermediateToken - (225:9,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (229:9,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (231:10,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (234:10,3 [15] StringLiterals.cshtml) - Html - This is line 11 + IntermediateToken - (249:10,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (253:10,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (255:11,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (258:11,3 [15] StringLiterals.cshtml) - Html - This is line 12 + IntermediateToken - (273:11,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (277:11,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (279:12,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (282:12,3 [15] StringLiterals.cshtml) - Html - This is line 13 + IntermediateToken - (297:12,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (301:12,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (303:13,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (306:13,3 [15] StringLiterals.cshtml) - Html - This is line 14 + IntermediateToken - (321:13,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (325:13,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (327:14,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (330:14,3 [15] StringLiterals.cshtml) - Html - This is line 15 + IntermediateToken - (345:14,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (349:14,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (351:15,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (354:15,3 [15] StringLiterals.cshtml) - Html - This is line 16 + IntermediateToken - (369:15,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (373:15,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (375:16,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (378:16,3 [15] StringLiterals.cshtml) - Html - This is line 17 + IntermediateToken - (393:16,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (397:16,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (399:17,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (402:17,3 [15] StringLiterals.cshtml) - Html - This is line 18 + IntermediateToken - (417:17,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (421:17,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (423:18,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (426:18,3 [15] StringLiterals.cshtml) - Html - This is line 19 + IntermediateToken - (441:18,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (445:18,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (447:19,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (450:19,3 [15] StringLiterals.cshtml) - Html - This is line 20 + IntermediateToken - (465:19,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (469:19,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (471:20,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (474:20,3 [15] StringLiterals.cshtml) - Html - This is line 21 + IntermediateToken - (489:20,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (493:20,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (495:21,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (498:21,3 [15] StringLiterals.cshtml) - Html - This is line 22 + IntermediateToken - (513:21,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (517:21,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (519:22,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (522:22,3 [15] StringLiterals.cshtml) - Html - This is line 23 + IntermediateToken - (537:22,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (541:22,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (543:23,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (546:23,3 [15] StringLiterals.cshtml) - Html - This is line 24 + IntermediateToken - (561:23,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (565:23,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (567:24,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (570:24,3 [15] StringLiterals.cshtml) - Html - This is line 25 + IntermediateToken - (585:24,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (589:24,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (591:25,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (594:25,3 [15] StringLiterals.cshtml) - Html - This is line 26 + IntermediateToken - (609:25,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (613:25,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (615:26,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (618:26,3 [15] StringLiterals.cshtml) - Html - This is line 27 + IntermediateToken - (633:26,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (637:26,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (639:27,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (642:27,3 [15] StringLiterals.cshtml) - Html - This is line 28 + IntermediateToken - (657:27,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (661:27,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (663:28,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (666:28,3 [15] StringLiterals.cshtml) - Html - This is line 29 + IntermediateToken - (681:28,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (685:28,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (687:29,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (690:29,3 [15] StringLiterals.cshtml) - Html - This is line 30 + IntermediateToken - (705:29,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (709:29,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (711:30,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (714:30,3 [15] StringLiterals.cshtml) - Html - This is line 31 + IntermediateToken - (729:30,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (733:30,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (735:31,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (738:31,3 [15] StringLiterals.cshtml) - Html - This is line 32 + IntermediateToken - (753:31,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (757:31,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (759:32,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (762:32,3 [15] StringLiterals.cshtml) - Html - This is line 33 + IntermediateToken - (777:32,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (781:32,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (783:33,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (786:33,3 [15] StringLiterals.cshtml) - Html - This is line 34 + IntermediateToken - (801:33,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (805:33,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (807:34,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (810:34,3 [15] StringLiterals.cshtml) - Html - This is line 35 + IntermediateToken - (825:34,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (829:34,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (831:35,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (834:35,3 [15] StringLiterals.cshtml) - Html - This is line 36 + IntermediateToken - (849:35,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (853:35,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (855:36,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (858:36,3 [15] StringLiterals.cshtml) - Html - This is line 37 + IntermediateToken - (873:36,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (877:36,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (879:37,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (882:37,3 [15] StringLiterals.cshtml) - Html - This is line 38 + IntermediateToken - (897:37,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (901:37,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (903:38,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (906:38,3 [15] StringLiterals.cshtml) - Html - This is line 39 + IntermediateToken - (921:38,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (925:38,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (927:39,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (930:39,3 [15] StringLiterals.cshtml) - Html - This is line 40 + IntermediateToken - (945:39,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (949:39,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (951:40,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (954:40,3 [15] StringLiterals.cshtml) - Html - This is line 41 + IntermediateToken - (969:40,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (973:40,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (975:41,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (978:41,3 [15] StringLiterals.cshtml) - Html - This is line 42 + IntermediateToken - (993:41,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (997:41,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (999:42,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1002:42,3 [15] StringLiterals.cshtml) - Html - This is line 43 + IntermediateToken - (1017:42,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1021:42,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1023:43,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1026:43,3 [15] StringLiterals.cshtml) - Html - This is line 44 + IntermediateToken - (1041:43,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1045:43,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1047:44,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1050:44,3 [15] StringLiterals.cshtml) - Html - This is line 45 + IntermediateToken - (1065:44,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1069:44,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1071:45,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1074:45,3 [15] StringLiterals.cshtml) - Html - This is line 46 + IntermediateToken - (1089:45,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1093:45,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1095:46,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1098:46,3 [15] StringLiterals.cshtml) - Html - This is line 47 + IntermediateToken - (1113:46,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1117:46,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1119:47,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1122:47,3 [15] StringLiterals.cshtml) - Html - This is line 48 + IntermediateToken - (1137:47,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1141:47,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1143:48,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1146:48,3 [15] StringLiterals.cshtml) - Html - This is line 49 + IntermediateToken - (1161:48,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1165:48,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1167:49,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1170:49,3 [15] StringLiterals.cshtml) - Html - This is line 50 + IntermediateToken - (1185:49,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1189:49,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1191:50,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1194:50,3 [15] StringLiterals.cshtml) - Html - This is line 51 + IntermediateToken - (1209:50,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1213:50,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1215:51,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1218:51,3 [15] StringLiterals.cshtml) - Html - This is line 52 + IntermediateToken - (1233:51,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1237:51,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1239:52,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1242:52,3 [15] StringLiterals.cshtml) - Html - This is line 53 + IntermediateToken - (1257:52,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1261:52,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1263:53,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1266:53,3 [15] StringLiterals.cshtml) - Html - This is line 54 + IntermediateToken - (1281:53,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1285:53,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1287:54,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1290:54,3 [15] StringLiterals.cshtml) - Html - This is line 55 + IntermediateToken - (1305:54,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1309:54,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1311:55,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1314:55,3 [15] StringLiterals.cshtml) - Html - This is line 56 + IntermediateToken - (1329:55,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1333:55,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1335:56,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1338:56,3 [15] StringLiterals.cshtml) - Html - This is line 57 + IntermediateToken - (1353:56,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1357:56,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1359:57,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1362:57,3 [15] StringLiterals.cshtml) - Html - This is line 58 + IntermediateToken - (1377:57,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1381:57,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1383:58,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1386:58,3 [15] StringLiterals.cshtml) - Html - This is line 59 + IntermediateToken - (1401:58,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1405:58,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1407:59,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1410:59,3 [15] StringLiterals.cshtml) - Html - This is line 60 + IntermediateToken - (1425:59,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1429:59,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1431:60,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1434:60,3 [15] StringLiterals.cshtml) - Html - This is line 61 + IntermediateToken - (1449:60,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1453:60,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1455:61,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1458:61,3 [15] StringLiterals.cshtml) - Html - This is line 62 + IntermediateToken - (1473:61,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1477:61,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1479:62,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1482:62,3 [15] StringLiterals.cshtml) - Html - This is line 63 + IntermediateToken - (1497:62,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1501:62,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1503:63,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1506:63,3 [15] StringLiterals.cshtml) - Html - This is line 64 + IntermediateToken - (1521:63,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1525:63,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1527:64,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1530:64,3 [15] StringLiterals.cshtml) - Html - This is line 65 + IntermediateToken - (1545:64,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1549:64,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1551:65,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1554:65,3 [15] StringLiterals.cshtml) - Html - This is line 66 + IntermediateToken - (1569:65,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1573:65,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1575:66,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1578:66,3 [15] StringLiterals.cshtml) - Html - This is line 67 + IntermediateToken - (1593:66,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1597:66,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1599:67,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1602:67,3 [15] StringLiterals.cshtml) - Html - This is line 68 + IntermediateToken - (1617:67,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1621:67,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1623:68,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1626:68,3 [15] StringLiterals.cshtml) - Html - This is line 69 + IntermediateToken - (1641:68,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1645:68,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1647:69,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1650:69,3 [15] StringLiterals.cshtml) - Html - This is line 70 + IntermediateToken - (1665:69,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1669:69,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1671:70,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1674:70,3 [15] StringLiterals.cshtml) - Html - This is line 71 + IntermediateToken - (1689:70,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1693:70,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1695:71,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1698:71,3 [15] StringLiterals.cshtml) - Html - This is line 72 + IntermediateToken - (1713:71,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1717:71,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1719:72,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1722:72,3 [15] StringLiterals.cshtml) - Html - This is line 73 + IntermediateToken - (1737:72,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1741:72,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1743:73,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1746:73,3 [15] StringLiterals.cshtml) - Html - This is line 74 + IntermediateToken - (1761:73,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1765:73,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1767:74,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1770:74,3 [15] StringLiterals.cshtml) - Html - This is line 75 + IntermediateToken - (1785:74,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1789:74,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1791:75,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1794:75,3 [15] StringLiterals.cshtml) - Html - This is line 76 + IntermediateToken - (1809:75,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1813:75,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1815:76,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1818:76,3 [15] StringLiterals.cshtml) - Html - This is line 77 + IntermediateToken - (1833:76,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1837:76,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1839:77,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1842:77,3 [15] StringLiterals.cshtml) - Html - This is line 78 + IntermediateToken - (1857:77,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1861:77,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1863:78,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1866:78,3 [15] StringLiterals.cshtml) - Html - This is line 79 + IntermediateToken - (1881:78,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1885:78,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1887:79,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1890:79,3 [15] StringLiterals.cshtml) - Html - This is line 80 + IntermediateToken - (1905:79,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1909:79,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1911:80,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1914:80,3 [15] StringLiterals.cshtml) - Html - This is line 81 + IntermediateToken - (1929:80,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1933:80,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1935:81,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1938:81,3 [15] StringLiterals.cshtml) - Html - This is line 82 + IntermediateToken - (1953:81,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1957:81,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1959:82,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1962:82,3 [15] StringLiterals.cshtml) - Html - This is line 83 + IntermediateToken - (1977:82,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1981:82,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (1983:83,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (1986:83,3 [15] StringLiterals.cshtml) - Html - This is line 84 + IntermediateToken - (2001:83,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2005:83,22 [4] StringLiterals.cshtml) - Html -
+ IntermediateToken - (2009:83,26 [4] StringLiterals.cshtml) - Html - \n\n Section - - WriteLiteralsToInHere HtmlContent - (2045:85,32 [2618] StringLiterals.cshtml) - RazorIRToken - (2045:85,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2051:86,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2054:86,7 [21] StringLiterals.cshtml) - Html - This is line 1 nested - RazorIRToken - (2075:86,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2079:86,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2085:87,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2088:87,7 [21] StringLiterals.cshtml) - Html - This is line 2 nested - RazorIRToken - (2109:87,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2113:87,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2119:88,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2122:88,7 [21] StringLiterals.cshtml) - Html - This is line 3 nested - RazorIRToken - (2143:88,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2147:88,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2153:89,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2156:89,7 [21] StringLiterals.cshtml) - Html - This is line 4 nested - RazorIRToken - (2177:89,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2181:89,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2187:90,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2190:90,7 [21] StringLiterals.cshtml) - Html - This is line 5 nested - RazorIRToken - (2211:90,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2215:90,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2221:91,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2224:91,7 [21] StringLiterals.cshtml) - Html - This is line 6 nested - RazorIRToken - (2245:91,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2249:91,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2255:92,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2258:92,7 [21] StringLiterals.cshtml) - Html - This is line 7 nested - RazorIRToken - (2279:92,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2283:92,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2289:93,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2292:93,7 [21] StringLiterals.cshtml) - Html - This is line 8 nested - RazorIRToken - (2313:93,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2317:93,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2323:94,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2326:94,7 [21] StringLiterals.cshtml) - Html - This is line 9 nested - RazorIRToken - (2347:94,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2351:94,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2357:95,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2360:95,7 [22] StringLiterals.cshtml) - Html - This is line 10 nested - RazorIRToken - (2382:95,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2386:95,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2392:96,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2395:96,7 [22] StringLiterals.cshtml) - Html - This is line 11 nested - RazorIRToken - (2417:96,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2421:96,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2427:97,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2430:97,7 [22] StringLiterals.cshtml) - Html - This is line 12 nested - RazorIRToken - (2452:97,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2456:97,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2462:98,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2465:98,7 [22] StringLiterals.cshtml) - Html - This is line 13 nested - RazorIRToken - (2487:98,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2491:98,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2497:99,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2500:99,7 [22] StringLiterals.cshtml) - Html - This is line 14 nested - RazorIRToken - (2522:99,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2526:99,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2532:100,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2535:100,7 [22] StringLiterals.cshtml) - Html - This is line 15 nested - RazorIRToken - (2557:100,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2561:100,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2567:101,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2570:101,7 [22] StringLiterals.cshtml) - Html - This is line 16 nested - RazorIRToken - (2592:101,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2596:101,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2602:102,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2605:102,7 [22] StringLiterals.cshtml) - Html - This is line 17 nested - RazorIRToken - (2627:102,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2631:102,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2637:103,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2640:103,7 [22] StringLiterals.cshtml) - Html - This is line 18 nested - RazorIRToken - (2662:103,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2666:103,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2672:104,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2675:104,7 [22] StringLiterals.cshtml) - Html - This is line 19 nested - RazorIRToken - (2697:104,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2701:104,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2707:105,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2710:105,7 [22] StringLiterals.cshtml) - Html - This is line 20 nested - RazorIRToken - (2732:105,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2736:105,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2742:106,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2745:106,7 [22] StringLiterals.cshtml) - Html - This is line 21 nested - RazorIRToken - (2767:106,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2771:106,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2777:107,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2780:107,7 [22] StringLiterals.cshtml) - Html - This is line 22 nested - RazorIRToken - (2802:107,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2806:107,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2812:108,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2815:108,7 [22] StringLiterals.cshtml) - Html - This is line 23 nested - RazorIRToken - (2837:108,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2841:108,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2847:109,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2850:109,7 [22] StringLiterals.cshtml) - Html - This is line 24 nested - RazorIRToken - (2872:109,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2876:109,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2882:110,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2885:110,7 [22] StringLiterals.cshtml) - Html - This is line 25 nested - RazorIRToken - (2907:110,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2911:110,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2917:111,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2920:111,7 [22] StringLiterals.cshtml) - Html - This is line 26 nested - RazorIRToken - (2942:111,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2946:111,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2952:112,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2955:112,7 [22] StringLiterals.cshtml) - Html - This is line 27 nested - RazorIRToken - (2977:112,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (2981:112,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (2987:113,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (2990:113,7 [22] StringLiterals.cshtml) - Html - This is line 28 nested - RazorIRToken - (3012:113,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3016:113,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3022:114,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3025:114,7 [22] StringLiterals.cshtml) - Html - This is line 29 nested - RazorIRToken - (3047:114,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3051:114,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3057:115,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3060:115,7 [22] StringLiterals.cshtml) - Html - This is line 30 nested - RazorIRToken - (3082:115,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3086:115,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3092:116,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3095:116,7 [22] StringLiterals.cshtml) - Html - This is line 31 nested - RazorIRToken - (3117:116,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3121:116,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3127:117,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3130:117,7 [22] StringLiterals.cshtml) - Html - This is line 32 nested - RazorIRToken - (3152:117,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3156:117,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3162:118,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3165:118,7 [22] StringLiterals.cshtml) - Html - This is line 33 nested - RazorIRToken - (3187:118,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3191:118,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3197:119,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3200:119,7 [22] StringLiterals.cshtml) - Html - This is line 34 nested - RazorIRToken - (3222:119,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3226:119,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3232:120,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3235:120,7 [22] StringLiterals.cshtml) - Html - This is line 35 nested - RazorIRToken - (3257:120,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3261:120,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3267:121,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3270:121,7 [22] StringLiterals.cshtml) - Html - This is line 36 nested - RazorIRToken - (3292:121,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3296:121,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3302:122,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3305:122,7 [22] StringLiterals.cshtml) - Html - This is line 37 nested - RazorIRToken - (3327:122,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3331:122,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3337:123,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3340:123,7 [22] StringLiterals.cshtml) - Html - This is line 38 nested - RazorIRToken - (3362:123,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3366:123,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3372:124,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3375:124,7 [22] StringLiterals.cshtml) - Html - This is line 39 nested - RazorIRToken - (3397:124,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3401:124,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3407:125,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3410:125,7 [22] StringLiterals.cshtml) - Html - This is line 40 nested - RazorIRToken - (3432:125,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3436:125,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3442:126,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3445:126,7 [22] StringLiterals.cshtml) - Html - This is line 41 nested - RazorIRToken - (3467:126,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3471:126,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3477:127,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3480:127,7 [22] StringLiterals.cshtml) - Html - This is line 42 nested - RazorIRToken - (3502:127,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3506:127,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3512:128,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3515:128,7 [22] StringLiterals.cshtml) - Html - This is line 43 nested - RazorIRToken - (3537:128,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3541:128,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3547:129,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3550:129,7 [22] StringLiterals.cshtml) - Html - This is line 44 nested - RazorIRToken - (3572:129,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3576:129,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3582:130,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3585:130,7 [22] StringLiterals.cshtml) - Html - This is line 45 nested - RazorIRToken - (3607:130,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3611:130,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3617:131,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3620:131,7 [22] StringLiterals.cshtml) - Html - This is line 46 nested - RazorIRToken - (3642:131,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3646:131,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3652:132,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3655:132,7 [22] StringLiterals.cshtml) - Html - This is line 47 nested - RazorIRToken - (3677:132,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3681:132,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3687:133,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3690:133,7 [22] StringLiterals.cshtml) - Html - This is line 48 nested - RazorIRToken - (3712:133,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3716:133,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3722:134,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3725:134,7 [22] StringLiterals.cshtml) - Html - This is line 49 nested - RazorIRToken - (3747:134,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3751:134,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3757:135,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3760:135,7 [22] StringLiterals.cshtml) - Html - This is line 50 nested - RazorIRToken - (3782:135,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3786:135,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3792:136,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3795:136,7 [22] StringLiterals.cshtml) - Html - This is line 51 nested - RazorIRToken - (3817:136,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3821:136,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3827:137,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3830:137,7 [22] StringLiterals.cshtml) - Html - This is line 52 nested - RazorIRToken - (3852:137,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3856:137,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3862:138,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3865:138,7 [22] StringLiterals.cshtml) - Html - This is line 53 nested - RazorIRToken - (3887:138,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3891:138,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3897:139,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3900:139,7 [22] StringLiterals.cshtml) - Html - This is line 54 nested - RazorIRToken - (3922:139,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3926:139,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3932:140,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3935:140,7 [22] StringLiterals.cshtml) - Html - This is line 55 nested - RazorIRToken - (3957:140,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3961:140,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (3967:141,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (3970:141,7 [22] StringLiterals.cshtml) - Html - This is line 56 nested - RazorIRToken - (3992:141,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (3996:141,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4002:142,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4005:142,7 [22] StringLiterals.cshtml) - Html - This is line 57 nested - RazorIRToken - (4027:142,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4031:142,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4037:143,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4040:143,7 [22] StringLiterals.cshtml) - Html - This is line 58 nested - RazorIRToken - (4062:143,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4066:143,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4072:144,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4075:144,7 [22] StringLiterals.cshtml) - Html - This is line 59 nested - RazorIRToken - (4097:144,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4101:144,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4107:145,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4110:145,7 [22] StringLiterals.cshtml) - Html - This is line 60 nested - RazorIRToken - (4132:145,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4136:145,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4142:146,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4145:146,7 [22] StringLiterals.cshtml) - Html - This is line 61 nested - RazorIRToken - (4167:146,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4171:146,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4177:147,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4180:147,7 [22] StringLiterals.cshtml) - Html - This is line 62 nested - RazorIRToken - (4202:147,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4206:147,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4212:148,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4215:148,7 [22] StringLiterals.cshtml) - Html - This is line 63 nested - RazorIRToken - (4237:148,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4241:148,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4247:149,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4250:149,7 [22] StringLiterals.cshtml) - Html - This is line 64 nested - RazorIRToken - (4272:149,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4276:149,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4282:150,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4285:150,7 [22] StringLiterals.cshtml) - Html - This is line 65 nested - RazorIRToken - (4307:150,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4311:150,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4317:151,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4320:151,7 [22] StringLiterals.cshtml) - Html - This is line 66 nested - RazorIRToken - (4342:151,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4346:151,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4352:152,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4355:152,7 [22] StringLiterals.cshtml) - Html - This is line 67 nested - RazorIRToken - (4377:152,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4381:152,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4387:153,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4390:153,7 [22] StringLiterals.cshtml) - Html - This is line 68 nested - RazorIRToken - (4412:153,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4416:153,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4422:154,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4425:154,7 [22] StringLiterals.cshtml) - Html - This is line 69 nested - RazorIRToken - (4447:154,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4451:154,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4457:155,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4460:155,7 [22] StringLiterals.cshtml) - Html - This is line 70 nested - RazorIRToken - (4482:155,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4486:155,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4492:156,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4495:156,7 [22] StringLiterals.cshtml) - Html - This is line 71 nested - RazorIRToken - (4517:156,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4521:156,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4527:157,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4530:157,7 [22] StringLiterals.cshtml) - Html - This is line 72 nested - RazorIRToken - (4552:157,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4556:157,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4562:158,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4565:158,7 [22] StringLiterals.cshtml) - Html - This is line 73 nested - RazorIRToken - (4587:158,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4591:158,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4597:159,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4600:159,7 [22] StringLiterals.cshtml) - Html - This is line 74 nested - RazorIRToken - (4622:159,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4626:159,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4632:160,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4635:160,7 [22] StringLiterals.cshtml) - Html - This is line 75 nested - RazorIRToken - (4657:160,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4661:160,33 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2045:85,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2051:86,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2054:86,7 [21] StringLiterals.cshtml) - Html - This is line 1 nested + IntermediateToken - (2075:86,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2079:86,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2085:87,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2088:87,7 [21] StringLiterals.cshtml) - Html - This is line 2 nested + IntermediateToken - (2109:87,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2113:87,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2119:88,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2122:88,7 [21] StringLiterals.cshtml) - Html - This is line 3 nested + IntermediateToken - (2143:88,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2147:88,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2153:89,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2156:89,7 [21] StringLiterals.cshtml) - Html - This is line 4 nested + IntermediateToken - (2177:89,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2181:89,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2187:90,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2190:90,7 [21] StringLiterals.cshtml) - Html - This is line 5 nested + IntermediateToken - (2211:90,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2215:90,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2221:91,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2224:91,7 [21] StringLiterals.cshtml) - Html - This is line 6 nested + IntermediateToken - (2245:91,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2249:91,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2255:92,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2258:92,7 [21] StringLiterals.cshtml) - Html - This is line 7 nested + IntermediateToken - (2279:92,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2283:92,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2289:93,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2292:93,7 [21] StringLiterals.cshtml) - Html - This is line 8 nested + IntermediateToken - (2313:93,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2317:93,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2323:94,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2326:94,7 [21] StringLiterals.cshtml) - Html - This is line 9 nested + IntermediateToken - (2347:94,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2351:94,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2357:95,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2360:95,7 [22] StringLiterals.cshtml) - Html - This is line 10 nested + IntermediateToken - (2382:95,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2386:95,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2392:96,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2395:96,7 [22] StringLiterals.cshtml) - Html - This is line 11 nested + IntermediateToken - (2417:96,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2421:96,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2427:97,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2430:97,7 [22] StringLiterals.cshtml) - Html - This is line 12 nested + IntermediateToken - (2452:97,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2456:97,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2462:98,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2465:98,7 [22] StringLiterals.cshtml) - Html - This is line 13 nested + IntermediateToken - (2487:98,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2491:98,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2497:99,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2500:99,7 [22] StringLiterals.cshtml) - Html - This is line 14 nested + IntermediateToken - (2522:99,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2526:99,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2532:100,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2535:100,7 [22] StringLiterals.cshtml) - Html - This is line 15 nested + IntermediateToken - (2557:100,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2561:100,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2567:101,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2570:101,7 [22] StringLiterals.cshtml) - Html - This is line 16 nested + IntermediateToken - (2592:101,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2596:101,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2602:102,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2605:102,7 [22] StringLiterals.cshtml) - Html - This is line 17 nested + IntermediateToken - (2627:102,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2631:102,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2637:103,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2640:103,7 [22] StringLiterals.cshtml) - Html - This is line 18 nested + IntermediateToken - (2662:103,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2666:103,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2672:104,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2675:104,7 [22] StringLiterals.cshtml) - Html - This is line 19 nested + IntermediateToken - (2697:104,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2701:104,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2707:105,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2710:105,7 [22] StringLiterals.cshtml) - Html - This is line 20 nested + IntermediateToken - (2732:105,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2736:105,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2742:106,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2745:106,7 [22] StringLiterals.cshtml) - Html - This is line 21 nested + IntermediateToken - (2767:106,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2771:106,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2777:107,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2780:107,7 [22] StringLiterals.cshtml) - Html - This is line 22 nested + IntermediateToken - (2802:107,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2806:107,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2812:108,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2815:108,7 [22] StringLiterals.cshtml) - Html - This is line 23 nested + IntermediateToken - (2837:108,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2841:108,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2847:109,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2850:109,7 [22] StringLiterals.cshtml) - Html - This is line 24 nested + IntermediateToken - (2872:109,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2876:109,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2882:110,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2885:110,7 [22] StringLiterals.cshtml) - Html - This is line 25 nested + IntermediateToken - (2907:110,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2911:110,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2917:111,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2920:111,7 [22] StringLiterals.cshtml) - Html - This is line 26 nested + IntermediateToken - (2942:111,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2946:111,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2952:112,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2955:112,7 [22] StringLiterals.cshtml) - Html - This is line 27 nested + IntermediateToken - (2977:112,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2981:112,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (2987:113,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (2990:113,7 [22] StringLiterals.cshtml) - Html - This is line 28 nested + IntermediateToken - (3012:113,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3016:113,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3022:114,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3025:114,7 [22] StringLiterals.cshtml) - Html - This is line 29 nested + IntermediateToken - (3047:114,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3051:114,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3057:115,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3060:115,7 [22] StringLiterals.cshtml) - Html - This is line 30 nested + IntermediateToken - (3082:115,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3086:115,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3092:116,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3095:116,7 [22] StringLiterals.cshtml) - Html - This is line 31 nested + IntermediateToken - (3117:116,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3121:116,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3127:117,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3130:117,7 [22] StringLiterals.cshtml) - Html - This is line 32 nested + IntermediateToken - (3152:117,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3156:117,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3162:118,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3165:118,7 [22] StringLiterals.cshtml) - Html - This is line 33 nested + IntermediateToken - (3187:118,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3191:118,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3197:119,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3200:119,7 [22] StringLiterals.cshtml) - Html - This is line 34 nested + IntermediateToken - (3222:119,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3226:119,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3232:120,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3235:120,7 [22] StringLiterals.cshtml) - Html - This is line 35 nested + IntermediateToken - (3257:120,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3261:120,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3267:121,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3270:121,7 [22] StringLiterals.cshtml) - Html - This is line 36 nested + IntermediateToken - (3292:121,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3296:121,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3302:122,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3305:122,7 [22] StringLiterals.cshtml) - Html - This is line 37 nested + IntermediateToken - (3327:122,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3331:122,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3337:123,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3340:123,7 [22] StringLiterals.cshtml) - Html - This is line 38 nested + IntermediateToken - (3362:123,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3366:123,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3372:124,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3375:124,7 [22] StringLiterals.cshtml) - Html - This is line 39 nested + IntermediateToken - (3397:124,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3401:124,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3407:125,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3410:125,7 [22] StringLiterals.cshtml) - Html - This is line 40 nested + IntermediateToken - (3432:125,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3436:125,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3442:126,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3445:126,7 [22] StringLiterals.cshtml) - Html - This is line 41 nested + IntermediateToken - (3467:126,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3471:126,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3477:127,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3480:127,7 [22] StringLiterals.cshtml) - Html - This is line 42 nested + IntermediateToken - (3502:127,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3506:127,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3512:128,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3515:128,7 [22] StringLiterals.cshtml) - Html - This is line 43 nested + IntermediateToken - (3537:128,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3541:128,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3547:129,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3550:129,7 [22] StringLiterals.cshtml) - Html - This is line 44 nested + IntermediateToken - (3572:129,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3576:129,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3582:130,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3585:130,7 [22] StringLiterals.cshtml) - Html - This is line 45 nested + IntermediateToken - (3607:130,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3611:130,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3617:131,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3620:131,7 [22] StringLiterals.cshtml) - Html - This is line 46 nested + IntermediateToken - (3642:131,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3646:131,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3652:132,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3655:132,7 [22] StringLiterals.cshtml) - Html - This is line 47 nested + IntermediateToken - (3677:132,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3681:132,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3687:133,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3690:133,7 [22] StringLiterals.cshtml) - Html - This is line 48 nested + IntermediateToken - (3712:133,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3716:133,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3722:134,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3725:134,7 [22] StringLiterals.cshtml) - Html - This is line 49 nested + IntermediateToken - (3747:134,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3751:134,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3757:135,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3760:135,7 [22] StringLiterals.cshtml) - Html - This is line 50 nested + IntermediateToken - (3782:135,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3786:135,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3792:136,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3795:136,7 [22] StringLiterals.cshtml) - Html - This is line 51 nested + IntermediateToken - (3817:136,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3821:136,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3827:137,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3830:137,7 [22] StringLiterals.cshtml) - Html - This is line 52 nested + IntermediateToken - (3852:137,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3856:137,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3862:138,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3865:138,7 [22] StringLiterals.cshtml) - Html - This is line 53 nested + IntermediateToken - (3887:138,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3891:138,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3897:139,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3900:139,7 [22] StringLiterals.cshtml) - Html - This is line 54 nested + IntermediateToken - (3922:139,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3926:139,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3932:140,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3935:140,7 [22] StringLiterals.cshtml) - Html - This is line 55 nested + IntermediateToken - (3957:140,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3961:140,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (3967:141,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3970:141,7 [22] StringLiterals.cshtml) - Html - This is line 56 nested + IntermediateToken - (3992:141,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (3996:141,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4002:142,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4005:142,7 [22] StringLiterals.cshtml) - Html - This is line 57 nested + IntermediateToken - (4027:142,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4031:142,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4037:143,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4040:143,7 [22] StringLiterals.cshtml) - Html - This is line 58 nested + IntermediateToken - (4062:143,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4066:143,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4072:144,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4075:144,7 [22] StringLiterals.cshtml) - Html - This is line 59 nested + IntermediateToken - (4097:144,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4101:144,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4107:145,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4110:145,7 [22] StringLiterals.cshtml) - Html - This is line 60 nested + IntermediateToken - (4132:145,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4136:145,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4142:146,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4145:146,7 [22] StringLiterals.cshtml) - Html - This is line 61 nested + IntermediateToken - (4167:146,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4171:146,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4177:147,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4180:147,7 [22] StringLiterals.cshtml) - Html - This is line 62 nested + IntermediateToken - (4202:147,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4206:147,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4212:148,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4215:148,7 [22] StringLiterals.cshtml) - Html - This is line 63 nested + IntermediateToken - (4237:148,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4241:148,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4247:149,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4250:149,7 [22] StringLiterals.cshtml) - Html - This is line 64 nested + IntermediateToken - (4272:149,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4276:149,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4282:150,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4285:150,7 [22] StringLiterals.cshtml) - Html - This is line 65 nested + IntermediateToken - (4307:150,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4311:150,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4317:151,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4320:151,7 [22] StringLiterals.cshtml) - Html - This is line 66 nested + IntermediateToken - (4342:151,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4346:151,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4352:152,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4355:152,7 [22] StringLiterals.cshtml) - Html - This is line 67 nested + IntermediateToken - (4377:152,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4381:152,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4387:153,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4390:153,7 [22] StringLiterals.cshtml) - Html - This is line 68 nested + IntermediateToken - (4412:153,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4416:153,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4422:154,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4425:154,7 [22] StringLiterals.cshtml) - Html - This is line 69 nested + IntermediateToken - (4447:154,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4451:154,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4457:155,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4460:155,7 [22] StringLiterals.cshtml) - Html - This is line 70 nested + IntermediateToken - (4482:155,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4486:155,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4492:156,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4495:156,7 [22] StringLiterals.cshtml) - Html - This is line 71 nested + IntermediateToken - (4517:156,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4521:156,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4527:157,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4530:157,7 [22] StringLiterals.cshtml) - Html - This is line 72 nested + IntermediateToken - (4552:157,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4556:157,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4562:158,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4565:158,7 [22] StringLiterals.cshtml) - Html - This is line 73 nested + IntermediateToken - (4587:158,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4591:158,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4597:159,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4600:159,7 [22] StringLiterals.cshtml) - Html - This is line 74 nested + IntermediateToken - (4622:159,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4626:159,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4632:160,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4635:160,7 [22] StringLiterals.cshtml) - Html - This is line 75 nested + IntermediateToken - (4657:160,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4661:160,33 [2] StringLiterals.cshtml) - Html - \n HtmlContent - (4666:162,0 [1026] StringLiterals.cshtml) - RazorIRToken - (4666:162,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4669:162,3 [14] StringLiterals.cshtml) - Html - This is line 1 - RazorIRToken - (4683:162,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4687:162,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4689:163,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4692:163,3 [14] StringLiterals.cshtml) - Html - This is line 2 - RazorIRToken - (4706:163,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4710:163,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4712:164,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4715:164,3 [14] StringLiterals.cshtml) - Html - This is line 3 - RazorIRToken - (4729:164,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4733:164,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4735:165,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4738:165,3 [14] StringLiterals.cshtml) - Html - This is line 4 - RazorIRToken - (4752:165,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4756:165,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4758:166,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4761:166,3 [14] StringLiterals.cshtml) - Html - This is line 5 - RazorIRToken - (4775:166,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4779:166,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4781:167,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4784:167,3 [14] StringLiterals.cshtml) - Html - This is line 6 - RazorIRToken - (4798:167,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4802:167,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4804:168,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4807:168,3 [14] StringLiterals.cshtml) - Html - This is line 7 - RazorIRToken - (4821:168,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4825:168,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4827:169,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4830:169,3 [14] StringLiterals.cshtml) - Html - This is line 8 - RazorIRToken - (4844:169,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4848:169,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4850:170,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4853:170,3 [14] StringLiterals.cshtml) - Html - This is line 9 - RazorIRToken - (4867:170,17 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4871:170,21 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4873:171,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4876:171,3 [15] StringLiterals.cshtml) - Html - This is line 10 - RazorIRToken - (4891:171,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4895:171,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4897:172,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4900:172,3 [15] StringLiterals.cshtml) - Html - This is line 11 - RazorIRToken - (4915:172,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4919:172,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4921:173,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4924:173,3 [15] StringLiterals.cshtml) - Html - This is line 12 - RazorIRToken - (4939:173,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4943:173,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4945:174,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4948:174,3 [15] StringLiterals.cshtml) - Html - This is line 13 - RazorIRToken - (4963:174,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4967:174,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4969:175,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4972:175,3 [15] StringLiterals.cshtml) - Html - This is line 14 - RazorIRToken - (4987:175,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (4991:175,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (4993:176,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (4996:176,3 [15] StringLiterals.cshtml) - Html - This is line 15 - RazorIRToken - (5011:176,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5015:176,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5017:177,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5020:177,3 [15] StringLiterals.cshtml) - Html - This is line 16 - RazorIRToken - (5035:177,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5039:177,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5041:178,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5044:178,3 [15] StringLiterals.cshtml) - Html - This is line 17 - RazorIRToken - (5059:178,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5063:178,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5065:179,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5068:179,3 [15] StringLiterals.cshtml) - Html - This is line 18 - RazorIRToken - (5083:179,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5087:179,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5089:180,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5092:180,3 [15] StringLiterals.cshtml) - Html - This is line 19 - RazorIRToken - (5107:180,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5111:180,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5113:181,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5116:181,3 [15] StringLiterals.cshtml) - Html - This is line 20 - RazorIRToken - (5131:181,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5135:181,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5137:182,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5140:182,3 [15] StringLiterals.cshtml) - Html - This is line 21 - RazorIRToken - (5155:182,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5159:182,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5161:183,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5164:183,3 [15] StringLiterals.cshtml) - Html - This is line 22 - RazorIRToken - (5179:183,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5183:183,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5185:184,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5188:184,3 [15] StringLiterals.cshtml) - Html - This is line 23 - RazorIRToken - (5203:184,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5207:184,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5209:185,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5212:185,3 [15] StringLiterals.cshtml) - Html - This is line 24 - RazorIRToken - (5227:185,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5231:185,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5233:186,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5236:186,3 [15] StringLiterals.cshtml) - Html - This is line 25 - RazorIRToken - (5251:186,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5255:186,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5257:187,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5260:187,3 [15] StringLiterals.cshtml) - Html - This is line 26 - RazorIRToken - (5275:187,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5279:187,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5281:188,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5284:188,3 [15] StringLiterals.cshtml) - Html - This is line 27 - RazorIRToken - (5299:188,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5303:188,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5305:189,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5308:189,3 [15] StringLiterals.cshtml) - Html - This is line 28 - RazorIRToken - (5323:189,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5327:189,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5329:190,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5332:190,3 [15] StringLiterals.cshtml) - Html - This is line 29 - RazorIRToken - (5347:190,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5351:190,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5353:191,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5356:191,3 [15] StringLiterals.cshtml) - Html - This is line 30 - RazorIRToken - (5371:191,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5375:191,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5377:192,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5380:192,3 [15] StringLiterals.cshtml) - Html - This is line 31 - RazorIRToken - (5395:192,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5399:192,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5401:193,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5404:193,3 [15] StringLiterals.cshtml) - Html - This is line 32 - RazorIRToken - (5419:193,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5423:193,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5425:194,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5428:194,3 [15] StringLiterals.cshtml) - Html - This is line 33 - RazorIRToken - (5443:194,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5447:194,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5449:195,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5452:195,3 [15] StringLiterals.cshtml) - Html - This is line 34 - RazorIRToken - (5467:195,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5471:195,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5473:196,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5476:196,3 [15] StringLiterals.cshtml) - Html - This is line 35 - RazorIRToken - (5491:196,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5495:196,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5497:197,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5500:197,3 [15] StringLiterals.cshtml) - Html - This is line 36 - RazorIRToken - (5515:197,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5519:197,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5521:198,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5524:198,3 [15] StringLiterals.cshtml) - Html - This is line 37 - RazorIRToken - (5539:198,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5543:198,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5545:199,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5548:199,3 [15] StringLiterals.cshtml) - Html - This is line 38 - RazorIRToken - (5563:199,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5567:199,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5569:200,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5572:200,3 [15] StringLiterals.cshtml) - Html - This is line 39 - RazorIRToken - (5587:200,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5591:200,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5593:201,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5596:201,3 [15] StringLiterals.cshtml) - Html - This is line 40 - RazorIRToken - (5611:201,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5615:201,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5617:202,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5620:202,3 [15] StringLiterals.cshtml) - Html - This is line 41 - RazorIRToken - (5635:202,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5639:202,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5641:203,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5644:203,3 [15] StringLiterals.cshtml) - Html - This is line 42 - RazorIRToken - (5659:203,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5663:203,22 [2] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5665:204,0 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5668:204,3 [15] StringLiterals.cshtml) - Html - This is line 43 - RazorIRToken - (5683:204,18 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5687:204,22 [5] StringLiterals.cshtml) - Html - hi!\n + IntermediateToken - (4666:162,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4669:162,3 [14] StringLiterals.cshtml) - Html - This is line 1 + IntermediateToken - (4683:162,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4687:162,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4689:163,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4692:163,3 [14] StringLiterals.cshtml) - Html - This is line 2 + IntermediateToken - (4706:163,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4710:163,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4712:164,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4715:164,3 [14] StringLiterals.cshtml) - Html - This is line 3 + IntermediateToken - (4729:164,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4733:164,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4735:165,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4738:165,3 [14] StringLiterals.cshtml) - Html - This is line 4 + IntermediateToken - (4752:165,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4756:165,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4758:166,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4761:166,3 [14] StringLiterals.cshtml) - Html - This is line 5 + IntermediateToken - (4775:166,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4779:166,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4781:167,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4784:167,3 [14] StringLiterals.cshtml) - Html - This is line 6 + IntermediateToken - (4798:167,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4802:167,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4804:168,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4807:168,3 [14] StringLiterals.cshtml) - Html - This is line 7 + IntermediateToken - (4821:168,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4825:168,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4827:169,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4830:169,3 [14] StringLiterals.cshtml) - Html - This is line 8 + IntermediateToken - (4844:169,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4848:169,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4850:170,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4853:170,3 [14] StringLiterals.cshtml) - Html - This is line 9 + IntermediateToken - (4867:170,17 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4871:170,21 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4873:171,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4876:171,3 [15] StringLiterals.cshtml) - Html - This is line 10 + IntermediateToken - (4891:171,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4895:171,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4897:172,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4900:172,3 [15] StringLiterals.cshtml) - Html - This is line 11 + IntermediateToken - (4915:172,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4919:172,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4921:173,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4924:173,3 [15] StringLiterals.cshtml) - Html - This is line 12 + IntermediateToken - (4939:173,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4943:173,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4945:174,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4948:174,3 [15] StringLiterals.cshtml) - Html - This is line 13 + IntermediateToken - (4963:174,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4967:174,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4969:175,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4972:175,3 [15] StringLiterals.cshtml) - Html - This is line 14 + IntermediateToken - (4987:175,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4991:175,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (4993:176,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (4996:176,3 [15] StringLiterals.cshtml) - Html - This is line 15 + IntermediateToken - (5011:176,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5015:176,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5017:177,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5020:177,3 [15] StringLiterals.cshtml) - Html - This is line 16 + IntermediateToken - (5035:177,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5039:177,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5041:178,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5044:178,3 [15] StringLiterals.cshtml) - Html - This is line 17 + IntermediateToken - (5059:178,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5063:178,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5065:179,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5068:179,3 [15] StringLiterals.cshtml) - Html - This is line 18 + IntermediateToken - (5083:179,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5087:179,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5089:180,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5092:180,3 [15] StringLiterals.cshtml) - Html - This is line 19 + IntermediateToken - (5107:180,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5111:180,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5113:181,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5116:181,3 [15] StringLiterals.cshtml) - Html - This is line 20 + IntermediateToken - (5131:181,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5135:181,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5137:182,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5140:182,3 [15] StringLiterals.cshtml) - Html - This is line 21 + IntermediateToken - (5155:182,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5159:182,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5161:183,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5164:183,3 [15] StringLiterals.cshtml) - Html - This is line 22 + IntermediateToken - (5179:183,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5183:183,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5185:184,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5188:184,3 [15] StringLiterals.cshtml) - Html - This is line 23 + IntermediateToken - (5203:184,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5207:184,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5209:185,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5212:185,3 [15] StringLiterals.cshtml) - Html - This is line 24 + IntermediateToken - (5227:185,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5231:185,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5233:186,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5236:186,3 [15] StringLiterals.cshtml) - Html - This is line 25 + IntermediateToken - (5251:186,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5255:186,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5257:187,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5260:187,3 [15] StringLiterals.cshtml) - Html - This is line 26 + IntermediateToken - (5275:187,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5279:187,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5281:188,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5284:188,3 [15] StringLiterals.cshtml) - Html - This is line 27 + IntermediateToken - (5299:188,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5303:188,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5305:189,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5308:189,3 [15] StringLiterals.cshtml) - Html - This is line 28 + IntermediateToken - (5323:189,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5327:189,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5329:190,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5332:190,3 [15] StringLiterals.cshtml) - Html - This is line 29 + IntermediateToken - (5347:190,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5351:190,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5353:191,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5356:191,3 [15] StringLiterals.cshtml) - Html - This is line 30 + IntermediateToken - (5371:191,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5375:191,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5377:192,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5380:192,3 [15] StringLiterals.cshtml) - Html - This is line 31 + IntermediateToken - (5395:192,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5399:192,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5401:193,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5404:193,3 [15] StringLiterals.cshtml) - Html - This is line 32 + IntermediateToken - (5419:193,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5423:193,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5425:194,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5428:194,3 [15] StringLiterals.cshtml) - Html - This is line 33 + IntermediateToken - (5443:194,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5447:194,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5449:195,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5452:195,3 [15] StringLiterals.cshtml) - Html - This is line 34 + IntermediateToken - (5467:195,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5471:195,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5473:196,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5476:196,3 [15] StringLiterals.cshtml) - Html - This is line 35 + IntermediateToken - (5491:196,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5495:196,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5497:197,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5500:197,3 [15] StringLiterals.cshtml) - Html - This is line 36 + IntermediateToken - (5515:197,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5519:197,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5521:198,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5524:198,3 [15] StringLiterals.cshtml) - Html - This is line 37 + IntermediateToken - (5539:198,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5543:198,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5545:199,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5548:199,3 [15] StringLiterals.cshtml) - Html - This is line 38 + IntermediateToken - (5563:199,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5567:199,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5569:200,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5572:200,3 [15] StringLiterals.cshtml) - Html - This is line 39 + IntermediateToken - (5587:200,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5591:200,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5593:201,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5596:201,3 [15] StringLiterals.cshtml) - Html - This is line 40 + IntermediateToken - (5611:201,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5615:201,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5617:202,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5620:202,3 [15] StringLiterals.cshtml) - Html - This is line 41 + IntermediateToken - (5635:202,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5639:202,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5641:203,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5644:203,3 [15] StringLiterals.cshtml) - Html - This is line 42 + IntermediateToken - (5659:203,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5663:203,22 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5665:204,0 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5668:204,3 [15] StringLiterals.cshtml) - Html - This is line 43 + IntermediateToken - (5683:204,18 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5687:204,22 [5] StringLiterals.cshtml) - Html - hi!\n Section - - WriteLiteralsToInHereAlso HtmlContent - (5728:205,36 [1023] StringLiterals.cshtml) - RazorIRToken - (5728:205,36 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5734:206,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5737:206,7 [21] StringLiterals.cshtml) - Html - This is line 1 nested - RazorIRToken - (5758:206,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5762:206,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5768:207,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5771:207,7 [21] StringLiterals.cshtml) - Html - This is line 2 nested - RazorIRToken - (5792:207,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5796:207,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5802:208,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5805:208,7 [21] StringLiterals.cshtml) - Html - This is line 3 nested - RazorIRToken - (5826:208,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5830:208,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5836:209,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5839:209,7 [21] StringLiterals.cshtml) - Html - This is line 4 nested - RazorIRToken - (5860:209,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5864:209,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5870:210,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5873:210,7 [21] StringLiterals.cshtml) - Html - This is line 5 nested - RazorIRToken - (5894:210,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5898:210,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5904:211,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5907:211,7 [21] StringLiterals.cshtml) - Html - This is line 6 nested - RazorIRToken - (5928:211,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5932:211,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5938:212,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5941:212,7 [21] StringLiterals.cshtml) - Html - This is line 7 nested - RazorIRToken - (5962:212,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (5966:212,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (5972:213,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (5975:213,7 [21] StringLiterals.cshtml) - Html - This is line 8 nested - RazorIRToken - (5996:213,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6000:213,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6006:214,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6009:214,7 [21] StringLiterals.cshtml) - Html - This is line 9 nested - RazorIRToken - (6030:214,28 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6034:214,32 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6040:215,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6043:215,7 [22] StringLiterals.cshtml) - Html - This is line 10 nested - RazorIRToken - (6065:215,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6069:215,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6075:216,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6078:216,7 [22] StringLiterals.cshtml) - Html - This is line 11 nested - RazorIRToken - (6100:216,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6104:216,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6110:217,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6113:217,7 [22] StringLiterals.cshtml) - Html - This is line 12 nested - RazorIRToken - (6135:217,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6139:217,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6145:218,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6148:218,7 [22] StringLiterals.cshtml) - Html - This is line 13 nested - RazorIRToken - (6170:218,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6174:218,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6180:219,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6183:219,7 [22] StringLiterals.cshtml) - Html - This is line 14 nested - RazorIRToken - (6205:219,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6209:219,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6215:220,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6218:220,7 [22] StringLiterals.cshtml) - Html - This is line 15 nested - RazorIRToken - (6240:220,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6244:220,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6250:221,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6253:221,7 [22] StringLiterals.cshtml) - Html - This is line 16 nested - RazorIRToken - (6275:221,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6279:221,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6285:222,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6288:222,7 [22] StringLiterals.cshtml) - Html - This is line 17 nested - RazorIRToken - (6310:222,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6314:222,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6320:223,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6323:223,7 [22] StringLiterals.cshtml) - Html - This is line 18 nested - RazorIRToken - (6345:223,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6349:223,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6355:224,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6358:224,7 [22] StringLiterals.cshtml) - Html - This is line 19 nested - RazorIRToken - (6380:224,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6384:224,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6390:225,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6393:225,7 [22] StringLiterals.cshtml) - Html - This is line 20 nested - RazorIRToken - (6415:225,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6419:225,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6425:226,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6428:226,7 [22] StringLiterals.cshtml) - Html - This is line 21 nested - RazorIRToken - (6450:226,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6454:226,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6460:227,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6463:227,7 [22] StringLiterals.cshtml) - Html - This is line 22 nested - RazorIRToken - (6485:227,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6489:227,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6495:228,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6498:228,7 [22] StringLiterals.cshtml) - Html - This is line 23 nested - RazorIRToken - (6520:228,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6524:228,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6530:229,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6533:229,7 [22] StringLiterals.cshtml) - Html - This is line 24 nested - RazorIRToken - (6555:229,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6559:229,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6565:230,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6568:230,7 [22] StringLiterals.cshtml) - Html - This is line 25 nested - RazorIRToken - (6590:230,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6594:230,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6600:231,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6603:231,7 [22] StringLiterals.cshtml) - Html - This is line 26 nested - RazorIRToken - (6625:231,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6629:231,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6635:232,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6638:232,7 [22] StringLiterals.cshtml) - Html - This is line 27 nested - RazorIRToken - (6660:232,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6664:232,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6670:233,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6673:233,7 [22] StringLiterals.cshtml) - Html - This is line 28 nested - RazorIRToken - (6695:233,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6699:233,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6705:234,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6708:234,7 [22] StringLiterals.cshtml) - Html - This is line 29 nested - RazorIRToken - (6730:234,29 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6734:234,33 [6] StringLiterals.cshtml) - Html - \n - RazorIRToken - (6740:235,4 [3] StringLiterals.cshtml) - Html -

- RazorIRToken - (6743:235,7 [2] StringLiterals.cshtml) - Html - 30 - RazorIRToken - (6745:235,9 [4] StringLiterals.cshtml) - Html -

- RazorIRToken - (6749:235,13 [2] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5728:205,36 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5734:206,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5737:206,7 [21] StringLiterals.cshtml) - Html - This is line 1 nested + IntermediateToken - (5758:206,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5762:206,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5768:207,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5771:207,7 [21] StringLiterals.cshtml) - Html - This is line 2 nested + IntermediateToken - (5792:207,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5796:207,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5802:208,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5805:208,7 [21] StringLiterals.cshtml) - Html - This is line 3 nested + IntermediateToken - (5826:208,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5830:208,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5836:209,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5839:209,7 [21] StringLiterals.cshtml) - Html - This is line 4 nested + IntermediateToken - (5860:209,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5864:209,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5870:210,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5873:210,7 [21] StringLiterals.cshtml) - Html - This is line 5 nested + IntermediateToken - (5894:210,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5898:210,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5904:211,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5907:211,7 [21] StringLiterals.cshtml) - Html - This is line 6 nested + IntermediateToken - (5928:211,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5932:211,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5938:212,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5941:212,7 [21] StringLiterals.cshtml) - Html - This is line 7 nested + IntermediateToken - (5962:212,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5966:212,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (5972:213,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (5975:213,7 [21] StringLiterals.cshtml) - Html - This is line 8 nested + IntermediateToken - (5996:213,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6000:213,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6006:214,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6009:214,7 [21] StringLiterals.cshtml) - Html - This is line 9 nested + IntermediateToken - (6030:214,28 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6034:214,32 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6040:215,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6043:215,7 [22] StringLiterals.cshtml) - Html - This is line 10 nested + IntermediateToken - (6065:215,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6069:215,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6075:216,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6078:216,7 [22] StringLiterals.cshtml) - Html - This is line 11 nested + IntermediateToken - (6100:216,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6104:216,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6110:217,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6113:217,7 [22] StringLiterals.cshtml) - Html - This is line 12 nested + IntermediateToken - (6135:217,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6139:217,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6145:218,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6148:218,7 [22] StringLiterals.cshtml) - Html - This is line 13 nested + IntermediateToken - (6170:218,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6174:218,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6180:219,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6183:219,7 [22] StringLiterals.cshtml) - Html - This is line 14 nested + IntermediateToken - (6205:219,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6209:219,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6215:220,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6218:220,7 [22] StringLiterals.cshtml) - Html - This is line 15 nested + IntermediateToken - (6240:220,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6244:220,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6250:221,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6253:221,7 [22] StringLiterals.cshtml) - Html - This is line 16 nested + IntermediateToken - (6275:221,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6279:221,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6285:222,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6288:222,7 [22] StringLiterals.cshtml) - Html - This is line 17 nested + IntermediateToken - (6310:222,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6314:222,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6320:223,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6323:223,7 [22] StringLiterals.cshtml) - Html - This is line 18 nested + IntermediateToken - (6345:223,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6349:223,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6355:224,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6358:224,7 [22] StringLiterals.cshtml) - Html - This is line 19 nested + IntermediateToken - (6380:224,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6384:224,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6390:225,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6393:225,7 [22] StringLiterals.cshtml) - Html - This is line 20 nested + IntermediateToken - (6415:225,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6419:225,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6425:226,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6428:226,7 [22] StringLiterals.cshtml) - Html - This is line 21 nested + IntermediateToken - (6450:226,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6454:226,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6460:227,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6463:227,7 [22] StringLiterals.cshtml) - Html - This is line 22 nested + IntermediateToken - (6485:227,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6489:227,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6495:228,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6498:228,7 [22] StringLiterals.cshtml) - Html - This is line 23 nested + IntermediateToken - (6520:228,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6524:228,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6530:229,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6533:229,7 [22] StringLiterals.cshtml) - Html - This is line 24 nested + IntermediateToken - (6555:229,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6559:229,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6565:230,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6568:230,7 [22] StringLiterals.cshtml) - Html - This is line 25 nested + IntermediateToken - (6590:230,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6594:230,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6600:231,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6603:231,7 [22] StringLiterals.cshtml) - Html - This is line 26 nested + IntermediateToken - (6625:231,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6629:231,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6635:232,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6638:232,7 [22] StringLiterals.cshtml) - Html - This is line 27 nested + IntermediateToken - (6660:232,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6664:232,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6670:233,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6673:233,7 [22] StringLiterals.cshtml) - Html - This is line 28 nested + IntermediateToken - (6695:233,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6699:233,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6705:234,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6708:234,7 [22] StringLiterals.cshtml) - Html - This is line 29 nested + IntermediateToken - (6730:234,29 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6734:234,33 [6] StringLiterals.cshtml) - Html - \n + IntermediateToken - (6740:235,4 [3] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6743:235,7 [2] StringLiterals.cshtml) - Html - 30 + IntermediateToken - (6745:235,9 [4] StringLiterals.cshtml) - Html -

+ IntermediateToken - (6749:235,13 [2] StringLiterals.cshtml) - Html - \n HtmlContent - (6752:236,1 [1] StringLiterals.cshtml) - RazorIRToken - (6752:236,1 [1] StringLiterals.cshtml) - Html - ! + IntermediateToken - (6752:236,1 [1] StringLiterals.cshtml) - Html - ! diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.ir.txt index a12a023b1..e3b7c6661 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.ir.txt @@ -4,125 +4,125 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [15] SymbolBoundAttributes.cshtml) - *, TestAssembly CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.CatchAllTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [255] SymbolBoundAttributes.cshtml) - RazorIRToken - (29:0,29 [4] SymbolBoundAttributes.cshtml) - Html - \n\n - RazorIRToken - (33:2,0 [3] SymbolBoundAttributes.cshtml) - Html -
    - RazorIRToken - (52:2,19 [5] SymbolBoundAttributes.cshtml) - Html -
- RazorIRToken - (57:2,24 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (59:3,0 [3] SymbolBoundAttributes.cshtml) - Html -
    - RazorIRToken - (80:3,21 [5] SymbolBoundAttributes.cshtml) - Html -
- RazorIRToken - (85:3,26 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (87:4,0 [7] SymbolBoundAttributes.cshtml) - Html - - RazorIRToken - (136:4,49 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (138:5,0 [7] SymbolBoundAttributes.cshtml) - Html - - RazorIRToken - (188:5,50 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (190:6,0 [9] SymbolBoundAttributes.cshtml) - Html - - RazorIRToken - (232:7,11 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (234:8,0 [4] SymbolBoundAttributes.cshtml) - Html -
- RazorIRToken - (246:8,12 [6] SymbolBoundAttributes.cshtml) - Html -
- RazorIRToken - (252:8,18 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (254:9,0 [4] SymbolBoundAttributes.cshtml) - Html -
- RazorIRToken - (274:9,20 [6] SymbolBoundAttributes.cshtml) - Html -
- RazorIRToken - (280:9,26 [4] SymbolBoundAttributes.cshtml) - Html - \n\n + IntermediateToken - (29:0,29 [4] SymbolBoundAttributes.cshtml) - Html - \n\n + IntermediateToken - (33:2,0 [3] SymbolBoundAttributes.cshtml) - Html -
    + IntermediateToken - (52:2,19 [5] SymbolBoundAttributes.cshtml) - Html -
+ IntermediateToken - (57:2,24 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (59:3,0 [3] SymbolBoundAttributes.cshtml) - Html -
    + IntermediateToken - (80:3,21 [5] SymbolBoundAttributes.cshtml) - Html -
+ IntermediateToken - (85:3,26 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (87:4,0 [7] SymbolBoundAttributes.cshtml) - Html - + IntermediateToken - (136:4,49 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (138:5,0 [7] SymbolBoundAttributes.cshtml) - Html - + IntermediateToken - (188:5,50 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (190:6,0 [9] SymbolBoundAttributes.cshtml) - Html - + IntermediateToken - (232:7,11 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (234:8,0 [4] SymbolBoundAttributes.cshtml) - Html -
+ IntermediateToken - (246:8,12 [6] SymbolBoundAttributes.cshtml) - Html -
+ IntermediateToken - (252:8,18 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (254:9,0 [4] SymbolBoundAttributes.cshtml) - Html -
+ IntermediateToken - (274:9,20 [6] SymbolBoundAttributes.cshtml) - Html -
+ IntermediateToken - (280:9,26 [4] SymbolBoundAttributes.cshtml) - Html - \n\n TagHelper - (284:11,0 [45] SymbolBoundAttributes.cshtml) - ul - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (302:11,18 [5] SymbolBoundAttributes.cshtml) - [item] - ListItems - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (302:11,18 [5] SymbolBoundAttributes.cshtml) - CSharp - items + IntermediateToken - (302:11,18 [5] SymbolBoundAttributes.cshtml) - CSharp - items AddTagHelperHtmlAttribute - - [item] - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (317:11,33 [5] SymbolBoundAttributes.cshtml) - RazorIRToken - (317:11,33 [5] SymbolBoundAttributes.cshtml) - Html - items + IntermediateToken - (317:11,33 [5] SymbolBoundAttributes.cshtml) - Html - items HtmlContent - (329:11,45 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (329:11,45 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (329:11,45 [2] SymbolBoundAttributes.cshtml) - Html - \n TagHelper - (331:12,0 [49] SymbolBoundAttributes.cshtml) - ul - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (351:12,20 [5] SymbolBoundAttributes.cshtml) - [(item)] - ArrayItems - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (351:12,20 [5] SymbolBoundAttributes.cshtml) - CSharp - items + IntermediateToken - (351:12,20 [5] SymbolBoundAttributes.cshtml) - CSharp - items AddTagHelperHtmlAttribute - - [(item)] - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (368:12,37 [5] SymbolBoundAttributes.cshtml) - RazorIRToken - (368:12,37 [5] SymbolBoundAttributes.cshtml) - Html - items + IntermediateToken - (368:12,37 [5] SymbolBoundAttributes.cshtml) - Html - items HtmlContent - (380:12,49 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (380:12,49 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (380:12,49 [2] SymbolBoundAttributes.cshtml) - Html - \n TagHelper - (382:13,0 [79] SymbolBoundAttributes.cshtml) - button - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (444:13,62 [8] SymbolBoundAttributes.cshtml) - RazorIRToken - (444:13,62 [8] SymbolBoundAttributes.cshtml) - Html - Click Me + IntermediateToken - (444:13,62 [8] SymbolBoundAttributes.cshtml) - Html - Click Me CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (405:13,23 [13] SymbolBoundAttributes.cshtml) - (click) - Event1 - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (405:13,23 [13] SymbolBoundAttributes.cshtml) - CSharp - doSomething() + IntermediateToken - (405:13,23 [13] SymbolBoundAttributes.cshtml) - CSharp - doSomething() AddTagHelperHtmlAttribute - - (click) - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (429:13,47 [13] SymbolBoundAttributes.cshtml) - RazorIRToken - (429:13,47 [13] SymbolBoundAttributes.cshtml) - Html - doSomething() + IntermediateToken - (429:13,47 [13] SymbolBoundAttributes.cshtml) - Html - doSomething() HtmlContent - (461:13,79 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (461:13,79 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (461:13,79 [2] SymbolBoundAttributes.cshtml) - Html - \n TagHelper - (463:14,0 [81] SymbolBoundAttributes.cshtml) - button - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (527:14,64 [8] SymbolBoundAttributes.cshtml) - RazorIRToken - (527:14,64 [8] SymbolBoundAttributes.cshtml) - Html - Click Me + IntermediateToken - (527:14,64 [8] SymbolBoundAttributes.cshtml) - Html - Click Me CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (487:14,24 [13] SymbolBoundAttributes.cshtml) - (^click) - Event2 - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (487:14,24 [13] SymbolBoundAttributes.cshtml) - CSharp - doSomething() + IntermediateToken - (487:14,24 [13] SymbolBoundAttributes.cshtml) - CSharp - doSomething() AddTagHelperHtmlAttribute - - (^click) - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (512:14,49 [13] SymbolBoundAttributes.cshtml) - RazorIRToken - (512:14,49 [13] SymbolBoundAttributes.cshtml) - Html - doSomething() + IntermediateToken - (512:14,49 [13] SymbolBoundAttributes.cshtml) - Html - doSomething() HtmlContent - (544:14,81 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (544:14,81 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (544:14,81 [2] SymbolBoundAttributes.cshtml) - Html - \n TagHelper - (546:15,0 [67] SymbolBoundAttributes.cshtml) - template - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (600:15,54 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (600:15,54 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (600:15,54 [2] SymbolBoundAttributes.cshtml) - Html - \n CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (574:15,28 [5] SymbolBoundAttributes.cshtml) - *something - StringProperty1 - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (574:15,28 [5] SymbolBoundAttributes.cshtml) - RazorIRToken - (574:15,28 [5] SymbolBoundAttributes.cshtml) - Html - value + IntermediateToken - (574:15,28 [5] SymbolBoundAttributes.cshtml) - Html - value AddTagHelperHtmlAttribute - - *something - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (593:15,47 [5] SymbolBoundAttributes.cshtml) - RazorIRToken - (593:15,47 [5] SymbolBoundAttributes.cshtml) - Html - value + IntermediateToken - (593:15,47 [5] SymbolBoundAttributes.cshtml) - Html - value HtmlContent - (613:16,11 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (613:16,11 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (613:16,11 [2] SymbolBoundAttributes.cshtml) - Html - \n TagHelper - (615:17,0 [33] SymbolBoundAttributes.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized AddTagHelperHtmlAttribute - - #localminimized - HtmlAttributeValueStyle.Minimized HtmlContent - (648:17,33 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (648:17,33 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (648:17,33 [2] SymbolBoundAttributes.cshtml) - Html - \n TagHelper - (650:18,0 [47] SymbolBoundAttributes.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (669:18,19 [5] SymbolBoundAttributes.cshtml) - #local - StringProperty2 - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (669:18,19 [5] SymbolBoundAttributes.cshtml) - RazorIRToken - (669:18,19 [5] SymbolBoundAttributes.cshtml) - Html - value + IntermediateToken - (669:18,19 [5] SymbolBoundAttributes.cshtml) - Html - value AddTagHelperHtmlAttribute - - #local - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (684:18,34 [5] SymbolBoundAttributes.cshtml) - RazorIRToken - (684:18,34 [5] SymbolBoundAttributes.cshtml) - Html - value + IntermediateToken - (684:18,34 [5] SymbolBoundAttributes.cshtml) - Html - value diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.ir.txt index 28537b494..fa71e2360 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.ir.txt @@ -12,102 +12,102 @@ Document - DeclareTagHelperFields - - TestNamespace.CatchAllTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [253] SymbolBoundAttributes.cshtml) - RazorIRToken - (31:1,0 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (33:2,0 [3] SymbolBoundAttributes.cshtml) - Html -
    - RazorIRToken - (52:2,19 [5] SymbolBoundAttributes.cshtml) - Html -
- RazorIRToken - (57:2,24 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (59:3,0 [3] SymbolBoundAttributes.cshtml) - Html -
    - RazorIRToken - (80:3,21 [5] SymbolBoundAttributes.cshtml) - Html -
- RazorIRToken - (85:3,26 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (87:4,0 [7] SymbolBoundAttributes.cshtml) - Html - - RazorIRToken - (136:4,49 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (138:5,0 [7] SymbolBoundAttributes.cshtml) - Html - - RazorIRToken - (188:5,50 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (190:6,0 [9] SymbolBoundAttributes.cshtml) - Html - - RazorIRToken - (232:7,11 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (234:8,0 [4] SymbolBoundAttributes.cshtml) - Html -
- RazorIRToken - (246:8,12 [6] SymbolBoundAttributes.cshtml) - Html -
- RazorIRToken - (252:8,18 [2] SymbolBoundAttributes.cshtml) - Html - \n - RazorIRToken - (254:9,0 [4] SymbolBoundAttributes.cshtml) - Html -
- RazorIRToken - (274:9,20 [6] SymbolBoundAttributes.cshtml) - Html -
- RazorIRToken - (280:9,26 [4] SymbolBoundAttributes.cshtml) - Html - \n\n + IntermediateToken - (31:1,0 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (33:2,0 [3] SymbolBoundAttributes.cshtml) - Html -
    + IntermediateToken - (52:2,19 [5] SymbolBoundAttributes.cshtml) - Html -
+ IntermediateToken - (57:2,24 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (59:3,0 [3] SymbolBoundAttributes.cshtml) - Html -
    + IntermediateToken - (80:3,21 [5] SymbolBoundAttributes.cshtml) - Html -
+ IntermediateToken - (85:3,26 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (87:4,0 [7] SymbolBoundAttributes.cshtml) - Html - + IntermediateToken - (136:4,49 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (138:5,0 [7] SymbolBoundAttributes.cshtml) - Html - + IntermediateToken - (188:5,50 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (190:6,0 [9] SymbolBoundAttributes.cshtml) - Html - + IntermediateToken - (232:7,11 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (234:8,0 [4] SymbolBoundAttributes.cshtml) - Html -
+ IntermediateToken - (246:8,12 [6] SymbolBoundAttributes.cshtml) - Html -
+ IntermediateToken - (252:8,18 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (254:9,0 [4] SymbolBoundAttributes.cshtml) - Html -
+ IntermediateToken - (274:9,20 [6] SymbolBoundAttributes.cshtml) - Html -
+ IntermediateToken - (280:9,26 [4] SymbolBoundAttributes.cshtml) - Html - \n\n TagHelper - (284:11,0 [45] SymbolBoundAttributes.cshtml) - ul - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (302:11,18 [5] SymbolBoundAttributes.cshtml) - [item] - ListItems - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (302:11,18 [5] SymbolBoundAttributes.cshtml) - CSharp - items + IntermediateToken - (302:11,18 [5] SymbolBoundAttributes.cshtml) - CSharp - items AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 HtmlContent - (329:11,45 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (329:11,45 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (329:11,45 [2] SymbolBoundAttributes.cshtml) - Html - \n TagHelper - (331:12,0 [49] SymbolBoundAttributes.cshtml) - ul - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (351:12,20 [5] SymbolBoundAttributes.cshtml) - [(item)] - ArrayItems - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (351:12,20 [5] SymbolBoundAttributes.cshtml) - CSharp - items + IntermediateToken - (351:12,20 [5] SymbolBoundAttributes.cshtml) - CSharp - items AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 HtmlContent - (380:12,49 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (380:12,49 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (380:12,49 [2] SymbolBoundAttributes.cshtml) - Html - \n TagHelper - (382:13,0 [79] SymbolBoundAttributes.cshtml) - button - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (444:13,62 [8] SymbolBoundAttributes.cshtml) - RazorIRToken - (444:13,62 [8] SymbolBoundAttributes.cshtml) - Html - Click Me + IntermediateToken - (444:13,62 [8] SymbolBoundAttributes.cshtml) - Html - Click Me CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (405:13,23 [13] SymbolBoundAttributes.cshtml) - (click) - Event1 - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (405:13,23 [13] SymbolBoundAttributes.cshtml) - CSharp - doSomething() + IntermediateToken - (405:13,23 [13] SymbolBoundAttributes.cshtml) - CSharp - doSomething() AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 HtmlContent - (461:13,79 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (461:13,79 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (461:13,79 [2] SymbolBoundAttributes.cshtml) - Html - \n TagHelper - (463:14,0 [81] SymbolBoundAttributes.cshtml) - button - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (527:14,64 [8] SymbolBoundAttributes.cshtml) - RazorIRToken - (527:14,64 [8] SymbolBoundAttributes.cshtml) - Html - Click Me + IntermediateToken - (527:14,64 [8] SymbolBoundAttributes.cshtml) - Html - Click Me CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized SetTagHelperProperty - (487:14,24 [13] SymbolBoundAttributes.cshtml) - (^click) - Event2 - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (487:14,24 [13] SymbolBoundAttributes.cshtml) - CSharp - doSomething() + IntermediateToken - (487:14,24 [13] SymbolBoundAttributes.cshtml) - CSharp - doSomething() AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 HtmlContent - (544:14,81 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (544:14,81 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (544:14,81 [2] SymbolBoundAttributes.cshtml) - Html - \n TagHelper - (546:15,0 [67] SymbolBoundAttributes.cshtml) - template - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (600:15,54 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (600:15,54 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (600:15,54 [2] SymbolBoundAttributes.cshtml) - Html - \n CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized SetPreallocatedTagHelperProperty - - __tagHelperAttribute_4 - *something - StringProperty1 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_5 HtmlContent - (613:16,11 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (613:16,11 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (613:16,11 [2] SymbolBoundAttributes.cshtml) - Html - \n TagHelper - (615:17,0 [33] SymbolBoundAttributes.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.CatchAllTagHelper AddTagHelperHtmlAttribute - - bound - HtmlAttributeValueStyle.Minimized AddTagHelperHtmlAttribute - - #localminimized - HtmlAttributeValueStyle.Minimized HtmlContent - (648:17,33 [2] SymbolBoundAttributes.cshtml) - RazorIRToken - (648:17,33 [2] SymbolBoundAttributes.cshtml) - Html - \n + IntermediateToken - (648:17,33 [2] SymbolBoundAttributes.cshtml) - Html - \n TagHelper - (650:18,0 [47] SymbolBoundAttributes.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.CatchAllTagHelper diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.ir.txt index 34df15088..21acc3db0 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.ir.txt @@ -4,45 +4,45 @@ Document - DeclareTagHelperFields - - TestNamespace.MyTagHelper - TestNamespace.NestedTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] TagHelpersInSection.cshtml) - RazorIRToken - (33:1,0 [2] TagHelpersInSection.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] TagHelpersInSection.cshtml) - Html - \n CSharpCode - (37:2,2 [31] TagHelpersInSection.cshtml) - RazorIRToken - (37:2,2 [31] TagHelpersInSection.cshtml) - CSharp - \n var code = "some code";\n + IntermediateToken - (37:2,2 [31] TagHelpersInSection.cshtml) - CSharp - \n var code = "some code";\n HtmlContent - (71:5,0 [2] TagHelpersInSection.cshtml) - RazorIRToken - (71:5,0 [2] TagHelpersInSection.cshtml) - Html - \n + IntermediateToken - (71:5,0 [2] TagHelpersInSection.cshtml) - Html - \n Section - - MySection HtmlContent - (93:6,20 [21] TagHelpersInSection.cshtml) - RazorIRToken - (93:6,20 [6] TagHelpersInSection.cshtml) - Html - \n - RazorIRToken - (99:7,4 [5] TagHelpersInSection.cshtml) - Html -
- RazorIRToken - (104:7,9 [10] TagHelpersInSection.cshtml) - Html - \n + IntermediateToken - (93:6,20 [6] TagHelpersInSection.cshtml) - Html - \n + IntermediateToken - (99:7,4 [5] TagHelpersInSection.cshtml) - Html -
+ IntermediateToken - (104:7,9 [10] TagHelpersInSection.cshtml) - Html - \n TagHelper - (114:8,8 [245] TagHelpersInSection.cshtml) - mytaghelper - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (217:8,111 [52] TagHelpersInSection.cshtml) - RazorIRToken - (217:8,111 [52] TagHelpersInSection.cshtml) - Html - \n In None ContentBehavior.\n + IntermediateToken - (217:8,111 [52] TagHelpersInSection.cshtml) - Html - \n In None ContentBehavior.\n TagHelper - (269:10,12 [66] TagHelpersInSection.cshtml) - nestedtaghelper - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (286:10,29 [26] TagHelpersInSection.cshtml) - RazorIRToken - (286:10,29 [26] TagHelpersInSection.cshtml) - Html - Some buffered values with + IntermediateToken - (286:10,29 [26] TagHelpersInSection.cshtml) - Html - Some buffered values with CSharpExpression - (313:10,56 [4] TagHelpersInSection.cshtml) - RazorIRToken - (313:10,56 [4] TagHelpersInSection.cshtml) - CSharp - code + IntermediateToken - (313:10,56 [4] TagHelpersInSection.cshtml) - CSharp - code CreateTagHelper - - TestNamespace.NestedTagHelper HtmlContent - (335:10,78 [10] TagHelpersInSection.cshtml) - RazorIRToken - (335:10,78 [10] TagHelpersInSection.cshtml) - Html - \n + IntermediateToken - (335:10,78 [10] TagHelpersInSection.cshtml) - Html - \n CreateTagHelper - - TestNamespace.MyTagHelper SetTagHelperProperty - (142:8,36 [27] TagHelpersInSection.cshtml) - boundproperty - BoundProperty - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (142:8,36 [14] TagHelpersInSection.cshtml) - RazorIRToken - (142:8,36 [7] TagHelpersInSection.cshtml) - Html - Current - RazorIRToken - (149:8,43 [6] TagHelpersInSection.cshtml) - Html - Time: - RazorIRToken - (155:8,49 [1] TagHelpersInSection.cshtml) - Html - + IntermediateToken - (142:8,36 [7] TagHelpersInSection.cshtml) - Html - Current + IntermediateToken - (149:8,43 [6] TagHelpersInSection.cshtml) - Html - Time: + IntermediateToken - (155:8,49 [1] TagHelpersInSection.cshtml) - Html - CSharpExpression - (157:8,51 [12] TagHelpersInSection.cshtml) - RazorIRToken - (157:8,51 [12] TagHelpersInSection.cshtml) - CSharp - DateTime.Now + IntermediateToken - (157:8,51 [12] TagHelpersInSection.cshtml) - CSharp - DateTime.Now AddTagHelperHtmlAttribute - - unboundproperty - HtmlAttributeValueStyle.DoubleQuotes HtmlAttributeValue - (188:8,82 [7] TagHelpersInSection.cshtml) - - RazorIRToken - (188:8,82 [7] TagHelpersInSection.cshtml) - Html - Current + IntermediateToken - (188:8,82 [7] TagHelpersInSection.cshtml) - Html - Current HtmlAttributeValue - (195:8,89 [6] TagHelpersInSection.cshtml) - - RazorIRToken - (196:8,90 [5] TagHelpersInSection.cshtml) - Html - Time: + IntermediateToken - (196:8,90 [5] TagHelpersInSection.cshtml) - Html - Time: CSharpExpressionAttributeValue - (201:8,95 [14] TagHelpersInSection.cshtml) - - RazorIRToken - (203:8,97 [12] TagHelpersInSection.cshtml) - CSharp - DateTime.Now + IntermediateToken - (203:8,97 [12] TagHelpersInSection.cshtml) - CSharp - DateTime.Now HtmlContent - (359:11,22 [14] TagHelpersInSection.cshtml) - RazorIRToken - (359:11,22 [6] TagHelpersInSection.cshtml) - Html - \n - RazorIRToken - (365:12,4 [6] TagHelpersInSection.cshtml) - Html -
- RazorIRToken - (371:12,10 [2] TagHelpersInSection.cshtml) - Html - \n + IntermediateToken - (359:11,22 [6] TagHelpersInSection.cshtml) - Html - \n + IntermediateToken - (365:12,4 [6] TagHelpersInSection.cshtml) - Html -
+ IntermediateToken - (371:12,10 [2] TagHelpersInSection.cshtml) - Html - \n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.ir.txt index 3d3313c27..4557309c9 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.ir.txt @@ -4,22 +4,22 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [15] TagHelpersWithBoundAttributes.cshtml) - *, TestAssembly CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [14] TagHelpersWithBoundAttributes.cshtml) - RazorIRToken - (29:0,29 [2] TagHelpersWithBoundAttributes.cshtml) - Html - \n - RazorIRToken - (31:1,0 [6] TagHelpersWithBoundAttributes.cshtml) - Html -
- RazorIRToken - (37:1,6 [6] TagHelpersWithBoundAttributes.cshtml) - Html - \n + IntermediateToken - (29:0,29 [2] TagHelpersWithBoundAttributes.cshtml) - Html - \n + IntermediateToken - (31:1,0 [6] TagHelpersWithBoundAttributes.cshtml) - Html - + IntermediateToken - (37:1,6 [6] TagHelpersWithBoundAttributes.cshtml) - Html - \n TagHelper - (43:2,4 [34] TagHelpersWithBoundAttributes.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper SetTagHelperProperty - (56:2,17 [6] TagHelpersWithBoundAttributes.cshtml) - bound - BoundProp - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - RazorIRToken - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - CSharp - Hello + IntermediateToken - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - CSharp - Hello AddTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.SingleQuotes HtmlContent - (69:2,30 [4] TagHelpersWithBoundAttributes.cshtml) - RazorIRToken - (69:2,30 [4] TagHelpersWithBoundAttributes.cshtml) - Html - text + IntermediateToken - (69:2,30 [4] TagHelpersWithBoundAttributes.cshtml) - Html - text HtmlContent - (77:2,38 [9] TagHelpersWithBoundAttributes.cshtml) - RazorIRToken - (77:2,38 [2] TagHelpersWithBoundAttributes.cshtml) - Html - \n - RazorIRToken - (79:3,0 [7] TagHelpersWithBoundAttributes.cshtml) - Html -
+ IntermediateToken - (77:2,38 [2] TagHelpersWithBoundAttributes.cshtml) - Html - \n + IntermediateToken - (79:3,0 [7] TagHelpersWithBoundAttributes.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.ir.txt index 674b42573..fa7bdad67 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.ir.txt @@ -5,15 +5,15 @@ Document - DeclareTagHelperFields - - InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [12] TagHelpersWithBoundAttributes.cshtml) - RazorIRToken - (31:1,0 [6] TagHelpersWithBoundAttributes.cshtml) - Html -
- RazorIRToken - (37:1,6 [6] TagHelpersWithBoundAttributes.cshtml) - Html - \n + IntermediateToken - (31:1,0 [6] TagHelpersWithBoundAttributes.cshtml) - Html - + IntermediateToken - (37:1,6 [6] TagHelpersWithBoundAttributes.cshtml) - Html - \n TagHelper - (43:2,4 [34] TagHelpersWithBoundAttributes.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper SetTagHelperProperty - (56:2,17 [6] TagHelpersWithBoundAttributes.cshtml) - bound - BoundProp - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - RazorIRToken - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - CSharp - Hello + IntermediateToken - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - CSharp - Hello AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 HtmlContent - (77:2,38 [9] TagHelpersWithBoundAttributes.cshtml) - RazorIRToken - (77:2,38 [2] TagHelpersWithBoundAttributes.cshtml) - Html - \n - RazorIRToken - (79:3,0 [7] TagHelpersWithBoundAttributes.cshtml) - Html -
+ IntermediateToken - (77:2,38 [2] TagHelpersWithBoundAttributes.cshtml) - Html - \n + IntermediateToken - (79:3,0 [7] TagHelpersWithBoundAttributes.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.ir.txt index a2d0909a0..9259e8b61 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.ir.txt @@ -5,24 +5,24 @@ Document - DirectiveToken - (14:0,14 [15] TagHelpersWithPrefix.cshtml) - *, TestAssembly DirectiveToken - (48:1,17 [5] TagHelpersWithPrefix.cshtml) - cool: CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [2] TagHelpersWithPrefix.cshtml) - RazorIRToken - (29:0,29 [2] TagHelpersWithPrefix.cshtml) - Html - \n + IntermediateToken - (29:0,29 [2] TagHelpersWithPrefix.cshtml) - Html - \n HtmlContent - (53:1,22 [14] TagHelpersWithPrefix.cshtml) - RazorIRToken - (53:1,22 [2] TagHelpersWithPrefix.cshtml) - Html - \n - RazorIRToken - (55:2,0 [6] TagHelpersWithPrefix.cshtml) - Html -
- RazorIRToken - (61:2,6 [6] TagHelpersWithPrefix.cshtml) - Html - \n + IntermediateToken - (53:1,22 [2] TagHelpersWithPrefix.cshtml) - Html - \n + IntermediateToken - (55:2,0 [6] TagHelpersWithPrefix.cshtml) - Html - + IntermediateToken - (61:2,6 [6] TagHelpersWithPrefix.cshtml) - Html - \n TagHelper - (67:3,4 [39] TagHelpersWithPrefix.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper SetTagHelperProperty - (85:3,22 [6] TagHelpersWithPrefix.cshtml) - bound - BoundProp - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (86:3,23 [5] TagHelpersWithPrefix.cshtml) - RazorIRToken - (86:3,23 [5] TagHelpersWithPrefix.cshtml) - CSharp - Hello + IntermediateToken - (86:3,23 [5] TagHelpersWithPrefix.cshtml) - CSharp - Hello AddTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.SingleQuotes HtmlContent - (98:3,35 [4] TagHelpersWithPrefix.cshtml) - RazorIRToken - (98:3,35 [4] TagHelpersWithPrefix.cshtml) - Html - text + IntermediateToken - (98:3,35 [4] TagHelpersWithPrefix.cshtml) - Html - text HtmlContent - (106:3,43 [9] TagHelpersWithPrefix.cshtml) - RazorIRToken - (106:3,43 [2] TagHelpersWithPrefix.cshtml) - Html - \n - RazorIRToken - (108:4,0 [7] TagHelpersWithPrefix.cshtml) - Html -
+ IntermediateToken - (106:3,43 [2] TagHelpersWithPrefix.cshtml) - Html - \n + IntermediateToken - (108:4,0 [7] TagHelpersWithPrefix.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.ir.txt index 43bf68108..43c7f9d68 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.ir.txt @@ -5,15 +5,15 @@ Document - DeclareTagHelperFields - - InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (55:2,0 [12] TagHelpersWithPrefix.cshtml) - RazorIRToken - (55:2,0 [6] TagHelpersWithPrefix.cshtml) - Html -
- RazorIRToken - (61:2,6 [6] TagHelpersWithPrefix.cshtml) - Html - \n + IntermediateToken - (55:2,0 [6] TagHelpersWithPrefix.cshtml) - Html - + IntermediateToken - (61:2,6 [6] TagHelpersWithPrefix.cshtml) - Html - \n TagHelper - (67:3,4 [39] TagHelpersWithPrefix.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper SetTagHelperProperty - (85:3,22 [6] TagHelpersWithPrefix.cshtml) - bound - BoundProp - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (86:3,23 [5] TagHelpersWithPrefix.cshtml) - RazorIRToken - (86:3,23 [5] TagHelpersWithPrefix.cshtml) - CSharp - Hello + IntermediateToken - (86:3,23 [5] TagHelpersWithPrefix.cshtml) - CSharp - Hello AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 HtmlContent - (106:3,43 [9] TagHelpersWithPrefix.cshtml) - RazorIRToken - (106:3,43 [2] TagHelpersWithPrefix.cshtml) - Html - \n - RazorIRToken - (108:4,0 [7] TagHelpersWithPrefix.cshtml) - Html -
+ IntermediateToken - (106:3,43 [2] TagHelpersWithPrefix.cshtml) - Html - \n + IntermediateToken - (108:4,0 [7] TagHelpersWithPrefix.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.ir.txt index 1e6a6566e..423519dc3 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.ir.txt @@ -4,45 +4,45 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] TagHelpersWithTemplate.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - DivTagHelper - InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] TagHelpersWithTemplate.cshtml) - RazorIRToken - (31:0,31 [4] TagHelpersWithTemplate.cshtml) - Html - \n\n + IntermediateToken - (31:0,31 [4] TagHelpersWithTemplate.cshtml) - Html - \n\n HtmlContent - (316:9,1 [4] TagHelpersWithTemplate.cshtml) - RazorIRToken - (316:9,1 [4] TagHelpersWithTemplate.cshtml) - Html - \n\n + IntermediateToken - (316:9,1 [4] TagHelpersWithTemplate.cshtml) - Html - \n\n TagHelper - (320:11,0 [179] TagHelpersWithTemplate.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (325:11,5 [6] TagHelpersWithTemplate.cshtml) - RazorIRToken - (325:11,5 [6] TagHelpersWithTemplate.cshtml) - Html - \n + IntermediateToken - (325:11,5 [6] TagHelpersWithTemplate.cshtml) - Html - \n CSharpCode - (333:12,6 [66] TagHelpersWithTemplate.cshtml) - RazorIRToken - (333:12,6 [66] TagHelpersWithTemplate.cshtml) - CSharp - \n RenderTemplate(\n "Template: ",\n + IntermediateToken - (333:12,6 [66] TagHelpersWithTemplate.cshtml) - CSharp - \n RenderTemplate(\n "Template: ",\n Template - (400:15,13 [82] TagHelpersWithTemplate.cshtml) TagHelper - (400:15,13 [82] TagHelpersWithTemplate.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (422:15,35 [4] TagHelpersWithTemplate.cshtml) - RazorIRToken - (422:15,35 [4] TagHelpersWithTemplate.cshtml) - Html -

+ IntermediateToken - (422:15,35 [4] TagHelpersWithTemplate.cshtml) - Html -

CSharpExpression - (427:15,40 [4] TagHelpersWithTemplate.cshtml) - RazorIRToken - (427:15,40 [4] TagHelpersWithTemplate.cshtml) - CSharp - item + IntermediateToken - (427:15,40 [4] TagHelpersWithTemplate.cshtml) - CSharp - item HtmlContent - (431:15,44 [5] TagHelpersWithTemplate.cshtml) - RazorIRToken - (431:15,44 [5] TagHelpersWithTemplate.cshtml) - Html -

+ IntermediateToken - (431:15,44 [5] TagHelpersWithTemplate.cshtml) - Html - TagHelper - (436:15,49 [40] TagHelpersWithTemplate.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper AddTagHelperHtmlAttribute - - type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (449:15,62 [8] TagHelpersWithTemplate.cshtml) - RazorIRToken - (449:15,62 [8] TagHelpersWithTemplate.cshtml) - Html - checkbox + IntermediateToken - (449:15,62 [8] TagHelpersWithTemplate.cshtml) - Html - checkbox AddTagHelperHtmlAttribute - - checked - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (468:15,81 [4] TagHelpersWithTemplate.cshtml) - RazorIRToken - (468:15,81 [4] TagHelpersWithTemplate.cshtml) - Html - true + IntermediateToken - (468:15,81 [4] TagHelpersWithTemplate.cshtml) - Html - true CreateTagHelper - - DivTagHelper AddTagHelperHtmlAttribute - - condition - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (416:15,29 [4] TagHelpersWithTemplate.cshtml) - RazorIRToken - (416:15,29 [4] TagHelpersWithTemplate.cshtml) - Html - true + IntermediateToken - (416:15,29 [4] TagHelpersWithTemplate.cshtml) - Html - true CSharpCode - (482:15,95 [8] TagHelpersWithTemplate.cshtml) - RazorIRToken - (482:15,95 [8] TagHelpersWithTemplate.cshtml) - CSharp - );\n + IntermediateToken - (482:15,95 [8] TagHelpersWithTemplate.cshtml) - CSharp - );\n CreateTagHelper - - DivTagHelper HtmlContent - (499:17,6 [4] TagHelpersWithTemplate.cshtml) - RazorIRToken - (499:17,6 [4] TagHelpersWithTemplate.cshtml) - Html - \n\n + IntermediateToken - (499:17,6 [4] TagHelpersWithTemplate.cshtml) - Html - \n\n CSharpCode - (47:2,12 [268] TagHelpersWithTemplate.cshtml) - RazorIRToken - (47:2,12 [268] TagHelpersWithTemplate.cshtml) - CSharp - \n public void RenderTemplate(string title, Func template)\n {\n Output.WriteLine("

Rendering Template:

");\n var helperResult = template(title);\n helperResult.WriteTo(Output, HtmlEncoder);\n }\n + IntermediateToken - (47:2,12 [268] TagHelpersWithTemplate.cshtml) - CSharp - \n public void RenderTemplate(string title, Func template)\n {\n Output.WriteLine("

Rendering Template:

");\n var helperResult = template(title);\n helperResult.WriteTo(Output, HtmlEncoder);\n }\n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.ir.txt index 01c2dc504..189ea92bc 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.ir.txt @@ -7,26 +7,26 @@ Document - DeclareTagHelperFields - - DivTagHelper - InputTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] TagHelpersWithTemplate.cshtml) - RazorIRToken - (33:1,0 [2] TagHelpersWithTemplate.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] TagHelpersWithTemplate.cshtml) - Html - \n HtmlContent - (318:10,0 [2] TagHelpersWithTemplate.cshtml) - RazorIRToken - (318:10,0 [2] TagHelpersWithTemplate.cshtml) - Html - \n + IntermediateToken - (318:10,0 [2] TagHelpersWithTemplate.cshtml) - Html - \n TagHelper - (320:11,0 [179] TagHelpersWithTemplate.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (325:11,5 [2] TagHelpersWithTemplate.cshtml) - RazorIRToken - (325:11,5 [2] TagHelpersWithTemplate.cshtml) - Html - \n + IntermediateToken - (325:11,5 [2] TagHelpersWithTemplate.cshtml) - Html - \n CSharpCode - (327:12,0 [4] TagHelpersWithTemplate.cshtml) - RazorIRToken - (327:12,0 [4] TagHelpersWithTemplate.cshtml) - CSharp - + IntermediateToken - (327:12,0 [4] TagHelpersWithTemplate.cshtml) - CSharp - CSharpCode - (333:12,6 [66] TagHelpersWithTemplate.cshtml) - RazorIRToken - (333:12,6 [66] TagHelpersWithTemplate.cshtml) - CSharp - \n RenderTemplate(\n "Template: ",\n + IntermediateToken - (333:12,6 [66] TagHelpersWithTemplate.cshtml) - CSharp - \n RenderTemplate(\n "Template: ",\n Template - (400:15,13 [82] TagHelpersWithTemplate.cshtml) TagHelper - (400:15,13 [82] TagHelpersWithTemplate.cshtml) - div - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (422:15,35 [4] TagHelpersWithTemplate.cshtml) - RazorIRToken - (422:15,35 [4] TagHelpersWithTemplate.cshtml) - Html -

+ IntermediateToken - (422:15,35 [4] TagHelpersWithTemplate.cshtml) - Html -

CSharpExpression - (427:15,40 [4] TagHelpersWithTemplate.cshtml) - RazorIRToken - (427:15,40 [4] TagHelpersWithTemplate.cshtml) - CSharp - item + IntermediateToken - (427:15,40 [4] TagHelpersWithTemplate.cshtml) - CSharp - item HtmlContent - (431:15,44 [5] TagHelpersWithTemplate.cshtml) - RazorIRToken - (431:15,44 [5] TagHelpersWithTemplate.cshtml) - Html -

+ IntermediateToken - (431:15,44 [5] TagHelpersWithTemplate.cshtml) - Html - TagHelper - (436:15,49 [40] TagHelpersWithTemplate.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper @@ -35,9 +35,9 @@ Document - CreateTagHelper - - DivTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 CSharpCode - (482:15,95 [8] TagHelpersWithTemplate.cshtml) - RazorIRToken - (482:15,95 [8] TagHelpersWithTemplate.cshtml) - CSharp - );\n + IntermediateToken - (482:15,95 [8] TagHelpersWithTemplate.cshtml) - CSharp - );\n CreateTagHelper - - DivTagHelper HtmlContent - (499:17,6 [4] TagHelpersWithTemplate.cshtml) - RazorIRToken - (499:17,6 [4] TagHelpersWithTemplate.cshtml) - Html - \n\n + IntermediateToken - (499:17,6 [4] TagHelpersWithTemplate.cshtml) - Html - \n\n CSharpCode - (47:2,12 [268] TagHelpersWithTemplate.cshtml) - RazorIRToken - (47:2,12 [268] TagHelpersWithTemplate.cshtml) - CSharp - \n public void RenderTemplate(string title, Func template)\n {\n Output.WriteLine("

Rendering Template:

");\n var helperResult = template(title);\n helperResult.WriteTo(Output, HtmlEncoder);\n }\n + IntermediateToken - (47:2,12 [268] TagHelpersWithTemplate.cshtml) - CSharp - \n public void RenderTemplate(string title, Func template)\n {\n Output.WriteLine("

Rendering Template:

");\n var helperResult = template(title);\n helperResult.WriteTo(Output, HtmlEncoder);\n }\n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.ir.txt index a68bc42ec..eed24bc3c 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.ir.txt @@ -4,61 +4,61 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] TagHelpersWithWeirdlySpacedAttributes.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (31:0,31 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n + IntermediateToken - (31:0,31 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n TagHelper - (35:2,0 [85] TagHelpersWithWeirdlySpacedAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (105:6,25 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (105:6,25 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - Body of Tag + IntermediateToken - (105:6,25 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - Body of Tag CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (54:5,1 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (54:5,1 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - Hello World + IntermediateToken - (54:5,1 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - Hello World SetTagHelperProperty - (74:5,21 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (74:5,21 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - 1337 + IntermediateToken - (74:5,21 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - 1337 AddTagHelperHtmlAttribute - - data-content - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (99:6,19 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (99:6,19 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - true + IntermediateToken - (99:6,19 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - true HtmlContent - (120:6,40 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (120:6,40 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n + IntermediateToken - (120:6,40 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n TagHelper - (124:8,0 [47] TagHelpersWithWeirdlySpacedAttributes.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - type - Type - HtmlAttributeValueStyle.SingleQuotes HtmlContent - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - text + IntermediateToken - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - text SetTagHelperProperty - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - type - Type - HtmlAttributeValueStyle.SingleQuotes HtmlContent - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - text + IntermediateToken - (140:8,16 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - text AddTagHelperHtmlAttribute - - data-content - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (162:8,38 [5] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (162:8,38 [5] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - hello + IntermediateToken - (162:8,38 [5] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - hello HtmlContent - (171:8,47 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (171:8,47 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n + IntermediateToken - (171:8,47 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n TagHelper - (175:10,0 [46] TagHelpersWithWeirdlySpacedAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (186:10,11 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (186:10,11 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - 1234 + IntermediateToken - (186:10,11 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - 1234 AddTagHelperHtmlAttribute - - data-content - HtmlAttributeValueStyle.SingleQuotes HtmlContent - (209:11,3 [6] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (209:11,3 [6] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - hello2 + IntermediateToken - (209:11,3 [6] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - hello2 HtmlContent - (221:11,15 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (221:11,15 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n + IntermediateToken - (221:11,15 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n TagHelper - (225:13,0 [51] TagHelpersWithWeirdlySpacedAttributes.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper CreateTagHelper - - TestNamespace.InputTagHelper2 SetTagHelperProperty - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - password + IntermediateToken - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - password SetTagHelperProperty - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - type - Type - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - password + IntermediateToken - (247:14,8 [8] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - password AddTagHelperHtmlAttribute - - data-content - HtmlAttributeValueStyle.NoQuotes HtmlContent - (270:14,31 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (270:14,31 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - blah + IntermediateToken - (270:14,31 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - blah diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.ir.txt index 4885e7e0d..16565e5d9 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.ir.txt @@ -10,20 +10,20 @@ Document - DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (33:1,0 [2] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (33:1,0 [2] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n + IntermediateToken - (33:1,0 [2] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n TagHelper - (35:2,0 [85] TagHelpersWithWeirdlySpacedAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (105:6,25 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (105:6,25 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - Body of Tag + IntermediateToken - (105:6,25 [11] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - Body of Tag CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 SetTagHelperProperty - (74:5,21 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (74:5,21 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - 1337 + IntermediateToken - (74:5,21 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - 1337 AddTagHelperHtmlAttribute - - data-content - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (99:6,19 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (99:6,19 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - true + IntermediateToken - (99:6,19 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - true HtmlContent - (120:6,40 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (120:6,40 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n + IntermediateToken - (120:6,40 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n TagHelper - (124:8,0 [47] TagHelpersWithWeirdlySpacedAttributes.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper @@ -32,15 +32,15 @@ Document - SetPreallocatedTagHelperProperty - - __tagHelperAttribute_1 - type - Type AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 HtmlContent - (171:8,47 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (171:8,47 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n + IntermediateToken - (171:8,47 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n TagHelper - (175:10,0 [46] TagHelpersWithWeirdlySpacedAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper SetTagHelperProperty - (186:10,11 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (186:10,11 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - 1234 + IntermediateToken - (186:10,11 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - CSharp - 1234 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_3 HtmlContent - (221:11,15 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - RazorIRToken - (221:11,15 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n + IntermediateToken - (221:11,15 [4] TagHelpersWithWeirdlySpacedAttributes.cshtml) - Html - \n\n TagHelper - (225:13,0 [51] TagHelpersWithWeirdlySpacedAttributes.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - TestNamespace.InputTagHelper diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.ir.txt index afb1d5ce7..80821bf23 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.ir.txt @@ -3,143 +3,143 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Templates_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (278:8,1 [4] Templates.cshtml) - RazorIRToken - (278:8,1 [4] Templates.cshtml) - Html - \n\n + IntermediateToken - (278:8,1 [4] Templates.cshtml) - Html - \n\n CSharpCode - (284:10,2 [34] Templates.cshtml) - RazorIRToken - (284:10,2 [34] Templates.cshtml) - CSharp - \n Func foo = + IntermediateToken - (284:10,2 [34] Templates.cshtml) - CSharp - \n Func foo = Template - (325:11,39 [16] Templates.cshtml) HtmlContent - (325:11,39 [11] Templates.cshtml) - RazorIRToken - (325:11,39 [11] Templates.cshtml) - Html - This works + IntermediateToken - (325:11,39 [11] Templates.cshtml) - Html - This works CSharpExpression - (337:11,51 [4] Templates.cshtml) - RazorIRToken - (337:11,51 [4] Templates.cshtml) - CSharp - item + IntermediateToken - (337:11,51 [4] Templates.cshtml) - CSharp - item HtmlContent - (341:11,55 [1] Templates.cshtml) - RazorIRToken - (341:11,55 [1] Templates.cshtml) - Html - ! + IntermediateToken - (341:11,55 [1] Templates.cshtml) - Html - ! CSharpCode - (349:11,63 [7] Templates.cshtml) - RazorIRToken - (349:11,63 [7] Templates.cshtml) - CSharp - ;\n + IntermediateToken - (349:11,63 [7] Templates.cshtml) - CSharp - ;\n CSharpExpression - (357:12,5 [7] Templates.cshtml) - RazorIRToken - (357:12,5 [7] Templates.cshtml) - CSharp - foo("") + IntermediateToken - (357:12,5 [7] Templates.cshtml) - CSharp - foo("") CSharpCode - (364:12,12 [2] Templates.cshtml) - RazorIRToken - (364:12,12 [2] Templates.cshtml) - CSharp - \n + IntermediateToken - (364:12,12 [2] Templates.cshtml) - CSharp - \n HtmlContent - (369:14,0 [2] Templates.cshtml) - RazorIRToken - (369:14,0 [2] Templates.cshtml) - Html - \n + IntermediateToken - (369:14,0 [2] Templates.cshtml) - Html - \n CSharpCode - (373:15,2 [35] Templates.cshtml) - RazorIRToken - (373:15,2 [35] Templates.cshtml) - CSharp - \n Func bar = + IntermediateToken - (373:15,2 [35] Templates.cshtml) - CSharp - \n Func bar = Template - (409:16,33 [26] Templates.cshtml) HtmlContent - (409:16,33 [2] Templates.cshtml) - RazorIRToken - (409:16,33 [2] Templates.cshtml) - Html -

- RazorIRToken - (426:16,50 [5] Templates.cshtml) - Html - Hello - RazorIRToken - (431:16,55 [4] Templates.cshtml) - Html -

+ IntermediateToken - (425:16,49 [1] Templates.cshtml) - Html - > + IntermediateToken - (426:16,50 [5] Templates.cshtml) - Html - Hello + IntermediateToken - (431:16,55 [4] Templates.cshtml) - Html -

CSharpCode - (435:16,59 [7] Templates.cshtml) - RazorIRToken - (435:16,59 [7] Templates.cshtml) - CSharp - ;\n + IntermediateToken - (435:16,59 [7] Templates.cshtml) - CSharp - ;\n CSharpExpression - (443:17,5 [14] Templates.cshtml) - RazorIRToken - (443:17,5 [14] Templates.cshtml) - CSharp - bar("myclass") + IntermediateToken - (443:17,5 [14] Templates.cshtml) - CSharp - bar("myclass") CSharpCode - (457:17,19 [2] Templates.cshtml) - RazorIRToken - (457:17,19 [2] Templates.cshtml) - CSharp - \n + IntermediateToken - (457:17,19 [2] Templates.cshtml) - CSharp - \n HtmlContent - (462:19,0 [8] Templates.cshtml) - RazorIRToken - (462:19,0 [2] Templates.cshtml) - Html - \n - RazorIRToken - (464:20,0 [4] Templates.cshtml) - Html -
    - RazorIRToken - (468:20,4 [2] Templates.cshtml) - Html - \n + IntermediateToken - (462:19,0 [2] Templates.cshtml) - Html - \n + IntermediateToken - (464:20,0 [4] Templates.cshtml) - Html -
      + IntermediateToken - (468:20,4 [2] Templates.cshtml) - Html - \n CSharpExpression - (472:21,2 [31] Templates.cshtml) - RazorIRToken - (472:21,2 [11] Templates.cshtml) - CSharp - Repeat(10, + IntermediateToken - (472:21,2 [11] Templates.cshtml) - CSharp - Repeat(10, Template - (484:21,14 [19] Templates.cshtml) HtmlContent - (484:21,14 [10] Templates.cshtml) - RazorIRToken - (484:21,14 [4] Templates.cshtml) - Html -
    • - RazorIRToken - (488:21,18 [6] Templates.cshtml) - Html - Item # + IntermediateToken - (484:21,14 [4] Templates.cshtml) - Html -
    • + IntermediateToken - (488:21,18 [6] Templates.cshtml) - Html - Item # CSharpExpression - (495:21,25 [4] Templates.cshtml) - RazorIRToken - (495:21,25 [4] Templates.cshtml) - CSharp - item + IntermediateToken - (495:21,25 [4] Templates.cshtml) - CSharp - item HtmlContent - (499:21,29 [5] Templates.cshtml) - RazorIRToken - (499:21,29 [5] Templates.cshtml) - Html -
    • - RazorIRToken - (504:21,34 [1] Templates.cshtml) - CSharp - ) + IntermediateToken - (499:21,29 [5] Templates.cshtml) - Html - + IntermediateToken - (504:21,34 [1] Templates.cshtml) - CSharp - ) HtmlContent - (506:21,36 [16] Templates.cshtml) - RazorIRToken - (506:21,36 [2] Templates.cshtml) - Html - \n - RazorIRToken - (508:22,0 [5] Templates.cshtml) - Html -
    - RazorIRToken - (513:22,5 [4] Templates.cshtml) - Html - \n\n - RazorIRToken - (517:24,0 [3] Templates.cshtml) - Html -

    - RazorIRToken - (520:24,3 [2] Templates.cshtml) - Html - \n + IntermediateToken - (506:21,36 [2] Templates.cshtml) - Html - \n + IntermediateToken - (508:22,0 [5] Templates.cshtml) - Html -

+ IntermediateToken - (513:22,5 [4] Templates.cshtml) - Html - \n\n + IntermediateToken - (517:24,0 [3] Templates.cshtml) - Html -

+ IntermediateToken - (520:24,3 [2] Templates.cshtml) - Html - \n CSharpExpression - (523:25,1 [52] Templates.cshtml) - RazorIRToken - (523:25,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n + IntermediateToken - (523:25,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n Template - (541:26,6 [35] Templates.cshtml) HtmlContent - (541:26,6 [14] Templates.cshtml) - RazorIRToken - (541:26,6 [14] Templates.cshtml) - Html - This is line# + IntermediateToken - (541:26,6 [14] Templates.cshtml) - Html - This is line# CSharpExpression - (556:26,21 [4] Templates.cshtml) - RazorIRToken - (556:26,21 [4] Templates.cshtml) - CSharp - item + IntermediateToken - (556:26,21 [4] Templates.cshtml) - CSharp - item HtmlContent - (560:26,25 [17] Templates.cshtml) - RazorIRToken - (560:26,25 [17] Templates.cshtml) - Html - of markup
\n - RazorIRToken - (577:27,0 [1] Templates.cshtml) - CSharp - ) + IntermediateToken - (560:26,25 [17] Templates.cshtml) - Html - of markup
\n + IntermediateToken - (577:27,0 [1] Templates.cshtml) - CSharp - ) HtmlContent - (578:27,1 [15] Templates.cshtml) - RazorIRToken - (578:27,1 [2] Templates.cshtml) - Html - \n - RazorIRToken - (580:28,0 [4] Templates.cshtml) - Html -

- RazorIRToken - (584:28,4 [4] Templates.cshtml) - Html - \n\n - RazorIRToken - (588:30,0 [3] Templates.cshtml) - Html -

- RazorIRToken - (591:30,3 [2] Templates.cshtml) - Html - \n + IntermediateToken - (578:27,1 [2] Templates.cshtml) - Html - \n + IntermediateToken - (580:28,0 [4] Templates.cshtml) - Html -

+ IntermediateToken - (584:28,4 [4] Templates.cshtml) - Html - \n\n + IntermediateToken - (588:30,0 [3] Templates.cshtml) - Html -

+ IntermediateToken - (591:30,3 [2] Templates.cshtml) - Html - \n CSharpExpression - (594:31,1 [54] Templates.cshtml) - RazorIRToken - (594:31,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n + IntermediateToken - (594:31,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n Template - (612:32,6 [37] Templates.cshtml) HtmlContent - (612:32,6 [15] Templates.cshtml) - RazorIRToken - (612:32,6 [15] Templates.cshtml) - Html - : This is line# + IntermediateToken - (612:32,6 [15] Templates.cshtml) - Html - : This is line# CSharpExpression - (628:32,22 [4] Templates.cshtml) - RazorIRToken - (628:32,22 [4] Templates.cshtml) - CSharp - item + IntermediateToken - (628:32,22 [4] Templates.cshtml) - CSharp - item HtmlContent - (632:32,26 [18] Templates.cshtml) - RazorIRToken - (632:32,26 [18] Templates.cshtml) - Html - of markup
\n - RazorIRToken - (650:33,0 [1] Templates.cshtml) - CSharp - ) + IntermediateToken - (632:32,26 [18] Templates.cshtml) - Html - of markup
\n + IntermediateToken - (650:33,0 [1] Templates.cshtml) - CSharp - ) HtmlContent - (651:33,1 [15] Templates.cshtml) - RazorIRToken - (651:33,1 [2] Templates.cshtml) - Html - \n - RazorIRToken - (653:34,0 [4] Templates.cshtml) - Html -

- RazorIRToken - (657:34,4 [4] Templates.cshtml) - Html - \n\n - RazorIRToken - (661:36,0 [3] Templates.cshtml) - Html -

- RazorIRToken - (664:36,3 [2] Templates.cshtml) - Html - \n + IntermediateToken - (651:33,1 [2] Templates.cshtml) - Html - \n + IntermediateToken - (653:34,0 [4] Templates.cshtml) - Html -

+ IntermediateToken - (657:34,4 [4] Templates.cshtml) - Html - \n\n + IntermediateToken - (661:36,0 [3] Templates.cshtml) - Html -

+ IntermediateToken - (664:36,3 [2] Templates.cshtml) - Html - \n CSharpExpression - (667:37,1 [55] Templates.cshtml) - RazorIRToken - (667:37,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n + IntermediateToken - (667:37,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n Template - (685:38,6 [38] Templates.cshtml) HtmlContent - (685:38,6 [16] Templates.cshtml) - RazorIRToken - (685:38,6 [16] Templates.cshtml) - Html - :: This is line# + IntermediateToken - (685:38,6 [16] Templates.cshtml) - Html - :: This is line# CSharpExpression - (702:38,23 [4] Templates.cshtml) - RazorIRToken - (702:38,23 [4] Templates.cshtml) - CSharp - item + IntermediateToken - (702:38,23 [4] Templates.cshtml) - CSharp - item HtmlContent - (706:38,27 [18] Templates.cshtml) - RazorIRToken - (706:38,27 [18] Templates.cshtml) - Html - of markup
\n - RazorIRToken - (724:39,0 [1] Templates.cshtml) - CSharp - ) + IntermediateToken - (706:38,27 [18] Templates.cshtml) - Html - of markup
\n + IntermediateToken - (724:39,0 [1] Templates.cshtml) - CSharp - ) HtmlContent - (725:39,1 [22] Templates.cshtml) - RazorIRToken - (725:39,1 [2] Templates.cshtml) - Html - \n - RazorIRToken - (727:40,0 [4] Templates.cshtml) - Html -

- RazorIRToken - (731:40,4 [6] Templates.cshtml) - Html - \n\n\n - RazorIRToken - (737:43,0 [4] Templates.cshtml) - Html -
    - RazorIRToken - (741:43,4 [6] Templates.cshtml) - Html - \n + IntermediateToken - (725:39,1 [2] Templates.cshtml) - Html - \n + IntermediateToken - (727:40,0 [4] Templates.cshtml) - Html -

    + IntermediateToken - (731:40,4 [6] Templates.cshtml) - Html - \n\n\n + IntermediateToken - (737:43,0 [4] Templates.cshtml) - Html -
      + IntermediateToken - (741:43,4 [6] Templates.cshtml) - Html - \n CSharpExpression - (748:44,5 [141] Templates.cshtml) - RazorIRToken - (748:44,5 [11] Templates.cshtml) - CSharp - Repeat(10, + IntermediateToken - (748:44,5 [11] Templates.cshtml) - CSharp - Repeat(10, Template - (760:44,17 [129] Templates.cshtml) HtmlContent - (760:44,17 [20] Templates.cshtml) - RazorIRToken - (760:44,17 [4] Templates.cshtml) - Html -
    • - RazorIRToken - (764:44,21 [16] Templates.cshtml) - Html - \n Item # + IntermediateToken - (760:44,17 [4] Templates.cshtml) - Html -
    • + IntermediateToken - (764:44,21 [16] Templates.cshtml) - Html - \n Item # CSharpExpression - (781:45,15 [4] Templates.cshtml) - RazorIRToken - (781:45,15 [4] Templates.cshtml) - CSharp - item + IntermediateToken - (781:45,15 [4] Templates.cshtml) - CSharp - item HtmlContent - (785:45,19 [10] Templates.cshtml) - RazorIRToken - (785:45,19 [10] Templates.cshtml) - Html - \n + IntermediateToken - (785:45,19 [10] Templates.cshtml) - Html - \n CSharpCode - (797:46,10 [18] Templates.cshtml) - RazorIRToken - (797:46,10 [18] Templates.cshtml) - CSharp - var parent = item; + IntermediateToken - (797:46,10 [18] Templates.cshtml) - CSharp - var parent = item; HtmlContent - (818:47,0 [53] Templates.cshtml) - RazorIRToken - (818:47,0 [8] Templates.cshtml) - Html - - RazorIRToken - (826:47,8 [4] Templates.cshtml) - Html -
        - RazorIRToken - (830:47,12 [14] Templates.cshtml) - Html - \n - RazorIRToken - (844:48,12 [4] Templates.cshtml) - Html -
      • - RazorIRToken - (848:48,16 [16] Templates.cshtml) - Html - Child Items... ? - RazorIRToken - (864:48,32 [5] Templates.cshtml) - Html -
      • - RazorIRToken - (869:48,37 [2] Templates.cshtml) - Html - \n + IntermediateToken - (818:47,0 [8] Templates.cshtml) - Html - + IntermediateToken - (826:47,8 [4] Templates.cshtml) - Html -
          + IntermediateToken - (830:47,12 [14] Templates.cshtml) - Html - \n + IntermediateToken - (844:48,12 [4] Templates.cshtml) - Html -
        • + IntermediateToken - (848:48,16 [16] Templates.cshtml) - Html - Child Items... ? + IntermediateToken - (864:48,32 [5] Templates.cshtml) - Html -
        • + IntermediateToken - (869:48,37 [2] Templates.cshtml) - Html - \n HtmlContent - (932:50,0 [24] Templates.cshtml) - RazorIRToken - (932:50,0 [8] Templates.cshtml) - Html - - RazorIRToken - (940:50,8 [5] Templates.cshtml) - Html -
        - RazorIRToken - (945:50,13 [6] Templates.cshtml) - Html - \n - RazorIRToken - (951:51,4 [5] Templates.cshtml) - Html - - RazorIRToken - (956:51,9 [1] Templates.cshtml) - CSharp - ) + IntermediateToken - (932:50,0 [8] Templates.cshtml) - Html - + IntermediateToken - (940:50,8 [5] Templates.cshtml) - Html -
      + IntermediateToken - (945:50,13 [6] Templates.cshtml) - Html - \n + IntermediateToken - (951:51,4 [5] Templates.cshtml) - Html -
    • + IntermediateToken - (956:51,9 [1] Templates.cshtml) - CSharp - ) HtmlContent - (957:51,10 [8] Templates.cshtml) - RazorIRToken - (957:51,10 [2] Templates.cshtml) - Html - \n - RazorIRToken - (959:52,0 [5] Templates.cshtml) - Html -
    - RazorIRToken - (964:52,5 [1] Templates.cshtml) - Html - + IntermediateToken - (957:51,10 [2] Templates.cshtml) - Html - \n + IntermediateToken - (959:52,0 [5] Templates.cshtml) - Html -
+ IntermediateToken - (964:52,5 [1] Templates.cshtml) - Html - CSharpCode - (12:0,12 [265] Templates.cshtml) - RazorIRToken - (12:0,12 [265] Templates.cshtml) - CSharp - \n public HelperResult Repeat(int times, Func template) {\n return new HelperResult((writer) => {\n for(int i = 0; i < times; i++) {\n ((HelperResult)template(i)).WriteTo(writer);\n }\n });\n }\n + IntermediateToken - (12:0,12 [265] Templates.cshtml) - CSharp - \n public HelperResult Repeat(int times, Func template) {\n return new HelperResult((writer) => {\n for(int i = 0; i < times; i++) {\n ((HelperResult)template(i)).WriteTo(writer);\n }\n });\n }\n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.ir.txt index 5c10649e4..8cce0a9c4 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.ir.txt @@ -3,143 +3,143 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Templates_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (280:9,0 [2] Templates.cshtml) - RazorIRToken - (280:9,0 [2] Templates.cshtml) - Html - \n + IntermediateToken - (280:9,0 [2] Templates.cshtml) - Html - \n CSharpCode - (284:10,2 [34] Templates.cshtml) - RazorIRToken - (284:10,2 [34] Templates.cshtml) - CSharp - \n Func foo = + IntermediateToken - (284:10,2 [34] Templates.cshtml) - CSharp - \n Func foo = Template - (325:11,39 [16] Templates.cshtml) HtmlContent - (325:11,39 [11] Templates.cshtml) - RazorIRToken - (325:11,39 [11] Templates.cshtml) - Html - This works + IntermediateToken - (325:11,39 [11] Templates.cshtml) - Html - This works CSharpExpression - (337:11,51 [4] Templates.cshtml) - RazorIRToken - (337:11,51 [4] Templates.cshtml) - CSharp - item + IntermediateToken - (337:11,51 [4] Templates.cshtml) - CSharp - item HtmlContent - (341:11,55 [1] Templates.cshtml) - RazorIRToken - (341:11,55 [1] Templates.cshtml) - Html - ! + IntermediateToken - (341:11,55 [1] Templates.cshtml) - Html - ! CSharpCode - (349:11,63 [7] Templates.cshtml) - RazorIRToken - (349:11,63 [7] Templates.cshtml) - CSharp - ;\n + IntermediateToken - (349:11,63 [7] Templates.cshtml) - CSharp - ;\n CSharpExpression - (357:12,5 [7] Templates.cshtml) - RazorIRToken - (357:12,5 [7] Templates.cshtml) - CSharp - foo("") + IntermediateToken - (357:12,5 [7] Templates.cshtml) - CSharp - foo("") CSharpCode - (364:12,12 [2] Templates.cshtml) - RazorIRToken - (364:12,12 [2] Templates.cshtml) - CSharp - \n + IntermediateToken - (364:12,12 [2] Templates.cshtml) - CSharp - \n HtmlContent - (369:14,0 [2] Templates.cshtml) - RazorIRToken - (369:14,0 [2] Templates.cshtml) - Html - \n + IntermediateToken - (369:14,0 [2] Templates.cshtml) - Html - \n CSharpCode - (373:15,2 [35] Templates.cshtml) - RazorIRToken - (373:15,2 [35] Templates.cshtml) - CSharp - \n Func bar = + IntermediateToken - (373:15,2 [35] Templates.cshtml) - CSharp - \n Func bar = Template - (409:16,33 [26] Templates.cshtml) HtmlContent - (409:16,33 [2] Templates.cshtml) - RazorIRToken - (409:16,33 [2] Templates.cshtml) - Html -

- RazorIRToken - (426:16,50 [5] Templates.cshtml) - Html - Hello - RazorIRToken - (431:16,55 [4] Templates.cshtml) - Html -

+ IntermediateToken - (425:16,49 [1] Templates.cshtml) - Html - > + IntermediateToken - (426:16,50 [5] Templates.cshtml) - Html - Hello + IntermediateToken - (431:16,55 [4] Templates.cshtml) - Html -

CSharpCode - (435:16,59 [7] Templates.cshtml) - RazorIRToken - (435:16,59 [7] Templates.cshtml) - CSharp - ;\n + IntermediateToken - (435:16,59 [7] Templates.cshtml) - CSharp - ;\n CSharpExpression - (443:17,5 [14] Templates.cshtml) - RazorIRToken - (443:17,5 [14] Templates.cshtml) - CSharp - bar("myclass") + IntermediateToken - (443:17,5 [14] Templates.cshtml) - CSharp - bar("myclass") CSharpCode - (457:17,19 [2] Templates.cshtml) - RazorIRToken - (457:17,19 [2] Templates.cshtml) - CSharp - \n + IntermediateToken - (457:17,19 [2] Templates.cshtml) - CSharp - \n HtmlContent - (462:19,0 [8] Templates.cshtml) - RazorIRToken - (462:19,0 [2] Templates.cshtml) - Html - \n - RazorIRToken - (464:20,0 [4] Templates.cshtml) - Html -
    - RazorIRToken - (468:20,4 [2] Templates.cshtml) - Html - \n + IntermediateToken - (462:19,0 [2] Templates.cshtml) - Html - \n + IntermediateToken - (464:20,0 [4] Templates.cshtml) - Html -
      + IntermediateToken - (468:20,4 [2] Templates.cshtml) - Html - \n CSharpExpression - (472:21,2 [31] Templates.cshtml) - RazorIRToken - (472:21,2 [11] Templates.cshtml) - CSharp - Repeat(10, + IntermediateToken - (472:21,2 [11] Templates.cshtml) - CSharp - Repeat(10, Template - (484:21,14 [19] Templates.cshtml) HtmlContent - (484:21,14 [10] Templates.cshtml) - RazorIRToken - (484:21,14 [4] Templates.cshtml) - Html -
    • - RazorIRToken - (488:21,18 [6] Templates.cshtml) - Html - Item # + IntermediateToken - (484:21,14 [4] Templates.cshtml) - Html -
    • + IntermediateToken - (488:21,18 [6] Templates.cshtml) - Html - Item # CSharpExpression - (495:21,25 [4] Templates.cshtml) - RazorIRToken - (495:21,25 [4] Templates.cshtml) - CSharp - item + IntermediateToken - (495:21,25 [4] Templates.cshtml) - CSharp - item HtmlContent - (499:21,29 [5] Templates.cshtml) - RazorIRToken - (499:21,29 [5] Templates.cshtml) - Html -
    • - RazorIRToken - (504:21,34 [1] Templates.cshtml) - CSharp - ) + IntermediateToken - (499:21,29 [5] Templates.cshtml) - Html - + IntermediateToken - (504:21,34 [1] Templates.cshtml) - CSharp - ) HtmlContent - (506:21,36 [16] Templates.cshtml) - RazorIRToken - (506:21,36 [2] Templates.cshtml) - Html - \n - RazorIRToken - (508:22,0 [5] Templates.cshtml) - Html -
    - RazorIRToken - (513:22,5 [4] Templates.cshtml) - Html - \n\n - RazorIRToken - (517:24,0 [3] Templates.cshtml) - Html -

    - RazorIRToken - (520:24,3 [2] Templates.cshtml) - Html - \n + IntermediateToken - (506:21,36 [2] Templates.cshtml) - Html - \n + IntermediateToken - (508:22,0 [5] Templates.cshtml) - Html -

+ IntermediateToken - (513:22,5 [4] Templates.cshtml) - Html - \n\n + IntermediateToken - (517:24,0 [3] Templates.cshtml) - Html -

+ IntermediateToken - (520:24,3 [2] Templates.cshtml) - Html - \n CSharpExpression - (523:25,1 [52] Templates.cshtml) - RazorIRToken - (523:25,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n + IntermediateToken - (523:25,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n Template - (541:26,6 [35] Templates.cshtml) HtmlContent - (541:26,6 [14] Templates.cshtml) - RazorIRToken - (541:26,6 [14] Templates.cshtml) - Html - This is line# + IntermediateToken - (541:26,6 [14] Templates.cshtml) - Html - This is line# CSharpExpression - (556:26,21 [4] Templates.cshtml) - RazorIRToken - (556:26,21 [4] Templates.cshtml) - CSharp - item + IntermediateToken - (556:26,21 [4] Templates.cshtml) - CSharp - item HtmlContent - (560:26,25 [17] Templates.cshtml) - RazorIRToken - (560:26,25 [17] Templates.cshtml) - Html - of markup
\n - RazorIRToken - (577:27,0 [1] Templates.cshtml) - CSharp - ) + IntermediateToken - (560:26,25 [17] Templates.cshtml) - Html - of markup
\n + IntermediateToken - (577:27,0 [1] Templates.cshtml) - CSharp - ) HtmlContent - (578:27,1 [15] Templates.cshtml) - RazorIRToken - (578:27,1 [2] Templates.cshtml) - Html - \n - RazorIRToken - (580:28,0 [4] Templates.cshtml) - Html -

- RazorIRToken - (584:28,4 [4] Templates.cshtml) - Html - \n\n - RazorIRToken - (588:30,0 [3] Templates.cshtml) - Html -

- RazorIRToken - (591:30,3 [2] Templates.cshtml) - Html - \n + IntermediateToken - (578:27,1 [2] Templates.cshtml) - Html - \n + IntermediateToken - (580:28,0 [4] Templates.cshtml) - Html -

+ IntermediateToken - (584:28,4 [4] Templates.cshtml) - Html - \n\n + IntermediateToken - (588:30,0 [3] Templates.cshtml) - Html -

+ IntermediateToken - (591:30,3 [2] Templates.cshtml) - Html - \n CSharpExpression - (594:31,1 [54] Templates.cshtml) - RazorIRToken - (594:31,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n + IntermediateToken - (594:31,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n Template - (612:32,6 [37] Templates.cshtml) HtmlContent - (612:32,6 [15] Templates.cshtml) - RazorIRToken - (612:32,6 [15] Templates.cshtml) - Html - : This is line# + IntermediateToken - (612:32,6 [15] Templates.cshtml) - Html - : This is line# CSharpExpression - (628:32,22 [4] Templates.cshtml) - RazorIRToken - (628:32,22 [4] Templates.cshtml) - CSharp - item + IntermediateToken - (628:32,22 [4] Templates.cshtml) - CSharp - item HtmlContent - (632:32,26 [18] Templates.cshtml) - RazorIRToken - (632:32,26 [18] Templates.cshtml) - Html - of markup
\n - RazorIRToken - (650:33,0 [1] Templates.cshtml) - CSharp - ) + IntermediateToken - (632:32,26 [18] Templates.cshtml) - Html - of markup
\n + IntermediateToken - (650:33,0 [1] Templates.cshtml) - CSharp - ) HtmlContent - (651:33,1 [15] Templates.cshtml) - RazorIRToken - (651:33,1 [2] Templates.cshtml) - Html - \n - RazorIRToken - (653:34,0 [4] Templates.cshtml) - Html -

- RazorIRToken - (657:34,4 [4] Templates.cshtml) - Html - \n\n - RazorIRToken - (661:36,0 [3] Templates.cshtml) - Html -

- RazorIRToken - (664:36,3 [2] Templates.cshtml) - Html - \n + IntermediateToken - (651:33,1 [2] Templates.cshtml) - Html - \n + IntermediateToken - (653:34,0 [4] Templates.cshtml) - Html -

+ IntermediateToken - (657:34,4 [4] Templates.cshtml) - Html - \n\n + IntermediateToken - (661:36,0 [3] Templates.cshtml) - Html -

+ IntermediateToken - (664:36,3 [2] Templates.cshtml) - Html - \n CSharpExpression - (667:37,1 [55] Templates.cshtml) - RazorIRToken - (667:37,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n + IntermediateToken - (667:37,1 [16] Templates.cshtml) - CSharp - Repeat(10,\n Template - (685:38,6 [38] Templates.cshtml) HtmlContent - (685:38,6 [16] Templates.cshtml) - RazorIRToken - (685:38,6 [16] Templates.cshtml) - Html - :: This is line# + IntermediateToken - (685:38,6 [16] Templates.cshtml) - Html - :: This is line# CSharpExpression - (702:38,23 [4] Templates.cshtml) - RazorIRToken - (702:38,23 [4] Templates.cshtml) - CSharp - item + IntermediateToken - (702:38,23 [4] Templates.cshtml) - CSharp - item HtmlContent - (706:38,27 [18] Templates.cshtml) - RazorIRToken - (706:38,27 [18] Templates.cshtml) - Html - of markup
\n - RazorIRToken - (724:39,0 [1] Templates.cshtml) - CSharp - ) + IntermediateToken - (706:38,27 [18] Templates.cshtml) - Html - of markup
\n + IntermediateToken - (724:39,0 [1] Templates.cshtml) - CSharp - ) HtmlContent - (725:39,1 [22] Templates.cshtml) - RazorIRToken - (725:39,1 [2] Templates.cshtml) - Html - \n - RazorIRToken - (727:40,0 [4] Templates.cshtml) - Html -

- RazorIRToken - (731:40,4 [6] Templates.cshtml) - Html - \n\n\n - RazorIRToken - (737:43,0 [4] Templates.cshtml) - Html -
    - RazorIRToken - (741:43,4 [2] Templates.cshtml) - Html - \n - RazorIRToken - (743:44,0 [4] Templates.cshtml) - Html - + IntermediateToken - (725:39,1 [2] Templates.cshtml) - Html - \n + IntermediateToken - (727:40,0 [4] Templates.cshtml) - Html -

    + IntermediateToken - (731:40,4 [6] Templates.cshtml) - Html - \n\n\n + IntermediateToken - (737:43,0 [4] Templates.cshtml) - Html -
      + IntermediateToken - (741:43,4 [2] Templates.cshtml) - Html - \n + IntermediateToken - (743:44,0 [4] Templates.cshtml) - Html - CSharpExpression - (748:44,5 [141] Templates.cshtml) - RazorIRToken - (748:44,5 [11] Templates.cshtml) - CSharp - Repeat(10, + IntermediateToken - (748:44,5 [11] Templates.cshtml) - CSharp - Repeat(10, Template - (760:44,17 [129] Templates.cshtml) HtmlContent - (760:44,17 [20] Templates.cshtml) - RazorIRToken - (760:44,17 [4] Templates.cshtml) - Html -
    • - RazorIRToken - (764:44,21 [16] Templates.cshtml) - Html - \n Item # + IntermediateToken - (760:44,17 [4] Templates.cshtml) - Html -
    • + IntermediateToken - (764:44,21 [16] Templates.cshtml) - Html - \n Item # CSharpExpression - (781:45,15 [4] Templates.cshtml) - RazorIRToken - (781:45,15 [4] Templates.cshtml) - CSharp - item + IntermediateToken - (781:45,15 [4] Templates.cshtml) - CSharp - item HtmlContent - (785:45,19 [2] Templates.cshtml) - RazorIRToken - (785:45,19 [2] Templates.cshtml) - Html - \n + IntermediateToken - (785:45,19 [2] Templates.cshtml) - Html - \n CSharpCode - (787:46,0 [8] Templates.cshtml) - RazorIRToken - (787:46,0 [8] Templates.cshtml) - CSharp - + IntermediateToken - (787:46,0 [8] Templates.cshtml) - CSharp - CSharpCode - (797:46,10 [18] Templates.cshtml) - RazorIRToken - (797:46,10 [18] Templates.cshtml) - CSharp - var parent = item; + IntermediateToken - (797:46,10 [18] Templates.cshtml) - CSharp - var parent = item; HtmlContent - (818:47,0 [53] Templates.cshtml) - RazorIRToken - (818:47,0 [8] Templates.cshtml) - Html - - RazorIRToken - (826:47,8 [4] Templates.cshtml) - Html -
        - RazorIRToken - (830:47,12 [14] Templates.cshtml) - Html - \n - RazorIRToken - (844:48,12 [4] Templates.cshtml) - Html -
      • - RazorIRToken - (848:48,16 [16] Templates.cshtml) - Html - Child Items... ? - RazorIRToken - (864:48,32 [5] Templates.cshtml) - Html -
      • - RazorIRToken - (869:48,37 [2] Templates.cshtml) - Html - \n + IntermediateToken - (818:47,0 [8] Templates.cshtml) - Html - + IntermediateToken - (826:47,8 [4] Templates.cshtml) - Html -
          + IntermediateToken - (830:47,12 [14] Templates.cshtml) - Html - \n + IntermediateToken - (844:48,12 [4] Templates.cshtml) - Html -
        • + IntermediateToken - (848:48,16 [16] Templates.cshtml) - Html - Child Items... ? + IntermediateToken - (864:48,32 [5] Templates.cshtml) - Html -
        • + IntermediateToken - (869:48,37 [2] Templates.cshtml) - Html - \n HtmlContent - (932:50,0 [24] Templates.cshtml) - RazorIRToken - (932:50,0 [8] Templates.cshtml) - Html - - RazorIRToken - (940:50,8 [5] Templates.cshtml) - Html -
        - RazorIRToken - (945:50,13 [6] Templates.cshtml) - Html - \n - RazorIRToken - (951:51,4 [5] Templates.cshtml) - Html - - RazorIRToken - (956:51,9 [1] Templates.cshtml) - CSharp - ) + IntermediateToken - (932:50,0 [8] Templates.cshtml) - Html - + IntermediateToken - (940:50,8 [5] Templates.cshtml) - Html -
      + IntermediateToken - (945:50,13 [6] Templates.cshtml) - Html - \n + IntermediateToken - (951:51,4 [5] Templates.cshtml) - Html -
    • + IntermediateToken - (956:51,9 [1] Templates.cshtml) - CSharp - ) HtmlContent - (957:51,10 [8] Templates.cshtml) - RazorIRToken - (957:51,10 [2] Templates.cshtml) - Html - \n - RazorIRToken - (959:52,0 [5] Templates.cshtml) - Html -
    - RazorIRToken - (964:52,5 [1] Templates.cshtml) - Html - + IntermediateToken - (957:51,10 [2] Templates.cshtml) - Html - \n + IntermediateToken - (959:52,0 [5] Templates.cshtml) - Html -
+ IntermediateToken - (964:52,5 [1] Templates.cshtml) - Html - CSharpCode - (12:0,12 [265] Templates.cshtml) - RazorIRToken - (12:0,12 [265] Templates.cshtml) - CSharp - \n public HelperResult Repeat(int times, Func template) {\n return new HelperResult((writer) => {\n for(int i = 0; i < times; i++) {\n ((HelperResult)template(i)).WriteTo(writer);\n }\n });\n }\n + IntermediateToken - (12:0,12 [265] Templates.cshtml) - CSharp - \n public HelperResult Repeat(int times, Func template) {\n return new HelperResult((writer) => {\n for(int i = 0; i < times; i++) {\n ((HelperResult)template(i)).WriteTo(writer);\n }\n });\n }\n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.ir.txt index 1a49cc7bc..8c58ad91f 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.ir.txt @@ -4,91 +4,91 @@ Document - DesignTimeDirective - DirectiveToken - (14:0,14 [17] TransitionsInTagHelperAttributes.cshtml) - "*, TestAssembly" CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (31:0,31 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (31:0,31 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n CSharpCode - (35:1,2 [59] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (35:1,2 [59] TransitionsInTagHelperAttributes.cshtml) - CSharp - \n var @class = "container-fluid";\n var @int = 1;\n + IntermediateToken - (35:1,2 [59] TransitionsInTagHelperAttributes.cshtml) - CSharp - \n var @class = "container-fluid";\n var @int = 1;\n HtmlContent - (97:5,0 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (97:5,0 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (97:5,0 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n TagHelper - (99:6,0 [44] TransitionsInTagHelperAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (128:6,29 [11] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (128:6,29 [11] TransitionsInTagHelperAttributes.cshtml) - Html - Body of Tag + IntermediateToken - (128:6,29 [11] TransitionsInTagHelperAttributes.cshtml) - Html - Body of Tag CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes CSharpCodeAttributeValue - (109:6,10 [6] TransitionsInTagHelperAttributes.cshtml) - SetTagHelperProperty - (122:6,23 [4] TransitionsInTagHelperAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (122:6,23 [4] TransitionsInTagHelperAttributes.cshtml) - CSharp - 1337 + IntermediateToken - (122:6,23 [4] TransitionsInTagHelperAttributes.cshtml) - CSharp - 1337 HtmlContent - (143:6,44 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (143:6,44 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (143:6,44 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n TagHelper - (145:7,0 [34] TransitionsInTagHelperAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes CSharpExpressionAttributeValue - (155:7,10 [9] TransitionsInTagHelperAttributes.cshtml) - - RazorIRToken - (157:7,12 [6] TransitionsInTagHelperAttributes.cshtml) - CSharp - @class + IntermediateToken - (157:7,12 [6] TransitionsInTagHelperAttributes.cshtml) - CSharp - @class SetTagHelperProperty - (171:7,26 [2] TransitionsInTagHelperAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (171:7,26 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - 42 + IntermediateToken - (171:7,26 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - 42 HtmlContent - (179:7,34 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (179:7,34 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (179:7,34 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n TagHelper - (181:8,0 [36] TransitionsInTagHelperAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (191:8,10 [4] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (191:8,10 [4] TransitionsInTagHelperAttributes.cshtml) - Html - test + IntermediateToken - (191:8,10 [4] TransitionsInTagHelperAttributes.cshtml) - Html - test SetTagHelperProperty - (202:8,21 [9] TransitionsInTagHelperAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (202:8,21 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - 42 - RazorIRToken - (204:8,23 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - + - RazorIRToken - (206:8,25 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - + IntermediateToken - (202:8,21 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - 42 + IntermediateToken - (204:8,23 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - + + IntermediateToken - (206:8,25 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - CSharpExpression - (207:8,26 [4] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (207:8,26 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - @ - RazorIRToken - (208:8,27 [3] TransitionsInTagHelperAttributes.cshtml) - CSharp - int + IntermediateToken - (207:8,26 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - @ + IntermediateToken - (208:8,27 [3] TransitionsInTagHelperAttributes.cshtml) - CSharp - int HtmlContent - (217:8,36 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (217:8,36 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (217:8,36 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n TagHelper - (219:9,0 [31] TransitionsInTagHelperAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (229:9,10 [4] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (229:9,10 [4] TransitionsInTagHelperAttributes.cshtml) - Html - test + IntermediateToken - (229:9,10 [4] TransitionsInTagHelperAttributes.cshtml) - Html - test SetTagHelperProperty - (240:9,21 [4] TransitionsInTagHelperAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (241:9,22 [3] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (241:9,22 [3] TransitionsInTagHelperAttributes.cshtml) - CSharp - int + IntermediateToken - (241:9,22 [3] TransitionsInTagHelperAttributes.cshtml) - CSharp - int HtmlContent - (250:9,31 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (250:9,31 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (250:9,31 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n TagHelper - (252:10,0 [34] TransitionsInTagHelperAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlContent - (262:10,10 [4] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (262:10,10 [4] TransitionsInTagHelperAttributes.cshtml) - Html - test + IntermediateToken - (262:10,10 [4] TransitionsInTagHelperAttributes.cshtml) - Html - test SetTagHelperProperty - (273:10,21 [7] TransitionsInTagHelperAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (274:10,22 [6] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (274:10,22 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ( - RazorIRToken - (275:10,23 [4] TransitionsInTagHelperAttributes.cshtml) - CSharp - @int - RazorIRToken - (279:10,27 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ) + IntermediateToken - (274:10,22 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ( + IntermediateToken - (275:10,23 [4] TransitionsInTagHelperAttributes.cshtml) - CSharp - @int + IntermediateToken - (279:10,27 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ) HtmlContent - (286:10,34 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (286:10,34 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (286:10,34 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n TagHelper - (288:11,0 [54] TransitionsInTagHelperAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlAttributeValue - (298:11,10 [7] TransitionsInTagHelperAttributes.cshtml) - - RazorIRToken - (298:11,10 [7] TransitionsInTagHelperAttributes.cshtml) - Html - custom- + IntermediateToken - (298:11,10 [7] TransitionsInTagHelperAttributes.cshtml) - Html - custom- CSharpExpressionAttributeValue - (305:11,17 [9] TransitionsInTagHelperAttributes.cshtml) - - RazorIRToken - (307:11,19 [6] TransitionsInTagHelperAttributes.cshtml) - CSharp - @class + IntermediateToken - (307:11,19 [6] TransitionsInTagHelperAttributes.cshtml) - CSharp - @class SetTagHelperProperty - (321:11,33 [15] TransitionsInTagHelperAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (321:11,33 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - 4 - RazorIRToken - (322:11,34 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - * - RazorIRToken - (324:11,36 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - + IntermediateToken - (321:11,33 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - 4 + IntermediateToken - (322:11,34 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - * + IntermediateToken - (324:11,36 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - CSharpExpression - (325:11,37 [11] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (325:11,37 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - @ - RazorIRToken - (326:11,38 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ( - RazorIRToken - (327:11,39 [8] TransitionsInTagHelperAttributes.cshtml) - CSharp - @int + 2 - RazorIRToken - (335:11,47 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ) + IntermediateToken - (325:11,37 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - @ + IntermediateToken - (326:11,38 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ( + IntermediateToken - (327:11,39 [8] TransitionsInTagHelperAttributes.cshtml) - CSharp - @int + 2 + IntermediateToken - (335:11,47 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ) HtmlContent - (342:11,54 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (342:11,54 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (342:11,54 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_Runtime.ir.txt index 95739f854..71084440a 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_Runtime.ir.txt @@ -5,79 +5,79 @@ Document - DeclareTagHelperFields - - TestNamespace.PTagHelper MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (35:1,2 [59] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (35:1,2 [59] TransitionsInTagHelperAttributes.cshtml) - CSharp - \n var @class = "container-fluid";\n var @int = 1;\n + IntermediateToken - (35:1,2 [59] TransitionsInTagHelperAttributes.cshtml) - CSharp - \n var @class = "container-fluid";\n var @int = 1;\n HtmlContent - (97:5,0 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (97:5,0 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (97:5,0 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n TagHelper - (99:6,0 [44] TransitionsInTagHelperAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (128:6,29 [11] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (128:6,29 [11] TransitionsInTagHelperAttributes.cshtml) - Html - Body of Tag + IntermediateToken - (128:6,29 [11] TransitionsInTagHelperAttributes.cshtml) - Html - Body of Tag CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes CSharpCodeAttributeValue - (109:6,10 [6] TransitionsInTagHelperAttributes.cshtml) - SetTagHelperProperty - (122:6,23 [4] TransitionsInTagHelperAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (122:6,23 [4] TransitionsInTagHelperAttributes.cshtml) - CSharp - 1337 + IntermediateToken - (122:6,23 [4] TransitionsInTagHelperAttributes.cshtml) - CSharp - 1337 HtmlContent - (143:6,44 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (143:6,44 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (143:6,44 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n TagHelper - (145:7,0 [34] TransitionsInTagHelperAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes CSharpExpressionAttributeValue - (155:7,10 [9] TransitionsInTagHelperAttributes.cshtml) - - RazorIRToken - (157:7,12 [6] TransitionsInTagHelperAttributes.cshtml) - CSharp - @class + IntermediateToken - (157:7,12 [6] TransitionsInTagHelperAttributes.cshtml) - CSharp - @class SetTagHelperProperty - (171:7,26 [2] TransitionsInTagHelperAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (171:7,26 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - 42 + IntermediateToken - (171:7,26 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - 42 HtmlContent - (179:7,34 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (179:7,34 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (179:7,34 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n TagHelper - (181:8,0 [36] TransitionsInTagHelperAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 SetTagHelperProperty - (202:8,21 [9] TransitionsInTagHelperAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (202:8,21 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - 42 - RazorIRToken - (204:8,23 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - + - RazorIRToken - (206:8,25 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - + IntermediateToken - (202:8,21 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - 42 + IntermediateToken - (204:8,23 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - + + IntermediateToken - (206:8,25 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - CSharpExpression - (207:8,26 [4] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (207:8,26 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - @ - RazorIRToken - (208:8,27 [3] TransitionsInTagHelperAttributes.cshtml) - CSharp - int + IntermediateToken - (207:8,26 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - @ + IntermediateToken - (208:8,27 [3] TransitionsInTagHelperAttributes.cshtml) - CSharp - int HtmlContent - (217:8,36 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (217:8,36 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (217:8,36 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n TagHelper - (219:9,0 [31] TransitionsInTagHelperAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 SetTagHelperProperty - (240:9,21 [4] TransitionsInTagHelperAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (241:9,22 [3] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (241:9,22 [3] TransitionsInTagHelperAttributes.cshtml) - CSharp - int + IntermediateToken - (241:9,22 [3] TransitionsInTagHelperAttributes.cshtml) - CSharp - int HtmlContent - (250:9,31 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (250:9,31 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (250:9,31 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n TagHelper - (252:10,0 [34] TransitionsInTagHelperAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 SetTagHelperProperty - (273:10,21 [7] TransitionsInTagHelperAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (274:10,22 [6] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (274:10,22 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ( - RazorIRToken - (275:10,23 [4] TransitionsInTagHelperAttributes.cshtml) - CSharp - @int - RazorIRToken - (279:10,27 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ) + IntermediateToken - (274:10,22 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ( + IntermediateToken - (275:10,23 [4] TransitionsInTagHelperAttributes.cshtml) - CSharp - @int + IntermediateToken - (279:10,27 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ) HtmlContent - (286:10,34 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (286:10,34 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (286:10,34 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n TagHelper - (288:11,0 [54] TransitionsInTagHelperAttributes.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - CreateTagHelper - - TestNamespace.PTagHelper AddTagHelperHtmlAttribute - - class - HtmlAttributeValueStyle.DoubleQuotes HtmlAttributeValue - (298:11,10 [7] TransitionsInTagHelperAttributes.cshtml) - - RazorIRToken - (298:11,10 [7] TransitionsInTagHelperAttributes.cshtml) - Html - custom- + IntermediateToken - (298:11,10 [7] TransitionsInTagHelperAttributes.cshtml) - Html - custom- CSharpExpressionAttributeValue - (305:11,17 [9] TransitionsInTagHelperAttributes.cshtml) - - RazorIRToken - (307:11,19 [6] TransitionsInTagHelperAttributes.cshtml) - CSharp - @class + IntermediateToken - (307:11,19 [6] TransitionsInTagHelperAttributes.cshtml) - CSharp - @class SetTagHelperProperty - (321:11,33 [15] TransitionsInTagHelperAttributes.cshtml) - age - Age - HtmlAttributeValueStyle.DoubleQuotes - RazorIRToken - (321:11,33 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - 4 - RazorIRToken - (322:11,34 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - * - RazorIRToken - (324:11,36 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - + IntermediateToken - (321:11,33 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - 4 + IntermediateToken - (322:11,34 [2] TransitionsInTagHelperAttributes.cshtml) - CSharp - * + IntermediateToken - (324:11,36 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - CSharpExpression - (325:11,37 [11] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (325:11,37 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - @ - RazorIRToken - (326:11,38 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ( - RazorIRToken - (327:11,39 [8] TransitionsInTagHelperAttributes.cshtml) - CSharp - @int + 2 - RazorIRToken - (335:11,47 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ) + IntermediateToken - (325:11,37 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - @ + IntermediateToken - (326:11,38 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ( + IntermediateToken - (327:11,39 [8] TransitionsInTagHelperAttributes.cshtml) - CSharp - @int + 2 + IntermediateToken - (335:11,47 [1] TransitionsInTagHelperAttributes.cshtml) - CSharp - ) HtmlContent - (342:11,54 [2] TransitionsInTagHelperAttributes.cshtml) - RazorIRToken - (342:11,54 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n + IntermediateToken - (342:11,54 [2] TransitionsInTagHelperAttributes.cshtml) - Html - \n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.ir.txt index 2767e1b22..c4264dd60 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.ir.txt @@ -3,11 +3,11 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_UnfinishedExpressionInCode_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [2] UnfinishedExpressionInCode.cshtml) - RazorIRToken - (2:0,2 [2] UnfinishedExpressionInCode.cshtml) - CSharp - \n + IntermediateToken - (2:0,2 [2] UnfinishedExpressionInCode.cshtml) - CSharp - \n CSharpExpression - (5:1,1 [9] UnfinishedExpressionInCode.cshtml) - RazorIRToken - (5:1,1 [9] UnfinishedExpressionInCode.cshtml) - CSharp - DateTime. + IntermediateToken - (5:1,1 [9] UnfinishedExpressionInCode.cshtml) - CSharp - DateTime. CSharpCode - (14:1,10 [2] UnfinishedExpressionInCode.cshtml) - RazorIRToken - (14:1,10 [2] UnfinishedExpressionInCode.cshtml) - CSharp - \n + IntermediateToken - (14:1,10 [2] UnfinishedExpressionInCode.cshtml) - CSharp - \n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_Runtime.ir.txt index 7a2155050..fda8af22c 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_Runtime.ir.txt @@ -3,8 +3,8 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_UnfinishedExpressionInCode_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync CSharpCode - (2:0,2 [2] UnfinishedExpressionInCode.cshtml) - RazorIRToken - (2:0,2 [2] UnfinishedExpressionInCode.cshtml) - CSharp - \n + IntermediateToken - (2:0,2 [2] UnfinishedExpressionInCode.cshtml) - CSharp - \n CSharpExpression - (5:1,1 [9] UnfinishedExpressionInCode.cshtml) - RazorIRToken - (5:1,1 [9] UnfinishedExpressionInCode.cshtml) - CSharp - DateTime. + IntermediateToken - (5:1,1 [9] UnfinishedExpressionInCode.cshtml) - CSharp - DateTime. CSharpCode - (14:1,10 [2] UnfinishedExpressionInCode.cshtml) - RazorIRToken - (14:1,10 [2] UnfinishedExpressionInCode.cshtml) - CSharp - \n + IntermediateToken - (14:1,10 [2] UnfinishedExpressionInCode.cshtml) - CSharp - \n diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.ir.txt index 3af4f6d24..c06c42d07 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.ir.txt @@ -9,30 +9,30 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Usings_DesignTime - - DesignTimeDirective - CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (16:0,16 [2] Usings.cshtml) - RazorIRToken - (16:0,16 [2] Usings.cshtml) - Html - \n + IntermediateToken - (16:0,16 [2] Usings.cshtml) - Html - \n HtmlContent - (51:1,33 [2] Usings.cshtml) - RazorIRToken - (51:1,33 [2] Usings.cshtml) - Html - \n + IntermediateToken - (51:1,33 [2] Usings.cshtml) - Html - \n HtmlContent - (66:2,13 [4] Usings.cshtml) - RazorIRToken - (66:2,13 [4] Usings.cshtml) - Html - \n\n + IntermediateToken - (66:2,13 [4] Usings.cshtml) - Html - \n\n HtmlContent - (90:4,20 [2] Usings.cshtml) - RazorIRToken - (90:4,20 [2] Usings.cshtml) - Html - \n + IntermediateToken - (90:4,20 [2] Usings.cshtml) - Html - \n HtmlContent - (120:5,28 [2] Usings.cshtml) - RazorIRToken - (120:5,28 [2] Usings.cshtml) - Html - \n + IntermediateToken - (120:5,28 [2] Usings.cshtml) - Html - \n HtmlContent - (164:6,42 [32] Usings.cshtml) - RazorIRToken - (164:6,42 [4] Usings.cshtml) - Html - \n\n - RazorIRToken - (168:8,0 [3] Usings.cshtml) - Html -

- RazorIRToken - (171:8,3 [25] Usings.cshtml) - Html - Path's full type name is + IntermediateToken - (164:6,42 [4] Usings.cshtml) - Html - \n\n + IntermediateToken - (168:8,0 [3] Usings.cshtml) - Html -

+ IntermediateToken - (171:8,3 [25] Usings.cshtml) - Html - Path's full type name is CSharpExpression - (197:8,29 [21] Usings.cshtml) - RazorIRToken - (197:8,29 [21] Usings.cshtml) - CSharp - typeof(Path).FullName + IntermediateToken - (197:8,29 [21] Usings.cshtml) - CSharp - typeof(Path).FullName HtmlContent - (218:8,50 [40] Usings.cshtml) - RazorIRToken - (218:8,50 [4] Usings.cshtml) - Html -

- RazorIRToken - (222:8,54 [2] Usings.cshtml) - Html - \n - RazorIRToken - (224:9,0 [3] Usings.cshtml) - Html -

- RazorIRToken - (227:9,3 [31] Usings.cshtml) - Html - Foo's actual full type name is + IntermediateToken - (218:8,50 [4] Usings.cshtml) - Html -

+ IntermediateToken - (222:8,54 [2] Usings.cshtml) - Html - \n + IntermediateToken - (224:9,0 [3] Usings.cshtml) - Html -

+ IntermediateToken - (227:9,3 [31] Usings.cshtml) - Html - Foo's actual full type name is CSharpExpression - (259:9,35 [20] Usings.cshtml) - RazorIRToken - (259:9,35 [20] Usings.cshtml) - CSharp - typeof(Foo).FullName + IntermediateToken - (259:9,35 [20] Usings.cshtml) - CSharp - typeof(Foo).FullName HtmlContent - (279:9,55 [4] Usings.cshtml) - RazorIRToken - (279:9,55 [4] Usings.cshtml) - Html -

+ IntermediateToken - (279:9,55 [4] Usings.cshtml) - Html -

diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_Runtime.ir.txt index 20a360e97..ca4ca2463 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_Runtime.ir.txt @@ -9,19 +9,19 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Usings_Runtime - - MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (68:3,0 [2] Usings.cshtml) - RazorIRToken - (68:3,0 [2] Usings.cshtml) - Html - \n + IntermediateToken - (68:3,0 [2] Usings.cshtml) - Html - \n HtmlContent - (166:7,0 [30] Usings.cshtml) - RazorIRToken - (166:7,0 [2] Usings.cshtml) - Html - \n - RazorIRToken - (168:8,0 [3] Usings.cshtml) - Html -

- RazorIRToken - (171:8,3 [25] Usings.cshtml) - Html - Path's full type name is + IntermediateToken - (166:7,0 [2] Usings.cshtml) - Html - \n + IntermediateToken - (168:8,0 [3] Usings.cshtml) - Html -

+ IntermediateToken - (171:8,3 [25] Usings.cshtml) - Html - Path's full type name is CSharpExpression - (197:8,29 [21] Usings.cshtml) - RazorIRToken - (197:8,29 [21] Usings.cshtml) - CSharp - typeof(Path).FullName + IntermediateToken - (197:8,29 [21] Usings.cshtml) - CSharp - typeof(Path).FullName HtmlContent - (218:8,50 [40] Usings.cshtml) - RazorIRToken - (218:8,50 [4] Usings.cshtml) - Html -

- RazorIRToken - (222:8,54 [2] Usings.cshtml) - Html - \n - RazorIRToken - (224:9,0 [3] Usings.cshtml) - Html -

- RazorIRToken - (227:9,3 [31] Usings.cshtml) - Html - Foo's actual full type name is + IntermediateToken - (218:8,50 [4] Usings.cshtml) - Html -

+ IntermediateToken - (222:8,54 [2] Usings.cshtml) - Html - \n + IntermediateToken - (224:9,0 [3] Usings.cshtml) - Html -

+ IntermediateToken - (227:9,3 [31] Usings.cshtml) - Html - Foo's actual full type name is CSharpExpression - (259:9,35 [20] Usings.cshtml) - RazorIRToken - (259:9,35 [20] Usings.cshtml) - CSharp - typeof(Foo).FullName + IntermediateToken - (259:9,35 [20] Usings.cshtml) - CSharp - typeof(Foo).FullName HtmlContent - (279:9,55 [4] Usings.cshtml) - RazorIRToken - (279:9,55 [4] Usings.cshtml) - Html -

+ IntermediateToken - (279:9,55 [4] Usings.cshtml) - Html -

diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ExtensibleDirectiveTest/NamespaceToken.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ExtensibleDirectiveTest/NamespaceToken.ir.txt index 3d1f2231e..9ea693a60 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ExtensibleDirectiveTest/NamespaceToken.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ExtensibleDirectiveTest/NamespaceToken.ir.txt @@ -4,5 +4,5 @@ Document - DesignTimeDirective - DirectiveToken - (8:0,8 [20] NamespaceToken.cshtml) - System.Globalization CSharpCode - - RazorIRToken - - CSharp - private static System.Object __o = null; + IntermediateToken - - CSharp - private static System.Object __o = null; MethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/HtmlAttributeIntegrationTest/HtmlWithConditionalAttribute.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/HtmlAttributeIntegrationTest/HtmlWithConditionalAttribute.ir.txt index 79f7fd742..add32b63f 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/HtmlAttributeIntegrationTest/HtmlWithConditionalAttribute.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/HtmlAttributeIntegrationTest/HtmlWithConditionalAttribute.ir.txt @@ -3,18 +3,18 @@ Document - ClassDeclaration - - public - Template - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [25] HtmlWithConditionalAttribute.cshtml) - RazorIRToken - (0:0,0 [6] HtmlWithConditionalAttribute.cshtml) - Html - - RazorIRToken - (6:0,6 [2] HtmlWithConditionalAttribute.cshtml) - Html - \n - RazorIRToken - (8:1,0 [6] HtmlWithConditionalAttribute.cshtml) - Html - - RazorIRToken - (14:1,6 [6] HtmlWithConditionalAttribute.cshtml) - Html - \n - RazorIRToken - (20:2,4 [5] HtmlWithConditionalAttribute.cshtml) - Html - + IntermediateToken - (6:0,6 [2] HtmlWithConditionalAttribute.cshtml) - Html - \n + IntermediateToken - (8:1,0 [6] HtmlWithConditionalAttribute.cshtml) - Html - + IntermediateToken - (14:1,6 [6] HtmlWithConditionalAttribute.cshtml) - Html - \n + IntermediateToken - (20:2,4 [5] HtmlWithConditionalAttribute.cshtml) - Html - - RazorIRToken - (41:2,25 [2] HtmlWithConditionalAttribute.cshtml) - Html - \n - RazorIRToken - (43:3,0 [7] HtmlWithConditionalAttribute.cshtml) - Html - - RazorIRToken - (50:3,7 [2] HtmlWithConditionalAttribute.cshtml) - Html - \n - RazorIRToken - (52:4,0 [7] HtmlWithConditionalAttribute.cshtml) - Html - - RazorIRToken - (59:4,7 [1] HtmlWithConditionalAttribute.cshtml) - Html - " + IntermediateToken - (38:2,22 [3] HtmlWithConditionalAttribute.cshtml) - Html - /> + IntermediateToken - (41:2,25 [2] HtmlWithConditionalAttribute.cshtml) - Html - \n + IntermediateToken - (43:3,0 [7] HtmlWithConditionalAttribute.cshtml) - Html - + IntermediateToken - (50:3,7 [2] HtmlWithConditionalAttribute.cshtml) - Html - \n + IntermediateToken - (52:4,0 [7] HtmlWithConditionalAttribute.cshtml) - Html - + IntermediateToken - (59:4,7 [1] HtmlWithConditionalAttribute.cshtml) - Html - " diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/HtmlAttributeIntegrationTest/HtmlWithDataDashAttribute.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/HtmlAttributeIntegrationTest/HtmlWithDataDashAttribute.ir.txt index 049f16815..62b6cf9fb 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/HtmlAttributeIntegrationTest/HtmlWithDataDashAttribute.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/HtmlAttributeIntegrationTest/HtmlWithDataDashAttribute.ir.txt @@ -3,19 +3,19 @@ Document - ClassDeclaration - - public - Template - - MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [36] HtmlWithDataDashAttribute.cshtml) - RazorIRToken - (0:0,0 [6] HtmlWithDataDashAttribute.cshtml) - Html - - RazorIRToken - (6:0,6 [2] HtmlWithDataDashAttribute.cshtml) - Html - \n - RazorIRToken - (8:1,0 [6] HtmlWithDataDashAttribute.cshtml) - Html - - RazorIRToken - (14:1,6 [6] HtmlWithDataDashAttribute.cshtml) - Html - \n - RazorIRToken - (20:2,4 [5] HtmlWithDataDashAttribute.cshtml) - Html - - RazorIRToken - (46:2,30 [2] HtmlWithDataDashAttribute.cshtml) - Html - \n - RazorIRToken - (48:3,0 [7] HtmlWithDataDashAttribute.cshtml) - Html - - RazorIRToken - (55:3,7 [2] HtmlWithDataDashAttribute.cshtml) - Html - \n - RazorIRToken - (57:4,0 [7] HtmlWithDataDashAttribute.cshtml) - Html - - RazorIRToken - (64:4,7 [1] HtmlWithDataDashAttribute.cshtml) - Html - " + IntermediateToken - (42:2,26 [1] HtmlWithDataDashAttribute.cshtml) - Html - " + IntermediateToken - (43:2,27 [3] HtmlWithDataDashAttribute.cshtml) - Html - /> + IntermediateToken - (46:2,30 [2] HtmlWithDataDashAttribute.cshtml) - Html - \n + IntermediateToken - (48:3,0 [7] HtmlWithDataDashAttribute.cshtml) - Html - + IntermediateToken - (55:3,7 [2] HtmlWithDataDashAttribute.cshtml) - Html - \n + IntermediateToken - (57:4,0 [7] HtmlWithDataDashAttribute.cshtml) - Html - + IntermediateToken - (64:4,7 [1] HtmlWithDataDashAttribute.cshtml) - Html - " diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/NestedTagHelpers.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/NestedTagHelpers.ir.txt index a2e2332ec..1a719eb3a 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/NestedTagHelpers.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/NestedTagHelpers.ir.txt @@ -9,21 +9,21 @@ Document - TagHelper - (31:1,0 [20] NestedTagHelpers.cshtml) - p - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (43:1,12 [4] NestedTagHelpers.cshtml) - RazorIRToken - (43:1,12 [4] NestedTagHelpers.cshtml) - Html - Hola + IntermediateToken - (43:1,12 [4] NestedTagHelpers.cshtml) - Html - Hola CreateTagHelper - - PTagHelper AddTagHelperHtmlAttribute - - someattr - HtmlAttributeValueStyle.Minimized HtmlContent - (51:1,20 [2] NestedTagHelpers.cshtml) - RazorIRToken - (51:1,20 [2] NestedTagHelpers.cshtml) - Html - \n + IntermediateToken - (51:1,20 [2] NestedTagHelpers.cshtml) - Html - \n TagHelper - (53:2,0 [68] NestedTagHelpers.cshtml) - form - TagMode.StartTagAndEndTag TagHelperBody - HtmlContent - (73:2,20 [6] NestedTagHelpers.cshtml) - RazorIRToken - (73:2,20 [6] NestedTagHelpers.cshtml) - Html - \n + IntermediateToken - (73:2,20 [6] NestedTagHelpers.cshtml) - Html - \n TagHelper - (79:3,4 [33] NestedTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper SetPreallocatedTagHelperProperty - - __tagHelperAttribute_0 - value - FooProp AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 HtmlContent - (112:3,37 [2] NestedTagHelpers.cshtml) - RazorIRToken - (112:3,37 [2] NestedTagHelpers.cshtml) - Html - \n + IntermediateToken - (112:3,37 [2] NestedTagHelpers.cshtml) - Html - \n CreateTagHelper - - FormTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_2 diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/SimpleTagHelpers.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/SimpleTagHelpers.ir.txt index d19bf6af5..1b85f4062 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/SimpleTagHelpers.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/SimpleTagHelpers.ir.txt @@ -6,17 +6,17 @@ Document - DeclareTagHelperFields - - InputTagHelper MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [25] SimpleTagHelpers.cshtml) - RazorIRToken - (31:1,0 [3] SimpleTagHelpers.cshtml) - Html -

- RazorIRToken - (34:1,3 [4] SimpleTagHelpers.cshtml) - Html - Hola - RazorIRToken - (38:1,7 [4] SimpleTagHelpers.cshtml) - Html -

- RazorIRToken - (42:1,11 [2] SimpleTagHelpers.cshtml) - Html - \n - RazorIRToken - (44:2,0 [6] SimpleTagHelpers.cshtml) - Html -
- RazorIRToken - (50:2,6 [6] SimpleTagHelpers.cshtml) - Html - \n + IntermediateToken - (31:1,0 [3] SimpleTagHelpers.cshtml) - Html -

+ IntermediateToken - (34:1,3 [4] SimpleTagHelpers.cshtml) - Html - Hola + IntermediateToken - (38:1,7 [4] SimpleTagHelpers.cshtml) - Html -

+ IntermediateToken - (42:1,11 [2] SimpleTagHelpers.cshtml) - Html - \n + IntermediateToken - (44:2,0 [6] SimpleTagHelpers.cshtml) - Html - + IntermediateToken - (50:2,6 [6] SimpleTagHelpers.cshtml) - Html - \n TagHelper - (56:3,4 [35] SimpleTagHelpers.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_1 HtmlContent - (91:3,39 [9] SimpleTagHelpers.cshtml) - RazorIRToken - (91:3,39 [2] SimpleTagHelpers.cshtml) - Html - \n - RazorIRToken - (93:4,0 [7] SimpleTagHelpers.cshtml) - Html -
+ IntermediateToken - (91:3,39 [2] SimpleTagHelpers.cshtml) - Html - \n + IntermediateToken - (93:4,0 [7] SimpleTagHelpers.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/TagHelpersWithBoundAttributes.ir.txt b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/TagHelpersWithBoundAttributes.ir.txt index e8a338212..810e8fd79 100644 --- a/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/TagHelpersWithBoundAttributes.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/TagHelpersWithBoundAttributes.ir.txt @@ -5,15 +5,15 @@ Document - DeclareTagHelperFields - - InputTagHelper MethodDeclaration - - public - async, override - global::System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:1,0 [12] TagHelpersWithBoundAttributes.cshtml) - RazorIRToken - (31:1,0 [6] TagHelpersWithBoundAttributes.cshtml) - Html -
- RazorIRToken - (37:1,6 [6] TagHelpersWithBoundAttributes.cshtml) - Html - \n + IntermediateToken - (31:1,0 [6] TagHelpersWithBoundAttributes.cshtml) - Html - + IntermediateToken - (37:1,6 [6] TagHelpersWithBoundAttributes.cshtml) - Html - \n TagHelper - (43:2,4 [34] TagHelpersWithBoundAttributes.cshtml) - input - TagMode.SelfClosing TagHelperBody - CreateTagHelper - - InputTagHelper SetTagHelperProperty - (56:2,17 [6] TagHelpersWithBoundAttributes.cshtml) - bound - FooProp - HtmlAttributeValueStyle.DoubleQuotes CSharpExpression - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - RazorIRToken - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - CSharp - Hello + IntermediateToken - (57:2,18 [5] TagHelpersWithBoundAttributes.cshtml) - CSharp - Hello AddPreallocatedTagHelperHtmlAttribute - - __tagHelperAttribute_0 HtmlContent - (77:2,38 [9] TagHelpersWithBoundAttributes.cshtml) - RazorIRToken - (77:2,38 [2] TagHelpersWithBoundAttributes.cshtml) - Html - \n - RazorIRToken - (79:3,0 [7] TagHelpersWithBoundAttributes.cshtml) - Html -
+ IntermediateToken - (77:2,38 [2] TagHelpersWithBoundAttributes.cshtml) - Html - \n + IntermediateToken - (79:3,0 [7] TagHelpersWithBoundAttributes.cshtml) - Html - diff --git a/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntegrationTestBase.cs b/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntegrationTestBase.cs index 80751b6ef..06edfea2c 100644 --- a/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntegrationTestBase.cs +++ b/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntegrationTestBase.cs @@ -112,11 +112,11 @@ protected virtual void OnCreatedCodeDocument(ref RazorCodeDocument codeDocument) { } - protected void AssertIRMatchesBaseline(DocumentIRNode document) + protected void AssertDocumentNodeMatchesBaseline(DocumentIntermediateNode document) { if (FileName == null) { - var message = $"{nameof(AssertIRMatchesBaseline)} should only be called from an integration test ({nameof(FileName)} is null)."; + var message = $"{nameof(AssertDocumentNodeMatchesBaseline)} should only be called from an integration test ({nameof(FileName)} is null)."; throw new InvalidOperationException(message); } @@ -125,7 +125,7 @@ protected void AssertIRMatchesBaseline(DocumentIRNode document) if (GenerateBaselines) { var baselineFullPath = Path.Combine(TestProjectRoot, baselineFileName); - File.WriteAllText(baselineFullPath, RazorIRNodeSerializer.Serialize(document)); + File.WriteAllText(baselineFullPath, IntermediateNodeSerializer.Serialize(document)); return; } @@ -136,7 +136,7 @@ protected void AssertIRMatchesBaseline(DocumentIRNode document) } var baseline = irFile.ReadAllText().Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries); - RazorIRNodeVerifier.Verify(document, baseline); + IntermediateNodeVerifier.Verify(document, baseline); } protected void AssertCSharpDocumentMatchesBaseline(RazorCSharpDocument document) @@ -227,17 +227,17 @@ protected void AssertLineMappingsMatchBaseline(RazorCodeDocument document) Assert.Equal(baseline, actual); } - protected class ApiSetsIRTestAdapter : RazorIRPassBase, IRazorIROptimizationPass + protected class ApiSetsIRTestAdapter : IntermediateNodePassBase, IRazorOptimizationPass { - protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIRNode irDocument) + protected override void ExecuteCore(RazorCodeDocument codeDocument, DocumentIntermediateNode documentNode) { var walker = new ApiSetsIRWalker(); - walker.Visit(irDocument); + walker.Visit(documentNode); } - private class ApiSetsIRWalker : RazorIRNodeWalker + private class ApiSetsIRWalker : IntermediateNodeWalker { - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { node.Name = FileName.Replace('/', '_'); node.AccessModifier = "public"; @@ -245,14 +245,14 @@ public override void VisitClassDeclaration(ClassDeclarationIRNode node) VisitDefault(node); } - public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) + public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) { node.Content = "Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles"; VisitDefault(node); } - public override void VisitMethodDeclaration(MethodDeclarationIRNode node) + public override void VisitMethodDeclaration(MethodDeclarationIntermediateNode node) { node.AccessModifier = "public"; node.Modifiers = new[] { "async" }; diff --git a/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/RazorIRNodeSerializer.cs b/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntermediateNodeSerializer.cs similarity index 73% rename from test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/RazorIRNodeSerializer.cs rename to test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntermediateNodeSerializer.cs index 40e15f3f1..891a4849e 100644 --- a/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/RazorIRNodeSerializer.cs +++ b/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntermediateNodeSerializer.cs @@ -6,9 +6,9 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests { - public static class RazorIRNodeSerializer + public static class IntermediateNodeSerializer { - public static string Serialize(RazorIRNode node) + public static string Serialize(IntermediateNode node) { using (var writer = new StringWriter()) { @@ -19,20 +19,20 @@ public static string Serialize(RazorIRNode node) } } - private class Walker : RazorIRNodeWalker + private class Walker : IntermediateNodeWalker { - private readonly RazorIRNodeWriter _visitor; + private readonly IntermediateNodeWriter _visitor; private readonly TextWriter _writer; public Walker(TextWriter writer) { - _visitor = new RazorIRNodeWriter(writer); + _visitor = new IntermediateNodeWriter(writer); _writer = writer; } public TextWriter Writer { get; } - public override void VisitDefault(RazorIRNode node) + public override void VisitDefault(IntermediateNode node) { _visitor.Visit(node); _writer.WriteLine(); diff --git a/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/RazorIRNodeVerifier.cs b/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntermediateNodeVerifier.cs similarity index 78% rename from test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/RazorIRNodeVerifier.cs rename to test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntermediateNodeVerifier.cs index fee0773c5..a75da6a2f 100644 --- a/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/RazorIRNodeVerifier.cs +++ b/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntermediateNodeVerifier.cs @@ -12,19 +12,19 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests { - public static class RazorIRNodeVerifier + public static class IntermediateNodeVerifier { - public static void Verify(RazorIRNode node, string[] baseline) + public static void Verify(IntermediateNode node, string[] baseline) { var walker = new Walker(baseline); walker.Visit(node); walker.AssertReachedEndOfBaseline(); } - private class Walker : RazorIRNodeWalker + private class Walker : IntermediateNodeWalker { private readonly string[] _baseline; - private readonly RazorIRNodeWriter _visitor; + private readonly IntermediateNodeWriter _visitor; private readonly StringWriter _writer; private int _index; @@ -33,14 +33,14 @@ public Walker(string[] baseline) { _writer = new StringWriter(); - _visitor = new RazorIRNodeWriter(_writer); + _visitor = new IntermediateNodeWriter(_writer); _baseline = baseline; } public TextWriter Writer { get; } - public override void VisitDefault(RazorIRNode node) + public override void VisitDefault(IntermediateNode node) { var expected = _index < _baseline.Length ? _baseline[_index++] : null; @@ -62,7 +62,7 @@ public void AssertReachedEndOfBaseline() Assert.True(_baseline.Length == _index, "Not all lines of the baseline were visited!"); } - private void AssertNodeEquals(RazorIRNode node, IEnumerable ancestors, string expected, string actual) + private void AssertNodeEquals(IntermediateNode node, IEnumerable ancestors, string expected, string actual) { if (string.Equals(expected, actual)) { @@ -73,7 +73,7 @@ private void AssertNodeEquals(RazorIRNode node, IEnumerable ancesto if (expected == null) { var message = "The node is missing from baseline."; - throw new IRBaselineException(node, Ancestors.ToArray(), expected, actual, message); + throw new IntermediateNodeBaselineException(node, Ancestors.ToArray(), expected, actual, message); } int charsVerified = 0; @@ -87,7 +87,7 @@ private void AssertNodeEquals(RazorIRNode node, IEnumerable ancesto throw new InvalidOperationException("We can't figure out HOW these two things are different. This is a bug."); } - private void AssertNestingEqual(RazorIRNode node, IEnumerable ancestors, string expected, string actual, ref int charsVerified) + private void AssertNestingEqual(IntermediateNode node, IEnumerable ancestors, string expected, string actual, ref int charsVerified) { var i = 0; for (; i < expected.Length; i++) @@ -117,13 +117,13 @@ private void AssertNestingEqual(RazorIRNode node, IEnumerable ances if (failed) { var message = "The node is at the wrong level of nesting. This usually means a child is missing."; - throw new IRBaselineException(node, ancestors.ToArray(), expected, actual, message); + throw new IntermediateNodeBaselineException(node, ancestors.ToArray(), expected, actual, message); } charsVerified = j; } - private void AssertNameEqual(RazorIRNode node, IEnumerable ancestors, string expected, string actual, ref int charsVerified) + private void AssertNameEqual(IntermediateNode node, IEnumerable ancestors, string expected, string actual, ref int charsVerified) { var expectedName = GetName(expected, charsVerified); var actualName = GetName(actual, charsVerified); @@ -131,14 +131,14 @@ private void AssertNameEqual(RazorIRNode node, IEnumerable ancestor if (!string.Equals(expectedName, actualName)) { var message = $"Node names are not equal."; - throw new IRBaselineException(node, ancestors.ToArray(), expected, actual, message); + throw new IntermediateNodeBaselineException(node, ancestors.ToArray(), expected, actual, message); } charsVerified += expectedName.Length; } // Either both strings need to have a delimiter next or neither should. - private void AssertDelimiter(RazorIRNode node, string expected, string actual, bool required, ref int charsVerified) + private void AssertDelimiter(IntermediateNode node, string expected, string actual, bool required, ref int charsVerified) { if (charsVerified == expected.Length && required) { @@ -172,7 +172,7 @@ private void AssertDelimiter(RazorIRNode node, string expected, string actual, b charsVerified += 3; } - private void AssertLocationEqual(RazorIRNode node, IEnumerable ancestors, string expected, string actual, ref int charsVerified) + private void AssertLocationEqual(IntermediateNode node, IEnumerable ancestors, string expected, string actual, ref int charsVerified) { var expectedLocation = GetLocation(expected, charsVerified); var actualLocation = GetLocation(actual, charsVerified); @@ -180,13 +180,13 @@ private void AssertLocationEqual(RazorIRNode node, IEnumerable ance if (!string.Equals(expectedLocation, actualLocation)) { var message = $"Locations are not equal."; - throw new IRBaselineException(node, ancestors.ToArray(), expected, actual, message); + throw new IntermediateNodeBaselineException(node, ancestors.ToArray(), expected, actual, message); } charsVerified += expectedLocation.Length; } - private void AssertContentEqual(RazorIRNode node, IEnumerable ancestors, string expected, string actual, ref int charsVerified) + private void AssertContentEqual(IntermediateNode node, IEnumerable ancestors, string expected, string actual, ref int charsVerified) { var expectedContent = GetContent(expected, charsVerified); var actualContent = GetContent(actual, charsVerified); @@ -194,7 +194,7 @@ private void AssertContentEqual(RazorIRNode node, IEnumerable ances if (!string.Equals(expectedContent, actualContent)) { var message = $"Contents are not equal."; - throw new IRBaselineException(node, ancestors.ToArray(), expected, actual, message); + throw new IntermediateNodeBaselineException(node, ancestors.ToArray(), expected, actual, message); } charsVerified += expectedContent.Length; @@ -222,9 +222,9 @@ private string GetContent(string text, int start) return start == text.Length ? string.Empty : text.Substring(start); } - private class IRBaselineException : XunitException + private class IntermediateNodeBaselineException : XunitException { - public IRBaselineException(RazorIRNode node, RazorIRNode[] ancestors, string expected, string actual, string userMessage) + public IntermediateNodeBaselineException(IntermediateNode node, IntermediateNode[] ancestors, string expected, string actual, string userMessage) : base(Format(node, ancestors, expected, actual, userMessage)) { Node = node; @@ -232,13 +232,13 @@ public IRBaselineException(RazorIRNode node, RazorIRNode[] ancestors, string exp Actual = actual; } - public RazorIRNode Node { get; } + public IntermediateNode Node { get; } public string Actual { get; } public string Expected { get; } - private static string Format(RazorIRNode node, RazorIRNode[] ancestors, string expected, string actual, string userMessage) + private static string Format(IntermediateNode node, IntermediateNode[] ancestors, string expected, string actual, string userMessage) { var builder = new StringBuilder(); builder.AppendLine(userMessage); diff --git a/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/RazorIRNodeWriter.cs b/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntermediateNodeWriter.cs similarity index 81% rename from test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/RazorIRNodeWriter.cs rename to test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntermediateNodeWriter.cs index 74cd56372..792f71f7d 100644 --- a/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/RazorIRNodeWriter.cs +++ b/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/IntegrationTests/IntermediateNodeWriter.cs @@ -13,116 +13,116 @@ namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests { // Serializes single IR nodes (shallow). - public class RazorIRNodeWriter : RazorIRNodeVisitor, IExtensionIRNodeVisitor + public class IntermediateNodeWriter : IntermediateNodeVisitor, IExtensionIntermediateNodeVisitor { private readonly TextWriter _writer; - public RazorIRNodeWriter(TextWriter writer) + public IntermediateNodeWriter(TextWriter writer) { _writer = writer; } public int Depth { get; set; } - public override void VisitDefault(RazorIRNode node) + public override void VisitDefault(IntermediateNode node) { WriteBasicNode(node); } - public override void VisitClassDeclaration(ClassDeclarationIRNode node) + public override void VisitClassDeclaration(ClassDeclarationIntermediateNode node) { WriteContentNode(node, node.AccessModifier, node.Name, node.BaseType, string.Join(", ", node.Interfaces ?? new List())); } - public override void VisitCSharpExpressionAttributeValue(CSharpExpressionAttributeValueIRNode node) + public override void VisitCSharpExpressionAttributeValue(CSharpExpressionAttributeValueIntermediateNode node) { WriteContentNode(node, node.Prefix); } - public override void VisitCSharpCodeAttributeValue(CSharpCodeAttributeValueIRNode node) + public override void VisitCSharpCodeAttributeValue(CSharpCodeAttributeValueIntermediateNode node) { WriteContentNode(node, node.Prefix); } - public override void VisitToken(RazorIRToken node) + public override void VisitToken(IntermediateToken node) { WriteContentNode(node, node.Kind.ToString(), node.Content); } - public override void VisitDirective(DirectiveIRNode node) + public override void VisitDirective(DirectiveIntermediateNode node) { WriteContentNode(node, node.Name); } - public override void VisitDirectiveToken(DirectiveTokenIRNode node) + public override void VisitDirectiveToken(DirectiveTokenIntermediateNode node) { WriteContentNode(node, node.Content); } - public override void VisitHtmlAttribute(HtmlAttributeIRNode node) + public override void VisitHtmlAttribute(HtmlAttributeIntermediateNode node) { WriteContentNode(node, node.Prefix, node.Suffix); } - public override void VisitHtmlAttributeValue(HtmlAttributeValueIRNode node) + public override void VisitHtmlAttributeValue(HtmlAttributeValueIntermediateNode node) { WriteContentNode(node, node.Prefix); } - public override void VisitNamespaceDeclaration(NamespaceDeclarationIRNode node) + public override void VisitNamespaceDeclaration(NamespaceDeclarationIntermediateNode node) { WriteContentNode(node, node.Content); } - public override void VisitMethodDeclaration(MethodDeclarationIRNode node) + public override void VisitMethodDeclaration(MethodDeclarationIntermediateNode node) { WriteContentNode(node, node.AccessModifier, string.Join(", ", node.Modifiers ?? new List()), node.ReturnType, node.Name); } - public override void VisitUsingStatement(UsingStatementIRNode node) + public override void VisitUsingStatement(UsingStatementIntermediateNode node) { WriteContentNode(node, node.Content); } - public override void VisitDeclareTagHelperFields(DeclareTagHelperFieldsIRNode node) + public override void VisitDeclareTagHelperFields(DeclareTagHelperFieldsIntermediateNode node) { WriteContentNode(node, node.UsedTagHelperTypeNames.ToArray()); } - public override void VisitTagHelper(TagHelperIRNode node) + public override void VisitTagHelper(TagHelperIntermediateNode node) { WriteContentNode(node, node.TagName, string.Format("{0}.{1}", nameof(TagMode), node.TagMode)); } - public override void VisitCreateTagHelper(CreateTagHelperIRNode node) + public override void VisitCreateTagHelper(CreateTagHelperIntermediateNode node) { WriteContentNode(node, node.TagHelperTypeName); } - public override void VisitSetTagHelperProperty(SetTagHelperPropertyIRNode node) + public override void VisitSetTagHelperProperty(SetTagHelperPropertyIntermediateNode node) { WriteContentNode(node, node.AttributeName, node.PropertyName, string.Format("HtmlAttributeValueStyle.{0}", node.ValueStyle)); } - public override void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIRNode node) + public override void VisitAddTagHelperHtmlAttribute(AddTagHelperHtmlAttributeIntermediateNode node) { WriteContentNode(node, node.Name, string.Format("{0}.{1}", nameof(HtmlAttributeValueStyle), node.ValueStyle)); } - public override void VisitExtension(ExtensionIRNode node) + public override void VisitExtension(ExtensionIntermediateNode node) { switch (node) { - case DeclarePreallocatedTagHelperHtmlAttributeIRNode n: + case DeclarePreallocatedTagHelperHtmlAttributeIntermediateNode n: WriteContentNode(n, n.VariableName, n.Name, n.Value, string.Format("{0}.{1}", nameof(HtmlAttributeValueStyle), n.ValueStyle)); break; - case AddPreallocatedTagHelperHtmlAttributeIRNode n: + case AddPreallocatedTagHelperHtmlAttributeIntermediateNode n: WriteContentNode(n, n.VariableName); break; - case DeclarePreallocatedTagHelperAttributeIRNode n: + case DeclarePreallocatedTagHelperAttributeIntermediateNode n: WriteContentNode(n, n.VariableName, n.Name, n.Value, string.Format("HtmlAttributeValueStyle.{0}", n.ValueStyle)); break; - case SetPreallocatedTagHelperPropertyIRNode n: + case SetPreallocatedTagHelperPropertyIntermediateNode n: WriteContentNode(n, n.VariableName, n.AttributeName, n.PropertyName); break; default: @@ -131,12 +131,12 @@ public override void VisitExtension(ExtensionIRNode node) } } - public void VisitExtension(SectionIRNode node) + public void VisitExtension(SectionIntermediateNode node) { WriteContentNode(node, node.Name); } - protected void WriteBasicNode(RazorIRNode node) + protected void WriteBasicNode(IntermediateNode node) { WriteIndent(); WriteName(node); @@ -144,7 +144,7 @@ protected void WriteBasicNode(RazorIRNode node) WriteSourceRange(node); } - protected void WriteContentNode(RazorIRNode node, params string[] content) + protected void WriteContentNode(IntermediateNode node, params string[] content) { WriteIndent(); WriteName(node); @@ -179,12 +179,12 @@ protected void WriteNewLine() _writer.WriteLine(); } - protected void WriteName(RazorIRNode node) + protected void WriteName(IntermediateNode node) { var typeName = node.GetType().Name; - if (typeName.EndsWith("IRNode")) + if (typeName.EndsWith("IntermediateNode")) { - _writer.Write(typeName.Substring(0, typeName.Length - "IRNode".Length)); + _writer.Write(typeName.Substring(0, typeName.Length - "IntermediateNode".Length)); } else { @@ -192,7 +192,7 @@ protected void WriteName(RazorIRNode node) } } - protected void WriteSourceRange(RazorIRNode node) + protected void WriteSourceRange(IntermediateNode node) { if (node.Source != null) { @@ -221,7 +221,7 @@ protected void WriteSourceRange(SourceSpan sourceRange) _writer.Write(")"); } - protected void WriteDiagnostics(RazorIRNode node) + protected void WriteDiagnostics(IntermediateNode node) { if (node.HasDiagnostics) { diff --git a/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/Intermediate/RazorIRAssert.cs b/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/Intermediate/IntermediateNodeAssert.cs similarity index 59% rename from test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/Intermediate/RazorIRAssert.cs rename to test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/Intermediate/IntermediateNodeAssert.cs index cbc9eb217..ee152bab1 100644 --- a/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/Intermediate/RazorIRAssert.cs +++ b/test/Microsoft.AspNetCore.Razor.Test.Common/Langauge/Intermediate/IntermediateNodeAssert.cs @@ -10,39 +10,39 @@ namespace Microsoft.AspNetCore.Razor.Language.Intermediate { - public static class RazorIRAssert + public static class IntermediateNodeAssert { - public static TNode SingleChild(RazorIRNode node) + public static TNode SingleChild(IntermediateNode node) { if (node.Children.Count == 0) { - throw new IRAssertException(node, "The node has no children."); + throw new IntermediateNodeAssertException(node, "The node has no children."); } else if (node.Children.Count > 1) { - throw new IRAssertException(node, node.Children, "The node has multiple children"); + throw new IntermediateNodeAssertException(node, node.Children, "The node has multiple children"); } var child = node.Children[0]; return Assert.IsType(child); } - public static void NoChildren(RazorIRNode node) + public static void NoChildren(IntermediateNode node) { if (node.Children.Count > 0) { - throw new IRAssertException(node, node.Children, "The node has children."); + throw new IntermediateNodeAssertException(node, node.Children, "The node has children."); } } - public static void Children(RazorIRNode node, params Action[] validators) + public static void Children(IntermediateNode node, params Action[] validators) { var i = 0; for (; i < validators.Length; i++) { if (node.Children.Count == i) { - throw new IRAssertException(node, node.Children, $"The node only has {node.Children.Count} children."); + throw new IntermediateNodeAssertException(node, node.Children, $"The node only has {node.Children.Count} children."); } try @@ -51,22 +51,22 @@ public static void Children(RazorIRNode node, params Action[] valid } catch (XunitException e) { - throw new IRAssertException(node, node.Children, $"Failed while validating node {node.Children[i]} at {i}.", e); + throw new IntermediateNodeAssertException(node, node.Children, $"Failed while validating node {node.Children[i]} at {i}.", e); } } if (i < node.Children.Count) { - throw new IRAssertException(node, node.Children, $"The node has extra child {node.Children[i]} at {i}."); + throw new IntermediateNodeAssertException(node, node.Children, $"The node has extra child {node.Children[i]} at {i}."); } } - public static void AnnotationEquals(RazorIRNode node, object value) + public static void AnnotationEquals(IntermediateNode node, object value) { AnnotationEquals(node, value, value); } - public static void AnnotationEquals(RazorIRNode node, object key, object value) + public static void AnnotationEquals(IntermediateNode node, object key, object value) { try { @@ -75,11 +75,11 @@ public static void AnnotationEquals(RazorIRNode node, object key, object value) } catch (XunitException e) { - throw new IRAssertException(node, node.Children, e.Message, e); + throw new IntermediateNodeAssertException(node, node.Children, e.Message, e); } } - public static void HasAnnotation(RazorIRNode node, object key) + public static void HasAnnotation(IntermediateNode node, object key) { try { @@ -88,20 +88,20 @@ public static void HasAnnotation(RazorIRNode node, object key) } catch (XunitException e) { - throw new IRAssertException(node, node.Children, e.Message, e); + throw new IntermediateNodeAssertException(node, node.Children, e.Message, e); } } - public static void Html(string expected, RazorIRNode node) + public static void Html(string expected, IntermediateNode node) { try { - var html = Assert.IsType(node); + var html = Assert.IsType(node); var content = new StringBuilder(); for (var i = 0; i < html.Children.Count; i++) { - var token = Assert.IsType(html.Children[i]); - Assert.Equal(RazorIRToken.TokenKind.Html, token.Kind); + var token = Assert.IsType(html.Children[i]); + Assert.Equal(IntermediateToken.TokenKind.Html, token.Kind); content.Append(token.Content); } @@ -109,20 +109,20 @@ public static void Html(string expected, RazorIRNode node) } catch (XunitException e) { - throw new IRAssertException(node, node.Children, e.Message, e); + throw new IntermediateNodeAssertException(node, node.Children, e.Message, e); } } - public static void CSharpCode(string expected, RazorIRNode node) + public static void CSharpCode(string expected, IntermediateNode node) { try { - var statement = Assert.IsType(node); + var statement = Assert.IsType(node); var content = new StringBuilder(); for (var i = 0; i < statement.Children.Count; i++) { - var token = Assert.IsType(statement.Children[i]); - Assert.Equal(RazorIRToken.TokenKind.CSharp, token.Kind); + var token = Assert.IsType(statement.Children[i]); + Assert.Equal(IntermediateToken.TokenKind.CSharp, token.Kind); content.Append(token.Content); } @@ -130,49 +130,49 @@ public static void CSharpCode(string expected, RazorIRNode node) } catch (XunitException e) { - throw new IRAssertException(node, node.Children, e.Message, e); + throw new IntermediateNodeAssertException(node, node.Children, e.Message, e); } } - public static void Directive(string expectedName, RazorIRNode node, params Action[] childValidators) + public static void Directive(string expectedName, IntermediateNode node, params Action[] childValidators) { try { - var directive = Assert.IsType(node); + var directive = Assert.IsType(node); Assert.Equal(expectedName, directive.Name); } catch (XunitException e) { - throw new IRAssertException(node, node.Children, e.Message, e); + throw new IntermediateNodeAssertException(node, node.Children, e.Message, e); } Children(node, childValidators); } - public static void DirectiveToken(DirectiveTokenKind expectedKind, string expectedContent, RazorIRNode node) + public static void DirectiveToken(DirectiveTokenKind expectedKind, string expectedContent, IntermediateNode node) { try { - var token = Assert.IsType(node); + var token = Assert.IsType(node); Assert.Equal(expectedKind, token.Descriptor.Kind); Assert.Equal(expectedContent, token.Content); } catch (XunitException e) { - throw new IRAssertException(node, node.Children, e.Message, e); + throw new IntermediateNodeAssertException(node, node.Children, e.Message, e); } } - public static void Using(string expected, RazorIRNode node) + public static void Using(string expected, IntermediateNode node) { try { - var @using = Assert.IsType(node); + var @using = Assert.IsType(node); Assert.Equal(expected, @using.Content); } catch (XunitException e) { - throw new IRAssertException(node, node.Children, e.Message, e); + throw new IntermediateNodeAssertException(node, node.Children, e.Message, e); } } @@ -180,10 +180,10 @@ public static void ConditionalAttribute( string prefix, string name, string suffix, - RazorIRNode node, - params Action[] valueValidators) + IntermediateNode node, + params Action[] valueValidators) { - var attribute = Assert.IsType(node); + var attribute = Assert.IsType(node); try { @@ -195,20 +195,20 @@ public static void ConditionalAttribute( } catch (XunitException e) { - throw new IRAssertException(attribute, attribute.Children, e.Message, e); + throw new IntermediateNodeAssertException(attribute, attribute.Children, e.Message, e); } } - public static void CSharpExpressionAttributeValue(string prefix, string expected, RazorIRNode node) + public static void CSharpExpressionAttributeValue(string prefix, string expected, IntermediateNode node) { - var attributeValue = Assert.IsType(node); + var attributeValue = Assert.IsType(node); try { var content = new StringBuilder(); for (var i = 0; i < attributeValue.Children.Count; i++) { - var token = Assert.IsType(attributeValue.Children[i]); + var token = Assert.IsType(attributeValue.Children[i]); Assert.True(token.IsCSharp); content.Append(token.Content); } @@ -218,20 +218,20 @@ public static void CSharpExpressionAttributeValue(string prefix, string expected } catch (XunitException e) { - throw new IRAssertException(attributeValue, attributeValue.Children, e.Message, e); + throw new IntermediateNodeAssertException(attributeValue, attributeValue.Children, e.Message, e); } } - public static void LiteralAttributeValue(string prefix, string expected, RazorIRNode node) + public static void LiteralAttributeValue(string prefix, string expected, IntermediateNode node) { - var attributeValue = Assert.IsType(node); + var attributeValue = Assert.IsType(node); try { var content = new StringBuilder(); for (var i = 0; i < attributeValue.Children.Count; i++) { - var token = Assert.IsType(attributeValue.Children[i]); + var token = Assert.IsType(attributeValue.Children[i]); Assert.True(token.IsHtml); content.Append(token.Content); } @@ -241,21 +241,21 @@ public static void LiteralAttributeValue(string prefix, string expected, RazorIR } catch (XunitException e) { - throw new IRAssertException(attributeValue, e.Message); + throw new IntermediateNodeAssertException(attributeValue, e.Message); } } - public static void CSharpExpression(string expected, RazorIRNode node) + public static void CSharpExpression(string expected, IntermediateNode node) { try { - var cSharp = Assert.IsType(node); + var cSharp = Assert.IsType(node); var content = new StringBuilder(); for (var i = 0; i < cSharp.Children.Count; i++) { - var token = Assert.IsType(cSharp.Children[i]); - Assert.Equal(RazorIRToken.TokenKind.CSharp, token.Kind); + var token = Assert.IsType(cSharp.Children[i]); + Assert.Equal(IntermediateToken.TokenKind.CSharp, token.Kind); content.Append(token.Content); } @@ -263,19 +263,19 @@ public static void CSharpExpression(string expected, RazorIRNode node) } catch (XunitException e) { - throw new IRAssertException(node, node.Children, e.Message, e); + throw new IntermediateNodeAssertException(node, node.Children, e.Message, e); } } - public static void BeginInstrumentation(string expected, RazorIRNode node) + public static void BeginInstrumentation(string expected, IntermediateNode node) { try { - var beginNode = Assert.IsType(node); + var beginNode = Assert.IsType(node); var content = new StringBuilder(); for (var i = 0; i < beginNode.Children.Count; i++) { - var token = Assert.IsType(beginNode.Children[i]); + var token = Assert.IsType(beginNode.Children[i]); Assert.True(token.IsCSharp); content.Append(token.Content); } @@ -284,33 +284,33 @@ public static void BeginInstrumentation(string expected, RazorIRNode node) } catch (XunitException e) { - throw new IRAssertException(node, node.Children, e.Message, e); + throw new IntermediateNodeAssertException(node, node.Children, e.Message, e); } } - public static void EndInstrumentation(RazorIRNode node) + public static void EndInstrumentation(IntermediateNode node) { try { - var endNode = Assert.IsType(node); + var endNode = Assert.IsType(node); var content = new StringBuilder(); for (var i = 0; i < endNode.Children.Count; i++) { - var token = Assert.IsType(endNode.Children[i]); - Assert.Equal(RazorIRToken.TokenKind.CSharp, token.Kind); + var token = Assert.IsType(endNode.Children[i]); + Assert.Equal(IntermediateToken.TokenKind.CSharp, token.Kind); content.Append(token.Content); } Assert.Equal("EndContext();", content.ToString()); } catch (XunitException e) { - throw new IRAssertException(node, node.Children, e.Message, e); + throw new IntermediateNodeAssertException(node, node.Children, e.Message, e); } } - internal static void TagHelperFieldDeclaration(RazorIRNode node, params string[] tagHelperTypes) + internal static void TagHelperFieldDeclaration(IntermediateNode node, params string[] tagHelperTypes) { - var declareTagHelperFields = Assert.IsType(node); + var declareTagHelperFields = Assert.IsType(node); try { @@ -318,17 +318,17 @@ internal static void TagHelperFieldDeclaration(RazorIRNode node, params string[] } catch (XunitException e) { - throw new IRAssertException(declareTagHelperFields, e.Message); + throw new IntermediateNodeAssertException(declareTagHelperFields, e.Message); } } internal static void DeclarePreallocatedTagHelperAttribute( - RazorIRNode node, + IntermediateNode node, string attributeName, string value, HtmlAttributeValueStyle valueStyle) { - var declarePreallocatedTagHelperAttribute = Assert.IsType(node); + var declarePreallocatedTagHelperAttribute = Assert.IsType(node); try { @@ -338,13 +338,13 @@ internal static void DeclarePreallocatedTagHelperAttribute( } catch (XunitException e) { - throw new IRAssertException(declarePreallocatedTagHelperAttribute, e.Message); + throw new IntermediateNodeAssertException(declarePreallocatedTagHelperAttribute, e.Message); } } - internal static void TagHelper(string tagName, TagMode tagMode, IEnumerable tagHelpers, RazorIRNode node, params Action[] childValidators) + internal static void TagHelper(string tagName, TagMode tagMode, IEnumerable tagHelpers, IntermediateNode node, params Action[] childValidators) { - var tagHelperNode = Assert.IsType(node); + var tagHelperNode = Assert.IsType(node); try { @@ -355,7 +355,7 @@ internal static void TagHelper(string tagName, TagMode tagMode, IEnumerable[] valueValidators) + IntermediateNode node, + params Action[] valueValidators) { - var tagHelperHtmlAttribute = Assert.IsType(node); + var tagHelperHtmlAttribute = Assert.IsType(node); try { @@ -377,13 +377,13 @@ internal static void TagHelperHtmlAttribute( } catch (XunitException e) { - throw new IRAssertException(tagHelperHtmlAttribute, tagHelperHtmlAttribute.Children, e.Message, e); + throw new IntermediateNodeAssertException(tagHelperHtmlAttribute, tagHelperHtmlAttribute.Children, e.Message, e); } } - internal static void SetPreallocatedTagHelperProperty(RazorIRNode node, string attributeName, string propertyName) + internal static void SetPreallocatedTagHelperProperty(IntermediateNode node, string attributeName, string propertyName) { - var setPreallocatedTagHelperProperty = Assert.IsType(node); + var setPreallocatedTagHelperProperty = Assert.IsType(node); try { @@ -392,7 +392,7 @@ internal static void SetPreallocatedTagHelperProperty(RazorIRNode node, string a } catch (XunitException e) { - throw new IRAssertException(setPreallocatedTagHelperProperty, e.Message); + throw new IntermediateNodeAssertException(setPreallocatedTagHelperProperty, e.Message); } } @@ -400,10 +400,10 @@ internal static void SetTagHelperProperty( string name, string propertyName, HtmlAttributeValueStyle valueStyle, - RazorIRNode node, - params Action[] valueValidators) + IntermediateNode node, + params Action[] valueValidators) { - var tagHelperBoundAttribute = Assert.IsType(node); + var tagHelperBoundAttribute = Assert.IsType(node); try { @@ -414,49 +414,49 @@ internal static void SetTagHelperProperty( } catch (XunitException e) { - throw new IRAssertException(tagHelperBoundAttribute, tagHelperBoundAttribute.Children, e.Message, e); + throw new IntermediateNodeAssertException(tagHelperBoundAttribute, tagHelperBoundAttribute.Children, e.Message, e); } } - private class IRAssertException : XunitException + private class IntermediateNodeAssertException : XunitException { - public IRAssertException(RazorIRNode node, string userMessage) + public IntermediateNodeAssertException(IntermediateNode node, string userMessage) : base(Format(node, null, null, userMessage)) { Node = node; } - public IRAssertException(RazorIRNode node, IEnumerable nodes, string userMessage) + public IntermediateNodeAssertException(IntermediateNode node, IEnumerable nodes, string userMessage) : base(Format(node, null, nodes, userMessage)) { Node = node; Nodes = nodes; } - public IRAssertException( - RazorIRNode node, - IEnumerable nodes, + public IntermediateNodeAssertException( + IntermediateNode node, + IEnumerable nodes, string userMessage, Exception innerException) : base(Format(node, null, nodes, userMessage), innerException) { } - public IRAssertException( - RazorIRNode node, - RazorIRNode[] ancestors, - IEnumerable nodes, + public IntermediateNodeAssertException( + IntermediateNode node, + IntermediateNode[] ancestors, + IEnumerable nodes, string userMessage, Exception innerException) : base(Format(node, ancestors, nodes, userMessage), innerException) { } - public RazorIRNode Node { get; } + public IntermediateNode Node { get; } - public IEnumerable Nodes { get; } + public IEnumerable Nodes { get; } - private static string Format(RazorIRNode node, RazorIRNode[] ancestors, IEnumerable nodes, string userMessage) + private static string Format(IntermediateNode node, IntermediateNode[] ancestors, IEnumerable nodes, string userMessage) { var builder = new StringBuilder(); builder.AppendLine(userMessage);