From 79fcb6e49fdb17e7b380bc2561d94ee411d5b90e Mon Sep 17 00:00:00 2001 From: Chris Sienkiewicz Date: Mon, 10 Aug 2026 23:05:02 -0700 Subject: [PATCH 1/7] Revert "Revert the sonic decl/impl split merge from main (#84831)" This reverts commit 5864742d19c0ca35d7a318a12701d87413a08bd3. --- .github/instructions/Razor.instructions.md | 6 + .github/memory/testing/razor.md | 15 +- .github/skills/merge-into-branch/SKILL.md | 41 +- .../PrepareCallHierarchyHandler.cs | 10 +- .../Handler/CodeLens/CodeLensHandler.cs | 7 +- .../Highlights/DocumentHighlightHandler.cs | 19 +- .../CodeGenerationIntegrationTest.cs | 12 +- .../test/ModelExpressionPassTest.cs | 2 +- .../test/ViewComponentTagHelperPassTest.cs | 2 +- .../CodeGenerationIntegrationTest.cs | 52 +- .../InstrumentationPassIntegrationTest.cs | 4 +- .../test/ModelExpressionPassTest.cs | 2 +- .../test/ViewComponentTagHelperPassTest.cs | 2 +- .../CodeGenerationIntegrationTest.cs | 84 +- .../test/ModelDirectiveTest.cs | 2 +- .../test/ModelExpressionPassTest.cs | 2 +- .../test/ViewComponentTagHelperPassTest.cs | 2 +- ...entDuplicateAttributeDiagnosticPassTest.cs | 2 +- .../ComponentMarkupBlockPassTest.cs | 2 +- .../ComponentMarkupEncodingPassTest.cs | 2 +- .../Components/ComponentWhitespacePassTest.cs | 2 +- .../DefaultRazorCSharpLoweringPhaseTest.cs | 26 +- ...mediateNodeLoweringPhaseIntegrationTest.cs | 7 +- ...efaultRazorProjectEngineIntegrationTest.cs | 8 +- .../DefaultRazorTagHelperBinderPhaseTest.cs | 11 +- .../DefaultTagHelperOptimizationPassTest.cs | 2 +- .../Extensions/SectionDirectivePassTest.cs | 10 +- ...0LanguageFeaturesIntegrationTest_Legacy.cs | 24 +- ...1LanguageFeaturesIntegrationTest_Legacy.cs | 30 +- ...2LanguageFeaturesIntegrationTest_Legacy.cs | 16 +- ...3LanguageFeaturesIntegrationTest_Legacy.cs | 14 +- ...4LanguageFeaturesIntegrationTest_Legacy.cs | 18 +- ...8LanguageFeaturesIntegrationTest_Legacy.cs | 24 +- ...9LanguageFeaturesIntegrationTest_Legacy.cs | 28 +- ...wLanguageFeaturesIntegrationTest_Legacy.cs | 10 +- .../CodeGenerationIntegrationTest.cs | 8 +- .../ComponentCodeGenerationTestBase.cs | 82 +- ...ComponentDiagnosticRazorIntegrationTest.cs | 17 + ...nentRenderModeDirectiveIntegrationTests.cs | 24 +- .../MarkupSplitterComponentTest.cs | 450 ++++++ .../TagHelpersIntegrationTest.cs | 2 +- .../Intermediate/IntermediateNodeCloneTest.cs | 321 ++++ .../test/MarkupSplitterTest.cs | 685 ++++++++ .../test/RazorProjectEngineTest.cs | 8 +- .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 17 - .../TestComponent.decl.codegen.cs | 36 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../TestComponent.ir.txt | 2 - .../RecordStructs/TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../RecordStructs/TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../RecordStructs/TestComponent.ir.txt | 2 - .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../SealedRecordToString/TestComponent.ir.txt | 2 - .../TestComponent.codegen.cs | 18 - .../TestComponent.decl.codegen.cs | 37 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt} | 2 +- .../TestComponent.ir.txt | 2 - .../TestComponent.codegen.cs | 16 - .../TestComponent.decl.codegen.cs | 35 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../AutoDefaultStructs/TestComponent.ir.txt | 2 - .../CheckedOperators/TestComponent.codegen.cs | 23 - .../TestComponent.decl.codegen.cs | 42 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../CheckedOperators/TestComponent.ir.txt | 2 - .../TestComponent.codegen.cs | 18 - .../TestComponent.decl.codegen.cs | 37 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt} | 2 +- .../DimForStaticMembers/TestComponent.ir.txt | 2 - .../TestComponent.codegen.cs | 16 - .../TestComponent.decl.codegen.cs | 35 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../GenericAttributes/TestComponent.ir.txt | 2 - .../TestComponent.decl.codegen.cs | 19 + .../ListPatterns/TestComponent.decl.ir.txt | 8 + .../NameofParameter/TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../NameofParameter/TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../NameofParameter/TestComponent.ir.txt | 2 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../NumericIntPtr/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../RefFields/TestComponent.codegen.cs | 19 - .../RefFields/TestComponent.decl.codegen.cs | 38 + .../RefFields/TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../RefFields/TestComponent.ir.txt | 2 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../RequiredMembers/TestComponent.codegen.cs | 15 - .../TestComponent.decl.codegen.cs | 34 + .../RequiredMembers/TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../RequiredMembers/TestComponent.ir.txt | 2 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../TestComponent.ir.txt | 2 - .../InlineArrays/TestComponent.codegen.cs | 13 - .../TestComponent.decl.codegen.cs | 32 + .../InlineArrays/TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../InlineArrays/TestComponent.ir.txt | 2 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../TestComponent.ir.txt | 2 - .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../PrimaryConstructors/TestComponent.ir.txt | 2 - .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../TestComponent.ir.txt | 2 - .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.decl.codegen.cs | 19 + .../EscapeCharacter/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../LockObject/TestComponent.decl.codegen.cs | 19 + .../LockObject/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../TestComponent.ir.txt | 2 - .../TestComponent.codegen.cs | 15 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../TestComponent.ir.txt | 2 - .../Extensions/TestComponent.decl.codegen.cs | 19 + .../Extensions/TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 13 - .../TestComponent.decl.codegen.cs | 32 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 17 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 17 - .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.codegen.cs | 25 - .../TestComponent.decl.codegen.cs | 44 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 41 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 41 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 17 - .../TestComponent.decl.codegen.cs | 36 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 25 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 25 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../AsyncStreams/TestComponent.codegen.cs | 13 - .../TestComponent.decl.codegen.cs | 32 + .../AsyncStreams/TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../AsyncStreams/TestComponent.ir.txt | 2 - .../TestComponent.codegen.cs | 16 - .../TestComponent.decl.codegen.cs | 35 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../TestComponent.ir.txt | 2 - .../TestComponent.decl.codegen.cs | 19 + .../EnhancedUsing/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../Ranges/TestComponent.decl.codegen.cs | 19 + .../Ranges/TestComponent.decl.ir.txt | 8 + .../ReadonlyMembers/TestComponent.codegen.cs | 20 - .../TestComponent.decl.codegen.cs | 39 + .../ReadonlyMembers/TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../ReadonlyMembers/TestComponent.ir.txt | 2 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../TestComponent.ir.txt | 2 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../CovariantReturns/TestComponent.codegen.cs | 18 - .../TestComponent.decl.codegen.cs | 37 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../CovariantReturns/TestComponent.ir.txt | 2 - .../ExtendingPartial/TestComponent.codegen.cs | 18 - .../TestComponent.decl.codegen.cs | 37 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../ExtendingPartial/TestComponent.ir.txt | 2 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../FunctionPointers/TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../FunctionPointers/TestComponent.ir.txt | 2 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../ModuleInitializers/TestComponent.ir.txt | 2 - .../NativeInts/TestComponent.decl.codegen.cs | 19 + .../NativeInts/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../Records/TestComponent.codegen.cs | 9 - .../Records/TestComponent.decl.codegen.cs | 28 + .../Records/TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../Records/TestComponent.ir.txt | 2 - .../SkipLocalsInit/TestComponent.codegen.cs | 14 - .../TestComponent.decl.codegen.cs | 33 + .../SkipLocalsInit/TestComponent.decl.ir.txt | 10 + ...gs.txt => TestComponent.decl.mappings.txt} | 2 +- .../SkipLocalsInit/TestComponent.ir.txt | 2 - .../TestComponent.decl.codegen.cs | 19 + .../StaticLambdas/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TargetTypedNew/TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 +- .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 21 +- .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 23 +- .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 21 +- .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 10 + .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 42 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 25 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 10 + .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 42 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 25 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../AtAtHandled/TestComponent.decl.codegen.cs | 19 + .../AtAtHandled/TestComponent.decl.ir.txt | 8 + .../AtTransitions/TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../AtTransitions/TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 +- .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 +- .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 +- .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 5 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 14 - .../TestComponent.decl.codegen.cs | 33 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 19 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 19 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 14 - .../TestComponent.decl.codegen.cs | 33 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 19 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 19 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 11 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 11 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 11 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 11 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 17 +- .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 17 +- .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 +- .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 17 +- .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 6 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 17 - .../TestComponent.decl.codegen.cs | 36 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 25 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 25 - .../TestComponent.builder.txt | 12 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 20 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 24 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 24 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 26 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 10 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 10 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 11 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 11 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 +- .../TestComponent.builder.txt | 1 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 17 +- .../TestComponent.builder.txt | 13 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 24 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 24 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 24 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 5 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 7 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 7 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 7 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.codegen.cs | 20 - .../TestComponent.decl.codegen.cs | 39 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 10 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 14 +- .../TestComponent.builder.txt | 5 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 15 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../Index.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 5 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 5 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 5 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../UseTestComponent.builder.txt | 2 + .../UseTestComponent.codegen.cs | 12 - .../UseTestComponent.decl.codegen.cs | 37 + .../UseTestComponent.decl.ir.txt | 11 + .../UseTestComponent.decl.mappings.txt | 20 + .../UseTestComponent.ir.txt | 2 - .../UseTestComponent.mappings.txt | 23 +- .../TestComponent.builder.txt | 5 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../UseTestComponent.builder.txt | 2 + .../UseTestComponent.codegen.cs | 12 - .../UseTestComponent.decl.codegen.cs | 37 + .../UseTestComponent.decl.ir.txt | 11 + .../UseTestComponent.decl.mappings.txt | 20 + .../UseTestComponent.ir.txt | 2 - .../UseTestComponent.mappings.txt | 23 +- .../TestComponent.builder.txt | 5 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 5 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 7 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../UseTestComponent.builder.txt | 2 + .../UseTestComponent.codegen.cs | 12 - .../UseTestComponent.decl.codegen.cs | 37 + .../UseTestComponent.decl.ir.txt | 11 + .../UseTestComponent.decl.mappings.txt | 20 + .../UseTestComponent.ir.txt | 2 - .../UseTestComponent.mappings.txt | 23 +- .../TestComponent.builder.txt | 5 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../UseTestComponent.builder.txt | 2 + .../UseTestComponent.codegen.cs | 11 - .../UseTestComponent.decl.codegen.cs | 36 + .../UseTestComponent.decl.ir.txt | 11 + .../UseTestComponent.decl.mappings.txt | 18 + .../UseTestComponent.ir.txt | 2 - .../UseTestComponent.mappings.txt | 19 +- .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 18 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 13 - .../TestComponent.decl.codegen.cs | 32 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 17 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 17 - .../TestComponent.codegen.cs | 13 - .../TestComponent.decl.codegen.cs | 32 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 17 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 17 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 10 + .../TestComponent.builder.txt | 5 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 5 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 38 + .../TestComponent.decl.ir.txt | 10 + .../Counter.builder.txt | 1 + .../Counter.decl.codegen.cs | 38 + .../Counter.decl.ir.txt | 10 + .../Counter.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 28 + .../TestComponent.codegen.cs | 6 +- .../TestComponent.decl.codegen.cs | 56 + .../TestComponent.decl.ir.txt | 16 + .../TestComponent.decl.mappings.txt | 33 + .../TestComponent.ir.txt | 2 +- .../TestComponent.mappings.txt | 18 +- .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.builder.txt | 3 + .../TestComponent.builder.txt | 3 + .../TestComponent.builder.txt | 4 + .../TestComponent.builder.txt | 1 + .../TestComponent.builder.txt | 3 + .../TestComponent.builder.txt | 4 + .../TestComponent.builder.txt | 2 + .../TestComponent.builder.txt | 2 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 5 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 1 + .../TestComponent.codegen.cs | 8 - .../TestComponent.decl.codegen.cs | 39 + .../TestComponent.decl.ir.txt | 12 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 2 +- .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../Component_WithKey/TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 5 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 35 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.builder.txt | 5 + .../TestComponent.decl.codegen.cs | 32 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 10 + .../TestComponent.decl.codegen.cs | 26 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 10 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../Component_WithRef/TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 +- .../TestComponent.builder.txt | 6 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../Component_WithSplat/TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt} | 2 +- .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 +- .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 20 - .../TestComponent.decl.codegen.cs | 45 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 14 +- .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 10 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../Element_WithKey/TestComponent.builder.txt | 4 + .../Element_WithKey/TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../Element_WithKey/TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt} | 2 +- .../Element_WithKey/TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 1 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../Element_WithRef/TestComponent.builder.txt | 5 + .../Element_WithRef/TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../Element_WithRef/TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../Element_WithRef/TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 4 + .../TestComponent.codegen.cs | 13 - .../TestComponent.decl.codegen.cs | 32 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 5 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../Element_WithSplat/TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 1 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.builder.txt | 5 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 5 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 18 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 +- .../TestComponent.builder.txt | 10 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 10 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 +- .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 +- .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 37 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 20 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 37 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 20 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 13 - .../TestComponent.decl.codegen.cs | 38 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 22 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 17 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 13 - .../TestComponent.decl.codegen.cs | 32 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 17 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 17 - .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 37 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 20 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 13 - .../TestComponent.decl.codegen.cs | 32 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 17 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 17 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 13 - .../TestComponent.decl.codegen.cs | 32 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 17 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 17 - .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 35 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 16 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 35 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 16 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 35 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 16 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 35 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 16 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 35 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 16 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 35 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 16 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 6 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 36 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 18 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 9 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 9 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 5 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 35 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 16 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 7 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 5 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../FormName_MixedValue/TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 7 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 35 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 16 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 7 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../FormName_Nested/TestComponent.builder.txt | 19 + .../FormName_Nested/TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../FormName_Nested/TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../FormName_Nested/TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 9 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 9 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 17 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 9 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 9 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 9 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 9 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 9 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 10 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 10 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 +- .../TestComponent.builder.txt | 10 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 39 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 11 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 +- .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 10 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 +- .../TestComponent.builder.txt | 1 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 34 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.mappings.txt | 21 +- .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.mappings.txt | 17 +- .../TestComponent.builder.txt | 2 + .../GenericTypeCheck/TestComponent.codegen.cs | 17 - .../TestComponent.decl.codegen.cs | 36 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 25 + .../GenericTypeCheck/TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 25 - .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../InjectDirective/TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 12 + .../InjectDirective/TestComponent.decl.ir.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../LayoutDirective/TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../LayoutDirective/TestComponent.decl.ir.txt | 12 + ...gs.txt => TestComponent.decl.mappings.txt} | 0 .../LayoutDirective/TestComponent.ir.txt | 4 - .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 24 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 13 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 24 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 9 + ...gs.txt => TestComponent.decl.mappings.txt} | 0 .../TestComponent.ir.txt | 1 - .../TestComponent.builder.txt | 11 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 9 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 5 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 9 + ...gs.txt => TestComponent.decl.mappings.txt} | 0 .../TestComponent.ir.txt | 1 - .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 9 + ...gs.txt => TestComponent.decl.mappings.txt} | 0 .../TestComponent.ir.txt | 1 - .../TestComponent.builder.txt | 5 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 5 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.builder.txt | 7 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 6 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 4 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 14 - .../TestComponent.decl.codegen.cs | 33 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 19 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 19 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 14 - .../TestComponent.decl.codegen.cs | 33 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 19 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 19 - .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../Regression_597/TestComponent.builder.txt | 3 + .../Regression_597/TestComponent.codegen.cs | 9 - .../TestComponent.decl.codegen.cs | 28 + .../Regression_597/TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../Regression_597/TestComponent.ir.txt | 2 - .../Regression_597/TestComponent.mappings.txt | 9 - .../Regression_609/TestComponent.builder.txt | 5 + .../Regression_609/TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../Regression_609/TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../Regression_609/TestComponent.ir.txt | 2 - .../Regression_609/TestComponent.mappings.txt | 11 - .../Regression_772/TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../Regression_772/TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../Regression_772/TestComponent.ir.txt | 1 - .../Regression_772/TestComponent.mappings.txt | 11 +- .../Regression_773/TestComponent.builder.txt | 3 + .../Regression_773/TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../Regression_773/TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../Regression_773/TestComponent.ir.txt | 1 - .../Regression_773/TestComponent.mappings.txt | 11 +- .../Regression_784/TestComponent.builder.txt | 3 + .../Regression_784/TestComponent.codegen.cs | 13 - .../TestComponent.decl.codegen.cs | 38 + .../Regression_784/TestComponent.decl.ir.txt | 11 + .../TestComponent.decl.mappings.txt | 22 + .../Regression_784/TestComponent.ir.txt | 2 - .../Regression_784/TestComponent.mappings.txt | 17 - .../TestComponent.builder.txt | 3 + .../TestComponent.codegen.cs | 11 - .../TestComponent.decl.codegen.cs | 30 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 13 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 13 - .../TestComponent.builder.txt | 1 + .../TestComponent.codegen.cs | 12 - .../TestComponent.decl.codegen.cs | 31 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 15 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 - .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 11 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 11 - .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 +- .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 +- .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 11 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 15 +- .../TestComponent.decl.codegen.cs | 26 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.codegen.cs | 14 - .../TestComponent.decl.codegen.cs | 33 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 19 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 19 - .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 12 + .../TestComponent.decl.ir.txt | 3 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 24 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 24 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 4 +- .../TestComponent.decl.codegen.cs | 33 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 14 + .../TestComponent.ir.txt | 2 +- .../TestComponent.mappings.txt | 16 +- .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 2 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 1 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 9 + ...gs.txt => TestComponent.decl.mappings.txt} | 0 .../TestComponent.ir.txt | 1 - .../TestComponent.decl.codegen.cs | 25 + .../UsingDirective/TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../VoidTagName/TestComponent.decl.codegen.cs | 24 + .../VoidTagName/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 9 + .../TestComponent.decl.codegen.cs | 24 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.decl.codegen.cs | 24 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 24 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 3 + .../TestComponent.decl.codegen.cs | 25 + .../TestComponent.decl.ir.txt | 9 + .../TestComponent.decl.mappings.txt | 5 + .../TestComponent.builder.txt | 1 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.builder.txt | 5 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../TestComponent.builder.txt | 2 + .../TestComponent.codegen.cs | 10 - .../TestComponent.decl.codegen.cs | 29 + .../TestComponent.decl.ir.txt | 10 + .../TestComponent.decl.mappings.txt | 9 + .../TestComponent.ir.txt | 2 - .../TestComponent.mappings.txt | 9 - .../AfterTag/TestComponent.decl.codegen.cs | 19 + .../AfterTag/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../DefineAndUndef/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../DisabledText_01/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../IfDefAndPragma/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../StartOfLine_01/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../StartOfLine_02/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../StartOfLine_03/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../StartOfLine_04/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../StartOfLine_05/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../StartOfLine_06/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../StartOfLine_07/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../StartOfLine_08/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../StartOfLine_09/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../StartOfLine_10/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../StartOfLine_11/TestComponent.decl.ir.txt | 8 + .../TestComponent.decl.codegen.cs | 19 + .../StartOfLine_12/TestComponent.decl.ir.txt | 8 + .../CodeGeneration/CodeRenderingContext.cs | 10 +- .../ComponentInjectIntermediateNode.cs | 10 + .../ComponentRenderModeDirectivePass.cs | 10 +- .../Components/ComponentWhitespacePass.cs | 7 +- .../Components/RouteAttributeExtensionNode.cs | 10 + .../DefaultRazorCSharpLoweringPhase.cs | 355 +---- .../DefaultRazorDeclCSharpLoweringPhase.cs | 58 + ...faultRazorIntermediateNodeLoweringPhase.cs | 84 +- .../Language/DefaultRazorMarkupSplitPhase.cs | 328 ++++ ...aultRazorTagHelperContextDiscoveryPhase.cs | 39 - ...edItemMetadataAttributeIntermediateNode.cs | 13 + .../Extensions/SectionIntermediateNode.cs | 11 + .../Extensions/TemplateIntermediateNode.cs | 10 + ...SharpCodeAttributeValueIntermediateNode.cs | 11 + .../CSharpCodeIntermediateNode.cs | 10 + ...xpressionAttributeValueIntermediateNode.cs | 11 + .../CSharpExpressionIntermediateNode.cs | 10 + .../Intermediate/CSharpIntermediateToken.cs | 6 + .../ClassDeclarationIntermediateNode.cs | 18 + .../Intermediate/DirectiveIntermediateNode.cs | 12 + .../DirectiveTokenIntermediateNode.cs | 8 + .../Intermediate/DocumentIntermediateNode.cs | 38 + .../FieldDeclarationIntermediateNode.cs | 15 + .../HtmlAttributeIntermediateNode.cs | 16 + .../HtmlAttributeValueIntermediateNode.cs | 11 + .../HtmlContentIntermediateNode.cs | 11 + .../Intermediate/HtmlIntermediateToken.cs | 6 + .../Language/Intermediate/IntermediateNode.cs | 41 + .../MalformedDirectiveIntermediateNode.cs | 12 + .../MarkupElementIntermediateNode.cs | 11 + .../MethodDeclarationIntermediateNode.cs | 15 + .../NamespaceDeclarationIntermediateNode.cs | 13 + .../PropertyDeclarationIntermediateNode.cs | 14 + .../UnresolvedAttributeIntermediateNode.cs | 39 + ...nresolvedAttributeValueIntermediateNode.cs | 11 + .../UnresolvedElementIntermediateNode.cs | 26 + ...xpressionAttributeValueIntermediateNode.cs | 12 + .../UsingDirectiveIntermediateNode.cs | 13 + .../src/Language/MarkupSplitter.Analysis.cs | 125 ++ .../src/Language/MarkupSplitter.Classify.cs | 306 ++++ .../src/Language/MarkupSplitter.Slicing.cs | 186 +++ .../src/Language/MarkupSplitter.cs | 205 +++ .../src/Language/RazorCSharpDocument.cs | 23 +- .../src/Language/RazorCSharpDocumentWriter.cs | 412 +++++ .../src/Language/RazorCodeDocument.cs | 63 +- .../Language/RazorCodeDocumentExtensions.cs | 9 + .../src/Language/RazorProjectEngine.cs | 8 +- .../src/Language/SplitDecision.cs | 157 ++ .../src/Mvc/InjectIntermediateNode.cs | 15 + .../RazorSourceGenerator.Helpers.cs | 50 + .../SourceGenerators/RazorSourceGenerator.cs | 238 ++- .../SourceGeneratorProjectEngine.cs | 44 +- .../CodeGenerationBenchmark.cs | 4 +- .../RazorBenchmarks.cs | 13 + .../RazorTests.cs | 22 + .../RazorSourceGeneratorComponentTests.cs | 336 +++- .../RazorSourceGeneratorTagHelperTests.cs | 12 +- .../RazorSourceGeneratorTests.cs | 1408 +++++++++++++---- .../RazorSourceGeneratorTestsBase.cs | 88 +- .../Component2_razor.decl.g.cs | 19 + .../Component3_razor.decl.g.cs | 19 + .../Shared/Component1_razor.decl.g.cs | 20 + .../Folder1/Component1_razor.decl.g.cs | 26 + .../Folder2/Component2_razor.decl.g.cs | 20 + .../Inject/Shared/Component1_razor.decl.g.cs | 12 + .../Shared/Component1_razor.decl.g.cs | 33 + .../LineMapping/Shared/Component1_razor.g.cs | 13 - .../Shared/Component1_razor.decl.g.cs | 20 + .../7/Shared/Component1_razor.decl.g.cs | 20 + .../8/Shared/Component1_razor.decl.g.cs | 20 + .../Formatting/DocumentFormattingBenchmark.cs | 18 +- .../CompletionListSerializationBenchmark.cs | 2 +- .../CodeActions/CohostCodeActionsEndpoint.cs | 31 +- .../CohostCodeActionsResolveEndpoint.cs | 30 +- .../CohostDocumentCompletionEndpoint.cs | 2 +- ...CohostDocumentCompletionResolveEndpoint.cs | 26 +- ...hostDocumentPullDiagnosticsEndpointBase.cs | 49 +- .../CohostDocumentPullDiagnosticsHelpers.cs | 6 +- .../CohostDocumentFormattingEndpoint.cs | 2 +- .../CohostOnTypeFormattingEndpoint.cs | 14 +- .../CohostRangeFormattingEndpoint.cs | 2 +- ...CohostGeneratedDocumentContentsEndpoint.cs | 8 +- .../IncompatibleProjectService.cs | 2 +- .../CohostInlayHintResolveEndpoint.cs | 2 +- ...deAnalysis.Razor.CohostingShared.projitems | 1 - .../CohostGoToDefinitionEndpoint.cs | 20 +- .../CohostGoToImplementationEndpoint.cs | 12 +- .../CohostOnAutoInsertEndpoint.cs | 42 +- ...stOnAutoInsertTriggerCharacterProviders.cs | 16 - .../AbstractFilePathService.cs | 48 - .../AutoInsert/AutoInsertService.cs | 79 - .../AutoInsert/IAutoInsertService.cs | 20 - .../IOnAutoInsertTriggerCharacterProvider.cs | 9 - .../RazorCodeActionResolutionParams.cs | 3 +- .../CodeLens/RazorCodeLensResolveData.cs | 7 +- .../Delegation/DelegatedCompletionHelper.cs | 180 --- .../LspRazorCompletionFactsService.cs | 12 - .../DocumentMapping/DocumentPositionInfo.cs | 3 +- .../IDocumentMappingServiceExtensions.cs | 105 -- .../DocumentMapping/RangeComparer.cs | 26 - .../RazorEditService_WorkspaceEdit.cs | 158 -- .../Extensions/DocumentUriExtensions.cs | 54 + .../Extensions/LspExtensions_Location.cs | 7 +- .../Extensions/ProjectExtensions.cs | 86 +- .../Extensions/RazorCodeDocumentExtensions.cs | 78 +- .../Extensions/SolutionExtensions.cs | 17 +- .../Extensions/SourceTextExtensions.cs | 29 + .../CSharpFormattingOptionsHelper.cs | 33 + .../Formatting/RazorFormattingOptions.cs | 2 +- .../AbstractDefinitionService.cs | 194 --- .../IFilePathService.cs | 17 - .../ITagHelperSearchEngine.cs | 15 - ...osoft.CodeAnalysis.Razor.Workspaces.csproj | 4 - .../ProjectSystem/DocumentContext.cs | 98 -- .../ProjectSystem/IDocumentSnapshot.cs | 38 - .../ProjectSystem/IProjectSnapshot.cs | 32 - .../ProjectSystem/ISolutionQueryOperations.cs | 25 - .../DelegatedCompletionResolutionContext.cs | 3 +- .../DevTools/GeneratedDocumentKind.cs | 3 +- .../InlayHints/InlayHintDataWrapper.cs | 2 +- .../Protocol/LanguageServerConstants.cs | 5 - .../Remote/CodeActionRequestInfo.cs | 3 +- .../Remote/IRemoteCodeActionsService.cs | 6 +- .../Remote/IRemoteCompletionService.cs | 2 + .../Remote/IRemoteDevToolsService.cs | 2 +- .../Remote/IRemoteDiagnosticsService.cs | 6 +- .../Remote/IRemoteInlayHintService.cs | 2 +- .../Remote/IRemoteInlineCompletionService.cs | 4 +- .../Resources/SR.resx | 26 +- .../Resources/xlf/SR.cs.xlf | 76 +- .../Resources/xlf/SR.de.xlf | 76 +- .../Resources/xlf/SR.es.xlf | 76 +- .../Resources/xlf/SR.fr.xlf | 76 +- .../Resources/xlf/SR.it.xlf | 76 +- .../Resources/xlf/SR.ja.xlf | 76 +- .../Resources/xlf/SR.ko.xlf | 76 +- .../Resources/xlf/SR.pl.xlf | 76 +- .../Resources/xlf/SR.pt-BR.xlf | 76 +- .../Resources/xlf/SR.ru.xlf | 76 +- .../Resources/xlf/SR.tr.xlf | 76 +- .../Resources/xlf/SR.zh-Hans.xlf | 76 +- .../Resources/xlf/SR.zh-Hant.xlf | 76 +- .../AbstractComponentAvailabilityService.cs | 56 - .../UriExtensions.cs | 5 +- .../AutoClosingTagOnAutoInsertProvider.cs | 7 +- .../CloseTextTagOnAutoInsertProvider.cs | 7 +- .../AutoInsert/IOnAutoInsertProvider.cs | 6 +- .../AutoInsert/OOPAutoInsertService.cs | 14 - .../AutoInsert/RemoteAutoInsertService.cs | 99 +- .../AutoInsert/RemoteOnAutoInsertProviders.cs | 17 - .../RemoteCallHierarchyService.cs | 103 +- .../CSharp/CSharpCodeActionResolver.cs | 107 +- .../CSharp/ICSharpCodeActionResolver.cs | 3 +- .../TypeAccessibilityCodeActionProvider.cs | 63 +- ...mattedRemappingCSharpCodeActionResolver.cs | 88 -- .../CodeActions/CodeActionResolveService.cs | 40 +- .../CodeActions/CodeActionsService.cs | 78 +- .../CodeActions/Html/HtmlCodeActionHelpers.cs | 8 +- .../Html/HtmlCodeActionProvider.cs | 2 +- .../Html/HtmlCodeActionResolver.cs | 12 +- .../Html/IHtmlCodeActionResolver.cs | 2 +- .../CodeActions/ICodeActionResolveService.cs | 3 +- .../CodeActions/ICodeActionsService.cs | 8 +- .../Models/CodeActionExtensions.cs | 3 +- .../Razor/AddUsingsCodeActionResolver.cs | 10 +- ...omponentAccessibilityCodeActionProvider.cs | 5 +- .../CreateComponentCodeActionResolver.cs | 6 +- .../ExtractToCodeBehindCodeActionResolver.cs | 18 +- .../ExtractToComponentCodeActionResolver.cs | 9 +- .../Razor/ExtractToCssCodeActionResolver.cs | 10 +- .../GenerateEventHandlerCodeActionResolver.cs | 62 +- .../Razor/IRazorCodeActionResolver.cs | 2 +- .../Razor/IRoslynCodeActionHelpers.cs | 24 - .../Razor/PromoteUsingCodeActionResolver.cs | 10 +- .../Razor/RazorCodeActionFactory.cs | 4 +- ...UnnecessaryDirectivesCodeActionResolver.cs | 6 +- ...llyQualifiedComponentCodeActionResolver.cs | 6 +- ...plifyTagToSelfClosingCodeActionResolver.cs | 6 +- ...tAndConsolidateUsingsCodeActionResolver.cs | 6 +- .../Razor/WrapAttributesCodeActionResolver.cs | 7 +- .../CodeActions/RazorCodeActionContext.cs | 3 +- .../CodeActions/RemoteCodeActionsService.cs | 69 +- .../CodeActions/RoslynCodeActionHelpers.cs | 52 +- .../CodeLens/RemoteCodeLensService.cs | 64 +- .../AggregateCompletionItemResolver.cs | 5 +- .../Completion/AttributeCompletionContext.cs | 2 +- .../Completion/AttributeCompletionResult.cs | 2 +- ...azorDataAttributeCompletionItemProvider.cs | 7 +- .../CSharpCompletionItemFormatter.cs | 146 ++ ...SharpRazorKeywordCompletionItemProvider.cs | 7 +- .../Completion/CompletionContextHelper.cs | 2 +- .../Completion/CompletionItemResolver.cs | 5 +- .../Completion/CompletionReason.cs | 2 +- .../Completion/CompletionSortTextHelper.cs | 4 +- .../DirectiveAttributeCompletionContext.cs | 3 +- ...ItemProvider.AttributeCompletionDetails.cs | 3 +- ...irectiveAttributeCompletionItemProvider.cs | 9 +- ...tiveAttributeCompletionItemProviderBase.cs | 3 +- ...uteEventParameterCompletionItemProvider.cs | 7 +- ...tributeTransitionCompletionItemProvider.cs | 8 +- .../DirectiveCompletionItemProvider.cs | 7 +- .../Completion/ElementCompletionContext.cs | 2 +- .../Completion/ElementCompletionResult.cs | 2 +- .../Generated/HtmlAttributeGroups.Shared.g.cs | 2 +- .../Generated/HtmlAttributeGroups.Unique.g.cs | 2 +- .../Html/Generated/HtmlAttributeInfo.g.cs | 2 +- .../Html/Generated/HtmlAttributeKind.g.cs | 2 +- .../HtmlAttributeValueGroups.Shared.g.cs | 2 +- .../HtmlAttributeValueGroups.Unique.g.cs | 2 +- .../Html/Generated/HtmlAttributes.Shared.g.cs | 2 +- .../Html/Generated/HtmlAttributes.Unique.g.cs | 2 +- .../Html/Generated/HtmlCompletionData.g.cs | 2 +- .../Html/Generated/HtmlDescriptions.g.cs | 4 +- .../Generated/HtmlElementGroups.Shared.g.cs | 2 +- .../Generated/HtmlElementGroups.Unique.g.cs | 2 +- .../Html/Generated/HtmlElementInfo.g.cs | 2 +- .../Html/Generated/HtmlElementKind.g.cs | 2 +- .../Html/Generated/HtmlElements.All.g.cs | 2 +- .../Html/HtmlCompletionImageMonikers.cs | 2 +- ...HtmlCompletionProvider.EntityCompletion.cs | 2 +- ...lHtmlCompletionProvider.PositionContext.cs | 2 +- ...ocalHtmlCompletionProvider.PositionKind.cs | 2 +- .../Html/LocalHtmlCompletionProvider.cs | 4 +- .../LocalHtmlCompletionProvider_Fallback.cs | 2 +- .../Html/LocalHtmlCompletionResolveContext.cs | 3 +- .../IRazorCompletionFactsService.cs | 3 +- .../IRazorCompletionItemProvider.cs | 3 +- .../Completion/ITagHelperCompletionService.cs | 2 +- .../MarkupTransitionCompletionItemProvider.cs | 8 +- .../OOPRazorCompletionFactsService.cs | 16 - .../OOPRazorCompletionItemProviders.cs | 36 - .../OOPRazorCompletionListProvider.cs | 18 - .../OOPTagHelperCompletionService.cs | 12 - .../Completion/RazorCompletionContext.cs | 3 +- .../RazorCompletionFactsService.cs} | 11 +- .../Completion/RazorCompletionItemResolver.cs | 4 +- .../Completion/RazorCompletionListProvider.cs | 13 +- .../RazorCompletionResolveContext.cs | 3 +- .../Completion/RemoteCompletionService.cs | 122 +- .../Completion/TagHelperCompletionProvider.cs | 8 +- .../Completion/TagHelperCompletionService.cs | 6 +- .../Debugging/RemoteDataTipRangeService.cs | 14 +- .../Debugging/RemoteDebugInfoService.cs | 121 +- .../DevTools/RemoteDevToolsService.cs | 39 +- .../Diagnostics/RazorDiagnosticHelper.cs | 21 +- .../RazorTranslateDiagnosticsService.cs | 183 ++- .../Diagnostics/RemoteDiagnosticsService.cs | 47 +- .../RemoteDocumentHighlightService.cs | 143 +- .../DefaultDocumentPositionInfoStrategy.cs | 3 +- .../DocumentMappingService.cs} | 121 +- .../IDocumentMappingService.cs | 14 +- .../IDocumentMappingServiceExtensions.cs | 166 +- .../IDocumentPositionInfoStrategy.cs | 3 +- .../DocumentMapping/IRazorEditService.cs | 9 +- .../IRazorEditServiceExtensions.cs | 8 +- .../DocumentMapping/MappingBehavior.cs | 2 +- ...tributeNameDocumentPositionInfoStrategy.cs | 4 +- ...AttributeValuesDocumentPositionStrategy.cs | 3 +- .../RazorEditService.CSharpMember.cs | 2 +- .../DocumentMapping/RazorEditService.cs | 67 +- .../RazorEditService_Members.cs | 5 +- .../RazorEditService_UsingDirectives.cs | 4 +- .../RazorEditService_WorkspaceEdit.cs | 279 ++++ .../RemoteDocumentMappingService.cs | 102 -- .../DocumentMapping/RemoteRazorEditService.cs | 67 - .../RemoteSpanMappingService.cs | 54 +- .../DocumentSymbols/DocumentSymbolService.cs | 236 ++- .../DocumentSymbols/IDocumentSymbolService.cs | 8 +- .../RemoteDocumentSymbolService.cs | 58 +- .../FindAllReferencesHelper.cs | 99 -- .../RemoteFindAllReferencesService.cs | 138 +- .../FoldingRanges/FoldingRangeService.cs | 34 +- .../FoldingRanges/IFoldingRangeService.cs | 2 +- .../RemoteFoldingRangeService.cs | 22 +- .../Formatting/CSharpFormatter.cs | 54 +- .../Formatting/FormattedDocument.cs | 2 +- .../Formatting/FormattingBlockKind.cs | 2 +- .../Formatting/FormattingContext.cs | 44 +- .../Formatting/FormattingLogger.cs | 2 +- .../Formatting/FormattingLoggerFactory.cs | 6 +- .../Formatting/FormattingSpan.cs | 2 +- .../Formatting/FormattingSpanKind.cs | 2 +- .../Formatting/FormattingUtilities.cs | 33 +- .../Formatting/FormattingVisitor.cs | 2 +- .../Formatting/IFormattingLogger.cs | 2 +- .../Formatting/IFormattingLoggerFactory.cs | 2 +- .../Formatting/IFormattingPass.cs | 2 +- .../Formatting/IFormattingValidationPass.cs | 2 +- .../Formatting/IRazorFormattingService.cs | 21 +- .../Formatting/IndentCache.cs | 2 +- .../Formatting/IndentationContext.cs | 2 +- .../Formatting/LineInfo.cs | 2 +- ...pFormattingPass.CSharpDocumentGenerator.cs | 49 +- .../Formatting/Passes/CSharpFormattingPass.cs | 69 +- .../Passes/CSharpOnTypeFormattingPass.cs | 196 ++- .../Passes/FormattingContentValidationPass.cs | 2 +- .../FormattingDiagnosticValidationPass.cs | 2 +- .../Formatting/Passes/HtmlFormattingPass.cs | 18 +- .../Passes/HtmlOnTypeFormattingPass.cs | 2 +- .../Formatting/Passes/RazorFormattingPass.cs | 2 +- .../Passes/RoslynWorkspaceHelper.cs | 7 +- .../Formatting/RazorFormattingService.cs | 71 +- .../RemoteFormattingLoggerFactory.cs | 12 - .../Formatting/RemoteFormattingService.cs | 31 +- .../RemoteRazorFormattingService.cs | 17 - .../Formatting/SnippetFormatter.cs | 2 +- .../GoToDefinition/DefinitionService.cs | 188 ++- .../GoToDefinition/IDefinitionService.cs | 11 +- .../RazorComponentDefinitionHelpers.cs | 24 +- .../RemoteGoToDefinitionService.cs | 33 +- .../RemoteGoToImplementationService.cs | 25 +- .../Hover/ComponentAvailabilityService.cs | 52 +- .../Hover/HoverDisplayOptions.cs | 2 +- .../Hover/HoverFactory.cs | 3 +- .../Hover/RemoteHoverService.cs | 58 +- .../RemoteHtmlDocumentService.cs | 4 +- .../IRazorComponentSearchEngine.cs | 8 +- .../ITagHelperSearchEngine.cs | 17 + .../InlayHints/RemoteInlayHintService.cs | 146 +- .../RemoteInlineCompletionService.cs | 37 +- .../RemoteLinkedEditingRangeService.cs | 6 +- ...Microsoft.CodeAnalysis.Remote.Razor.csproj | 4 + .../NestedFiles/RemoteAddNestedFileService.cs | 31 +- .../ProjectSystem/Extensions.cs | 6 +- .../ProjectSystem/GeneratorRunResult.cs | 18 + .../ProjectSystem/RemoteDocumentContext.cs | 16 - .../ProjectSystem/RemoteDocumentSnapshot.cs | 81 +- .../RemoteDocumentSnapshotExtensions.cs} | 10 +- .../ProjectSystem/RemoteProjectSnapshot.cs | 22 +- .../ProjectSystem/RemoteSnapshotManager.cs | 9 +- .../ProjectSystem/RemoteSolutionSnapshot.cs | 9 +- .../RazorComponentSearchEngine.cs | 21 +- .../RazorDocumentServiceBase.cs | 36 +- .../RemoteFilePathService.cs | 23 - .../RemoteRazorComponentSearchEngine.cs | 14 - .../RemoteTagHelperSearchEngine.cs | 5 +- .../RemoteRemoveAndSortUsingsService.cs | 12 +- .../Rename/IRenameService.cs | 7 +- .../Rename/RemoteRenameService.cs | 46 +- .../Rename/RenameService.cs | 15 +- .../Resources/HtmlDescriptions.resx | 0 .../Resources/SR.resx | 60 + .../Resources/xlf/HtmlDescriptions.cs.xlf | 0 .../Resources/xlf/HtmlDescriptions.de.xlf | 0 .../Resources/xlf/HtmlDescriptions.es.xlf | 0 .../Resources/xlf/HtmlDescriptions.fr.xlf | 0 .../Resources/xlf/HtmlDescriptions.it.xlf | 0 .../Resources/xlf/HtmlDescriptions.ja.xlf | 0 .../Resources/xlf/HtmlDescriptions.ko.xlf | 0 .../Resources/xlf/HtmlDescriptions.pl.xlf | 0 .../Resources/xlf/HtmlDescriptions.pt-BR.xlf | 0 .../Resources/xlf/HtmlDescriptions.ru.xlf | 0 .../Resources/xlf/HtmlDescriptions.tr.xlf | 0 .../xlf/HtmlDescriptions.zh-Hans.xlf | 0 .../xlf/HtmlDescriptions.zh-Hant.xlf | 0 .../Resources/xlf/SR.cs.xlf | 92 ++ .../Resources/xlf/SR.de.xlf | 92 ++ .../Resources/xlf/SR.es.xlf | 92 ++ .../Resources/xlf/SR.fr.xlf | 92 ++ .../Resources/xlf/SR.it.xlf | 92 ++ .../Resources/xlf/SR.ja.xlf | 92 ++ .../Resources/xlf/SR.ko.xlf | 92 ++ .../Resources/xlf/SR.pl.xlf | 92 ++ .../Resources/xlf/SR.pt-BR.xlf | 92 ++ .../Resources/xlf/SR.ru.xlf | 92 ++ .../Resources/xlf/SR.tr.xlf | 92 ++ .../Resources/xlf/SR.zh-Hans.xlf | 92 ++ .../Resources/xlf/SR.zh-Hant.xlf | 92 ++ .../RemoteSelectionRangeService.cs | 78 +- .../CSharpSemanticTokensProvider.cs | 46 - .../ICSharpSemanticTokensProvider.cs | 20 - .../IRazorSemanticTokenInfoService.cs | 2 +- .../RazorSemanticTokensInfoService.cs | 105 +- .../RemoteSemanticTokensService.cs | 6 +- .../RemoteSignatureHelpService.cs | 17 +- .../CSharpSpellCheckRangeProvider.cs | 27 +- .../ICSharpSpellCheckRangeProvider.cs | 2 +- .../SpellCheck/ISpellCheckService.cs | 2 +- .../SpellCheck/RemoteSpellCheckService.cs | 6 +- .../SpellCheck/SpellCheckRange.cs | 2 +- .../SpellCheck/SpellCheckService.cs | 18 +- .../ClassifiedTagHelperTooltipFactory.cs | 8 +- .../Tooltip/DocCommentHelpers.cs | 2 +- .../Tooltip/Extensions.cs | 5 +- .../Tooltip/IComponentAvailabilityService.cs | 6 +- .../Tooltip/MarkupTagHelperTooltipFactory.cs | 3 +- .../Tooltip/TypeNameStringResolver.cs | 2 +- .../RemoteTypeHierarchyService.cs | 77 +- .../RemoteUriPresentationService.cs | 11 +- .../WrapWithTag/RemoteWrapWithTagService.cs | 6 +- .../CohostDocumentPullDiagnosticsEndpoint.cs | 38 +- .../Cohost/CohostInlineCompletionEndpoint.cs | 23 +- .../Cohost/CohostTextPresentationEndpoint.cs | 12 +- .../Cohost/CohostUriPresentationEndpoint.cs | 11 +- .../Cohost/CohostWrapWithTagEndpoint.cs | 5 +- .../Debugging/RazorBreakpointResolver.cs | 9 +- .../RazorProximityExpressionResolver.cs | 9 +- .../OrganizeUsingsCommand.cs | 12 +- .../VisualStudioFilePathService.cs | 13 - .../RazorContextMenu.vsct | 58 +- .../SyntaxVisualizerControl.xaml.cs | 20 +- .../SyntaxVisualizerToolWindow.cs | 7 + .../xlf/RazorContextMenu.vsct.cs.xlf | 15 + .../xlf/RazorContextMenu.vsct.de.xlf | 15 + .../xlf/RazorContextMenu.vsct.es.xlf | 15 + .../xlf/RazorContextMenu.vsct.fr.xlf | 15 + .../xlf/RazorContextMenu.vsct.it.xlf | 15 + .../xlf/RazorContextMenu.vsct.ja.xlf | 15 + .../xlf/RazorContextMenu.vsct.ko.xlf | 15 + .../xlf/RazorContextMenu.vsct.pl.xlf | 15 + .../xlf/RazorContextMenu.vsct.pt-BR.xlf | 15 + .../xlf/RazorContextMenu.vsct.ru.xlf | 15 + .../xlf/RazorContextMenu.vsct.tr.xlf | 15 + .../xlf/RazorContextMenu.vsct.zh-Hans.xlf | 15 + .../xlf/RazorContextMenu.vsct.zh-Hant.xlf | 15 + .../Services/VSCodeFilePathService.cs | 32 - .../CohostTestBase.cs | 11 +- .../Formatting/TestFormattingLoggerFactory.cs | 2 +- .../RazorToolingIntegrationTestBase.cs | 64 +- .../ProjectSystem/TestDocumentSnapshot.cs | 74 - ...erministicRazorSourceGeneratorReference.cs | 35 + .../Workspaces/RazorProjectBuilder.cs | 11 +- .../AutoClosingTagOnAutoInsertProviderTest.cs | 2 +- .../CloseTextTagOnAutoInsertProviderTest.cs | 2 +- ...eValuesDocumentPositionInfoStrategyTest.cs | 2 +- .../RazorOnAutoInsertProviderTestBase.cs | 2 +- .../CodeActions/AddUsingTests.cs | 56 + .../CodeActions/CSharpCodeActionTests.cs | 57 + .../CohostCodeActionsEndpointTestBase.cs | 16 +- .../CodeActions/GenerateConstructorTests.cs | 2 +- .../CodeActions/GenerateConversionTests.cs | 2 +- .../GenerateDeconstructMethodTests.cs | 2 +- .../CodeActions/GenerateFieldTests.cs | 2 +- .../CodeActions/GenerateMethodTests.cs | 2 +- .../CodeActions/GeneratePropertyTests.cs | 2 +- .../ImplementAbstractClassTests.cs | 2 +- .../CodeActions/ImplementInterfaceTests.cs | 2 +- .../ComputedTargetPathTest.cs | 50 +- .../DocumentExcerptServiceTestBase.cs | 79 - .../RazorDocumentExcerptServiceTest.cs | 220 ++- .../CohostCallHierarchyEndpointTest.cs | 210 ++- .../CohostDocumentCompletionEndpointTest.cs | 156 +- ...stDocumentCompletionResolveEndpointTest.cs | 7 +- .../CohostDocumentHighlightEndpointTest.cs | 345 +++- .../CohostDocumentPullDiagnosticsTest.cs | 80 + .../CohostDocumentSymbolEndpointTest.cs | 317 +++- .../CohostFindAllReferencesEndpointTest.cs | 54 +- .../CohostFoldingRangeEndpointTest.cs | 107 +- ...stGeneratedDocumentContentsEndpointTest.cs | 44 +- .../CohostGoToDefinitionEndpointTest.cs | 4 +- .../CohostGoToImplementationEndpointTest.cs | 115 +- .../Endpoints/CohostHoverEndpointTest.cs | 76 +- .../Endpoints/CohostInlayHintEndpointTest.cs | 184 ++- .../CohostOnAutoInsertEndpointTest.cs | 49 +- .../Endpoints/CohostRenameEndpointTest.cs | 127 +- .../CohostSelectionRangeEndpointTest.cs | 44 +- .../CohostSemanticTokensRangeEndpointTest.cs | 2 +- .../CohostSignatureHelpEndpointTest.cs | 96 +- .../CohostTypeHierarchyEndpointTest.cs | 97 ++ .../Formatting/DocumentFormattingTest.cs | 72 +- .../Formatting/DocumentFormattingTestBase.cs | 5 +- .../FormattingContentValidationPassTest.cs | 51 +- .../FormattingDiagnosticValidationPassTest.cs | 4 +- .../Formatting/HtmlFormattingPassTest.cs | 3 +- .../Formatting/HtmlFormattingTest.cs | 2 +- .../Formatting/RazorFormattingServiceTest.cs | 6 +- .../Mapping/RazorEditServiceTest.cs | 24 +- ....Razor.CohostingShared.UnitTests.projitems | 1 - .../ProjectAvailabilityTests.cs | 4 +- .../RazorDocumentMappingServiceTest.cs | 74 +- .../DocumentUriExtensionsTest.cs | 102 ++ .../FilePathServiceTest.cs | 50 - .../TestComponentAvailabilityService.cs | 20 - .../CodeActions/HtmlCodeActionProviderTest.cs | 14 +- .../CodeActions/HtmlCodeActionResolverTest.cs | 22 +- ...DataAttributeCompletionItemProviderTest.cs | 9 +- ...RazorKeywordCompletionItemProviderTests.cs | 5 +- .../DefaultRazorCompletionFactsServiceTest.cs | 9 +- ...AttributeCompletionItemProviderBaseTest.cs | 4 +- ...mpletionItemProviderTest.AttributeNames.cs | 5 +- ...mpletionItemProviderTest.ParameterNames.cs | 3 +- ...ventParameterCompletionItemProviderTest.cs | 5 +- ...uteTransitionCompletionItemProviderTest.cs | 4 +- .../DirectiveCompletionItemProviderTest.cs | 5 +- .../Completion/DirectiveVerifier.cs | 2 +- ...ageServerTagHelperCompletionServiceTest.cs | 2 +- .../LocalHtmlCompletionProviderTest.cs | 5 +- ...kupTransitionCompletionItemProviderTest.cs | 6 +- .../RazorCompletionListProviderTest.cs | 7 +- .../TagHelperCompletionProviderTest.cs | 9 +- .../Formatting/FormattingUtilitiesTest.cs | 1 + .../Hover/HoverFactoryTest.cs | 5 +- ...CodeAnalysis.Remote.Razor.UnitTests.csproj | 20 + .../ClassifiedTagHelperTooltipFactoryTest.cs | 20 +- .../Tooltip/DocCommentHelperTests.cs | 2 +- .../MarkupTagHelperTooltipFactoryTest.cs | 8 +- .../TestComponentAvailabilityService.cs | 18 + .../Tooltip/TypeNameStringResolverTest.cs | 4 +- .../Cohost/CohostDataTipRangeEndpointTest.cs | 88 +- .../CohostDocumentPullDiagnosticsTest.cs | 27 +- .../CohostDocumentSpellCheckEndpointTest.cs | 75 +- .../Cohost/CohostEndpointTestBase.cs | 5 - .../CohostInlineCompletionEndpointTest.cs | 97 +- .../CohostRangeFormattingEndpointTest.cs | 3 +- .../Cohost/CohostRoslynCodeActionTest.cs | 47 +- .../Cohost/CohostRoslynGoToDefTest.cs | 14 +- .../Cohost/CohostRoslynRenameTest.cs | 41 +- .../Cohost/CohostSnippetCompletionTest.cs | 7 +- .../CohostTextPresentationEndpointTest.cs | 2 +- .../CohostUriPresentationEndpointTest.cs | 2 +- ...ohostValidateBreakableRangeEndpointTest.cs | 130 +- ...ingLogTest.LegacyRazorFormattingOptions.cs | 3 +- .../Cohost/Formatting/FormattingLogTest.cs | 3 +- .../Cohost/Formatting/FormattingTestBase.cs | 1 + .../Cohost/Formatting/OnTypeFormattingTest.cs | 4 +- .../Cohost/HoverAssertions.cs | 2 +- .../Cohost/OrganizeUsingsCommandTest.cs | 29 +- .../Cohost/RemoteDebugInfoServiceTest.cs | 86 +- .../CohostEndpointTestBase.cs | 4 - .../Endpoints/CohostCodeLensEndpointTest.cs | 86 +- .../CodeEmitter.cs | 6 +- .../HtmlCompletionDataGenerator/README.md | 2 +- .../IntegrationTests/BuilderCallDumper.cs | 116 ++ .../IntegrationTests/IntegrationTestBase.cs | 26 +- .../RazorBaselineIntegrationTestBase.cs | 120 +- .../RazorIntegrationTestBase.cs | 92 +- .../Language/RazorCodeDocumentProcessor.cs | 26 + .../RazorCodeDocumentTestExtensions.cs | 24 + ...soft.CodeAnalysis.CSharp.Workspaces.csproj | 1 + 2969 files changed, 38439 insertions(+), 11872 deletions(-) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/MarkupSplitterComponentTest.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Intermediate/IntermediateNodeCloneTest.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/MarkupSplitterTest.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ExtendedPropertyPatterns/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ExtendedPropertyPatterns/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/FileScopedNamespace/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/FileScopedNamespace/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/GlobalUsingDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/GlobalUsingDirective/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/LambdaImprovements/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/LambdaImprovements/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/MixDeclarationsAndVariablesInDeconstruction/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/MixDeclarationsAndVariablesInDeconstruction/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (90%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (83%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (89%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/{CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.mappings.txt => CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.decl.mappings.txt} (93%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (89%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (96%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/{CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.mappings.txt => CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.decl.mappings.txt} (93%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (90%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/ListPatterns/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/ListPatterns/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (85%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NewlinesInInterpolations/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NewlinesInInterpolations/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NumericIntPtr/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NumericIntPtr/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/PatternMatchingOnReadOnlySpanChar/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/PatternMatchingOnReadOnlySpanChar/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RawStringLiterals/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RawStringLiterals/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (93%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RelaxingShiftOperator/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RelaxingShiftOperator/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (91%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/UnsignedRightShift/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/UnsignedRightShift/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/Utf8StringLiterals/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/Utf8StringLiterals/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/CollectionExpressions/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/CollectionExpressions/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (88%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (89%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/LambdaOptionalParameters/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/LambdaOptionalParameters/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (84%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (87%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (85%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/UsingAliasesForAnyType/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/UsingAliasesForAnyType/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/UsingAliasesForAnyType/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/EscapeCharacter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/EscapeCharacter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/ImplicitIndexerAccessInObjectInitializers/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/ImplicitIndexerAccessInObjectInitializers/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/LockObject/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/LockObject/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/MethodGroupNaturalTypeImprovements/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/MethodGroupNaturalTypeImprovements/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/OverloadResolutionPriority/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/OverloadResolutionPriority/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (88%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (93%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/Extensions/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/Extensions/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/NullConditionalAssignment/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/NullConditionalAssignment/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/StringLiteralsInDataSectionAsUtf8/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/StringLiteralsInDataSectionAsUtf8/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UnboundGenericTypesInNameof/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UnboundGenericTypesInNameof/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AlternativeInterpolatedVerbatimStrings/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AlternativeInterpolatedVerbatimStrings/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (91%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (89%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/EnhancedUsing/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/EnhancedUsing/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullCoalescingAssignment/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullCoalescingAssignment/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/Ranges/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/Ranges/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (93%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/RecursivePatterns/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/RecursivePatterns/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StackallocInNestedContexts/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StackallocInNestedContexts/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StaticLocalFunctions/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StaticLocalFunctions/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (87%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/AttributesOnLocalFunctions/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/AttributesOnLocalFunctions/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (92%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (92%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtensionGetEnumerator/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtensionGetEnumerator/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (90%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/LambdaDiscardParameters/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/LambdaDiscardParameters/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (88%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/NativeInts/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/NativeInts/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/PatternMatchingImprovements/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/PatternMatchingImprovements/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (81%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (90%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/StaticLambdas/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/StaticLambdas/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedConditional/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedConditional/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedNew/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedNew/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/ExtensionIndexers/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/ExtensionIndexers/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/LabeledBreakAndContinue/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/LabeledBreakAndContinue/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/StringLiteralAttributeOnUnionParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/StringLiteralAttributeOnUnionParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtAtHandled/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtAtHandled/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtTransitions/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtTransitions/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtTransitions/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_InferredType_WithAfter_Action/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_InferredType_WithAfter_Action/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_InferredType_WithAfter_Action/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToInputElementWithDefaultCulture/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToInputElementWithDefaultCulture/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToInputElementWithDefaultCulture/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToInputElementWithDefaultCulture/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToInputElementWithDefaultCulture_Override/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToInputElementWithDefaultCulture_Override/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToInputElementWithDefaultCulture_Override/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToInputElementWithDefaultCulture_Override/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputCheckbox_WritesAttributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_CanOverrideEvent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_CanOverrideEvent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_CanOverrideEvent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_CanOverrideEvent/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_WithFormatFromProperty_WritesAttributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_WithFormat_WritesAttributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputText_WritesAttributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithDefaultCultureAndDefaultFormat_Override/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithDefaultCultureAndDefaultFormat_Override/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithDefaultCultureAndDefaultFormat_Override/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithDefaultCultureAndDefaultFormat_Override/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat_Override/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat_Override/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat_Override/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithDefaultFormat_Override/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithSuffix/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithSuffix/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithSuffix/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithSuffix/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithSuffix_CanOverrideEvent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithSuffix_CanOverrideEvent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithSuffix_CanOverrideEvent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithSuffix_CanOverrideEvent/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithoutType_IsCaseSensitive/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithoutType_IsCaseSensitive/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithoutType_IsCaseSensitive/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithoutType_IsCaseSensitive/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BuiltIn_BindToInputWithoutType_WritesAttributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CanProduceLinePragmasForComponentWithRenderFragment_01/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CanProduceLinePragmasForComponentWithRenderFragment_01/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CanProduceLinePragmasForComponentWithRenderFragment_01/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CanProduceLinePragmasForComponentWithRenderFragment_02/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CanProduceLinePragmasForComponentWithRenderFragment_02/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CanProduceLinePragmasForComponentWithRenderFragment_02/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CaptureParametersConstraint/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_CombiningMultipleAncestors/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_CombiningMultipleAncestors/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Explicit/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Explicit/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Explicit/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_ExplicitOverride/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_ExplicitOverride/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_ExplicitOverride/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericArgumentNested/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericArgumentNested/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_02/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_02/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_03/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_03/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_Dynamic/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_Dynamic/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericLambda/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_GenericLambda/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_ClassesAndInterfaces/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_ClassesAndInterfaces/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_ClassesAndInterfaces/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_ClassesAndInterfaces/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_GenericClassConstraints/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_GenericClassConstraints/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_GenericClassConstraints/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_GenericClassConstraints/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_WithConstraints/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_WithConstraints/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Inferred_WithConstraints/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Multilayer/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Multilayer/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Multilayer/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_MultipleTypes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_MultipleTypes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_NotCascaded_CreatesError/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_NotCascaded_CreatesError/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_NotCascaded_Explicit/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_NotCascaded_Explicit/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_NotCascaded_Inferred/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_NotCascaded_Inferred/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_NullableEnabled/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Override/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Override/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Override_Multilayer/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Override_Multilayer/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Override_Multilayer/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_ParameterInNamespace/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_ParameterInNamespace/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_ParameterInNamespace/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Partial_CreatesError/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Partial_CreatesError/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Tuple/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_Tuple/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_WithSplatAndKey/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_WithSplatAndKey/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_WithUnrelatedType_CreatesError/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/CascadingGenericInference_WithUnrelatedType_CreatesError/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_AtSpecifiedInRazorFileForTypeParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_AtSpecifiedInRazorFileForTypeParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_AtSpecifiedInRazorFileForTypeParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_Generic/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_Generic/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_Generic/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBind/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBind/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBind/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBind/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_NonGenericParameterizedChildContent_TypeInference/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_NonGenericParameterizedChildContent_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_NonGenericParameterizedChildContent_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_Simple/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_Simple/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_Simple/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithParameters/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithParameters/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithParameters/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithParametersAndRazorComment/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithParametersAndRazorComment/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithParametersAndRazorComment/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithStringLiteralUnionParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithStringLiteralUnionParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithStringLiteralUnionParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentAttribute_WithDoubleAtEscape/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentAttribute_WithDoubleAtEscape/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentAttribute_WithDoubleAtEscape/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentImports_GlobalPrefix/Index.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithBooleanParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithBooleanParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithBooleanParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithBooleanParameter/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithBooleanParameter_Minimized/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithBooleanParameter_Minimized/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithBooleanParameter_Minimized/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithBooleanParameter_Minimized/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters/UseTestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters/UseTestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters/UseTestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters/UseTestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters_WithSemicolon/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters_WithSemicolon/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters_WithSemicolon/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters_WithSemicolon/UseTestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters_WithSemicolon/UseTestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters_WithSemicolon/UseTestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithConstrainedTypeParameters_WithSemicolon/UseTestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithDecimalParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithDecimalParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithDecimalParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithDecimalParameter/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithDynamicParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithDynamicParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithDynamicParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithDynamicParameter/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTupleParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTupleParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTupleParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTupleParameter/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterArray/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterArray/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterArray/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterArray/UseTestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterArray/UseTestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterArray/UseTestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterArray/UseTestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTuple/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTuple/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTuple/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTuple/UseTestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTuple/UseTestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTuple/UseTestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTuple/UseTestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTupleGloballyQualifiedTypes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTupleGloballyQualifiedTypes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTupleGloballyQualifiedTypes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTuple_ExplicitGenericArguments/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTuple_ExplicitGenericArguments/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameterValueTuple_ExplicitGenericArguments/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameters/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameters/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameters/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameters_Interconnected/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameters_Interconnected/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameters_WithSemicolon/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameters_WithSemicolon/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ComponentWithTypeParameters_WithSemicolon/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_AddContent_Multiline/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_AddContent_Multiline/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_AddContent_Multiline/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_ComplexContentInAttribute/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_ComplexContentInAttribute/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_ComplexContentInAttribute/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_ComplexContentInAttribute_02/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_ComplexContentInAttribute_02/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_ComplexContentInAttribute_02/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_ComplexContentInAttribute_03/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_ComplexContentInAttribute_03/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_ComplexContentInAttribute_03/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_MatchingIsCaseSensitive/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_MatchingIsCaseSensitive/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_MatchingIsCaseSensitive/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_MultipleComponentsDifferByCase/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_MultipleComponentsDifferByCase/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_MultipleComponentsDifferByCase/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_NamespaceDirective_InImports/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_NamespaceDirective_InImports/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_NamespaceDirective_InImports/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_PreserveWhitespaceDirective_InImports/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_PreserveWhitespaceDirective_InImports/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_PreserveWhitespaceDirective_InImports/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_PreserveWhitespaceDirective_OverrideImports/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_PreserveWhitespaceDirective_OverrideImports/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_PreserveWhitespaceDirective_OverrideImports/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithCssScope/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithCssScope/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithCssScope/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithCssScope/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithDocType/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithDocType/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithDocType/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredChildContent_NoValueSpecified/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredChildContent_NoValueSpecified/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredChildContent_NoValueSpecified/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecified/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecified/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecified/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecifiedAsText_WithoutName/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecifiedAsText_WithoutName/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecifiedAsText_WithoutName/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecified_WithoutName/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecified_WithoutName/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecified_WithoutName/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredNamedChildContent_NoValueSpecified/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredNamedChildContent_NoValueSpecified/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredNamedChildContent_NoValueSpecified/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredNamedChildContent_ValueSpecified/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredNamedChildContent_ValueSpecified/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredNamedChildContent_ValueSpecified/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_NoValueSpecified/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_NoValueSpecified/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_NoValueSpecified/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecified/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecified/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecified/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBind/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBind/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBind/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBind/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBindGet/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBindGetSet/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBindGetSet_EventCallbackRequired/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBindGetSet_ExpressionRequired/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBindSet/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBind_EventCallbackRequired/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBind_ExpressionRequired/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecified_EventCallbackRequired/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecified_ExpressionRequired/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValuesSpecifiedUsingSplatting/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValuesSpecifiedUsingSplatting/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEditorRequiredParameter_ValuesSpecifiedUsingSplatting/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEscapedParameterName/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEscapedParameterName/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithEscapedParameterName/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithFullyQualifiedTagNames/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithFullyQualifiedTagNames/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithFullyQualifiedTagNames/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithImportsFile/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithImportsFile/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithImportsFile/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithInitOnlyParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithInitOnlyParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithInitOnlyParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithKey/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithKey/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithKey/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithKey/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithMultipleUsingDirectives/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithMultipleUsingDirectives/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithMultipleUsingDirectives/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithMultipleUsingDirectives/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNamespaceDirective_WithWhitespace/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNamespaceDirective_WithWhitespace/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNamespaceDirective_WithWhitespace/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNullableActionParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNullableActionParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNullableActionParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNullableActionParameter/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNullableRenderFragmentParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNullableRenderFragmentParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNullableRenderFragmentParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithNullableRenderFragmentParameter/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithPreserveWhitespaceDirective_False/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithPreserveWhitespaceDirective_False/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithPreserveWhitespaceDirective_False/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithPreserveWhitespaceDirective_True/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithPreserveWhitespaceDirective_True/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithPreserveWhitespaceDirective_True/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef_Nullable/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef_Nullable/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef_Nullable/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef_Nullable/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef_Nullable_Generic/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef_Nullable_Generic/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef_Nullable_Generic/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/{Element_WithSplat_AttributeNameIsCaseSensitive/TestComponent.mappings.txt => Component_WithSplat_ExplicitExpression/TestComponent.decl.mappings.txt} (87%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithUsingDirectives/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithUsingDirectives/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithUsingDirectives/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithUsingDirectives/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithWriteOnlyParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithWriteOnlyParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Component_WithWriteOnlyParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DataDashAttribute_ExplicitExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DataDashAttribute_ExplicitExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DataDashAttribute_ExplicitExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DataDashAttribute_ImplicitExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DataDashAttribute_ImplicitExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DataDashAttribute_ImplicitExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_Multiple/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_Multiple/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_WeaklyTyped/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateComponentParameters_IsAnError_WeaklyTyped/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_DifferentCasing_IsAnError_BindValue/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_IsAnError/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_IsAnError/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindOnInput/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindOnInput/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindOnInput/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindValue/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindValue/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_BindValue/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_EventHandler/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_EventHandler/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_IsAnError_EventHandler/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_Multiple_IsAnError/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/DuplicateMarkupAttributes_Multiple_IsAnError/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Duplicate_RenderMode/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Duplicate_RenderMode/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Duplicate_RenderMode/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ElementWithUppercaseTagName_CanHideWarningWithBang/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ElementWithUppercaseTagName_CanHideWarningWithBang/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ElementWithUppercaseTagName_CanHideWarningWithBang/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithKey/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithKey/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithKey/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/{Element_WithKey_AttributeNameIsCaseSensitive/TestComponent.mappings.txt => Element_WithKey/TestComponent.decl.mappings.txt} (82%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithKey_AndOtherAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithKey_AndOtherAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithKey_AndOtherAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithKey_AndOtherAttributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithKey_AttributeNameIsCaseSensitive/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithKey_AttributeNameIsCaseSensitive/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithKey_AttributeNameIsCaseSensitive/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithKey_AttributeNameIsCaseSensitive/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithRef/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithRef/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithRef/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithRef/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithRef_AndOtherAttributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithRef_AndOtherAttributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithRef_AndOtherAttributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithRef_AndOtherAttributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithRef_AttributeNameIsCaseSensitive/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithRef_AttributeNameIsCaseSensitive/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithRef_AttributeNameIsCaseSensitive/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat_AttributeNameIsCaseSensitive/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat_AttributeNameIsCaseSensitive/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat_AttributeNameIsCaseSensitive/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat_AttributeNameIsCaseSensitive/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat_ExplicitExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat_ExplicitExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat_ExplicitExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat_ExplicitExpression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat_ImplicitExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat_ImplicitExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat_ImplicitExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Element_WithSplat_ImplicitExpression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EmptyRootNamespace/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EmptyRootNamespace/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EmptyRootNamespace/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_Array/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_Array/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_Array/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType_MethodGroup/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType_MethodGroup/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType_MethodGroup/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType_MethodGroup/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_01/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_01/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_01/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_02/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_02/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_02/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandlerTagHelper_EscapeQuotes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_AttributeNameIsCaseSensitive/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_AttributeNameIsCaseSensitive/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_AttributeNameIsCaseSensitive/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_AttributeNameIsCaseSensitive/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_ArbitraryEventName_WithEventArgsMethodGroup/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithDelegate/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithEventArgsLambdaDelegate/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithEventArgsMethodGroup/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithLambdaDelegate/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithNoArgMethodGroup/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithNoArgsLambdaDelegate/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithString/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithoutCloseTag/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithoutCloseTag/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithoutCloseTag/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_OnElement_WithoutCloseTag/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_PreventDefault_Duplicates/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_PreventDefault_Duplicates/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_PreventDefault_Duplicates/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_PreventDefault_Duplicates/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_PreventDefault_StopPropagation/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_PreventDefault_StopPropagation/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_PreventDefault_StopPropagation/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_PreventDefault_StopPropagation/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_PreventDefault_StopPropagation_Minimized/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_PreventDefault_StopPropagation_Minimized/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_PreventDefault_StopPropagation_Minimized/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_PreventDefault_StopPropagation_Minimized/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_WithDelegate_PreventDefault/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_WithDelegate_PreventDefault/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_WithDelegate_PreventDefault/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/EventHandler_WithDelegate_PreventDefault/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ExplicitExpression_HtmlOnly/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ExplicitExpression_HtmlOnly/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ExplicitExpression_HtmlOnly/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ExplicitExpression_Whitespace/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ExplicitExpression_Whitespace/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_CSharpError/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_CSharpError/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_CSharpError/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_CSharpValue/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_CSharpValue/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_CSharpValue/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_CSharpValue/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_CSharpValue_Integer/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_CSharpValue_Integer/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_CSharpValue_Integer/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_ChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_ChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_ChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_ChildContent/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component_Generic/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component_Generic/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component_Generic_RazorLangVersion7/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component_Generic_RazorLangVersion7/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component_Generic_RazorLangVersion7/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component_RazorLangVersion7/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component_RazorLangVersion7/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component_RazorLangVersion7/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Component_RazorLangVersion7/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Duplicate_CSharpValue/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Duplicate_CSharpValue/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Duplicate_CSharpValue/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Duplicate_CSharpValue/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Duplicate_HtmlValue/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Duplicate_HtmlValue/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Duplicate_HtmlValue/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Duplicate_HtmlValue/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_FakeSubmit/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_FakeSubmit/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_FakeSubmit/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_FakeSubmit/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_HtmlValue/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_HtmlValue/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_HtmlValue/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_HtmlValue/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MissingSubmit/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MissingSubmit/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MissingSubmit/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MissingSubmit/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MissingUsing/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MissingUsing/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MixedValue/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MixedValue/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MixedValue/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MoreElements_CSharpValue/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MoreElements_CSharpValue/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MoreElements_CSharpValue/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MoreElements_CSharpValue/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MoreElements_HtmlValue/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MoreElements_HtmlValue/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MoreElements_HtmlValue/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_MoreElements_HtmlValue/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Nested/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Nested/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Nested/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Nested/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_NoAddNamedEventMethod/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_NoAddNamedEventMethod/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_NoAddNamedEventMethod/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_NoAddNamedEventMethod/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_NotAForm/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_NotAForm/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_NotAForm/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_NotAForm/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_NotAForm_RazorLangVersion7/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_NotAForm_RazorLangVersion7/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_NotAForm_RazorLangVersion7/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_NotAForm_RazorLangVersion7/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Nullability/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Nullability/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Nullability/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_Nullability/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_RazorError/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_RazorError/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_RazorError/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_RazorLangVersion7/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_RazorLangVersion7/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_RazorLangVersion7/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/FormName_RazorLangVersion7/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentBindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentBindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentBindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithAfter_Action/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithAfter_Action/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentMultipleTypeParamUsage/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentMultipleTypeParamUsage/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentMultipleTypeParamUsage/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression2/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression2/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression2/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeUsage/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeUsage/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeUsage/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeUsageWhitespace/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeUsageWhitespace/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeUsageWhitespace/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeUsageWithGenericType/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeUsageWithGenericType/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeUsageWithGenericType/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeUsageWithInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponentTypeUsageWithInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeExplicit/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeExplicit/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeExplicit/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallbackWithNestedGenericTypeParameter_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallbackWithNestedGenericTypeParameter_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallbackWithNestedGenericTypeParameter_TypeInference/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallback_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallback_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_GenericEventCallback_TypeInference/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NestedGenericEventCallback_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NestedGenericEventCallback_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NestedGenericEventCallback_TypeInference/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NonGenericEventCallback_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NonGenericEventCallback_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NonGenericEventCallback_TypeInference/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NonPrimitiveType/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NonPrimitiveType/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NonPrimitiveType/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NonPrimitiveTypeRenderFragment/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NonPrimitiveTypeRenderFragment/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_NonPrimitiveTypeRenderFragment/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_TypeParameterOrdering/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_TypeParameterOrdering/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_TypeParameterOrdering/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_TypeParameterOrdering/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_UnmanagedConstraint/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_UnmanagedConstraint/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_UnmanagedConstraint/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithFullyQualifiedTagName/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithFullyQualifiedTagName/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithFullyQualifiedTagName/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithKey/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithKey/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithKey/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithKey/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_01/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_01/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_01/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_02/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_02/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericTypeCheck/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericTypeCheck/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericTypeCheck/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/GenericTypeCheck/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddAttribute/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddAttribute/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddAttribute/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddComponentParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddComponentParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddComponentParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_02/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_02/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_02/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_02/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_03/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_03/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_03/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_03/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Multiple/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Multiple/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Multiple/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/IncludesMinimizedAttributeValueParameterBeforeLanguageVersion5/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/IncludesMinimizedAttributeValueParameterBeforeLanguageVersion5/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/IncludesMinimizedAttributeValueParameterBeforeLanguageVersion5/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/InheritsDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/InheritsDirective/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/InheritsDirective_NullableReferenceType/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/InheritsDirective_NullableReferenceType/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/InheritsDirective_NullableReferenceType_NullableDisabled/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/InheritsDirective_NullableReferenceType_NullableDisabled/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/InjectDirective/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/InjectDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/InjectDirective/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/InvalidCode_EmptyTransition/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/InvalidCode_EmptyTransition/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/InvalidCode_EmptyTransition/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LayoutDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LayoutDirective/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LayoutDirective/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (100%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LeadingWhiteSpace_WithCSharpExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LeadingWhiteSpace_WithDirective/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithCSharpExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithCSharpExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithCSharpExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithComponent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithComponent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithComponent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithDirective/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithDirective/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithDirective/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithCSharpExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithCSharpExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithCSharpExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithComponent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithComponent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithComponent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithDirective/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithDirective/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithDirective/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (100%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_WhiteSpace_InMarkupInFunctionsBlock/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_WhiteSpace_InMarkupInFunctionsBlock/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_WhiteSpace_InMarkupInFunctionsBlock/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_WhiteSpace_InMarkupInFunctionsBlock/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_WhiteSpace_InsideAttribute_InMarkupBlock/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_WhiteSpace_InsideAttribute_InMarkupBlock/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_WhiteSpace_InsideAttribute_InMarkupBlock/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_Whitespace_BetweenElementAndFunctions/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_Whitespace_BetweenElementAndFunctions/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_Whitespace_BetweenElementAndFunctions/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Legacy_3_1_Whitespace_BetweenElementAndFunctions/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LinePragma_Multiline/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LinePragma_Multiline/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/LinePragma_Multiline/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/MarkupComment_IsNotIncluded/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/MarkupComment_IsNotIncluded/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/MarkupComment_IsNotIncluded/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/MultipleChildContentMatchingComponentName/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/MultipleChildContentMatchingComponentName/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/MultipleChildContentMatchingComponentName/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/MultipleExplictChildContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/MultipleExplictChildContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/MultipleExplictChildContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/NamespaceWithSurrogatePair/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/NamespaceWithSurrogatePair/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/NamespaceWithSurrogatePair/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/OmitsMinimizedAttributeValueParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/OmitsMinimizedAttributeValueParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/OmitsMinimizedAttributeValueParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/PageDirective_MissingRoute/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/PageDirective_MissingRoute/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/PageDirective_MissingRoute_WithComment/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/PageDirective_MissingRoute_WithComment/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/PageDirective_NoForwardSlash/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/PageDirective_NoForwardSlash/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/PageDirective_NoForwardSlash/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (100%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/PageDirective_NoForwardSlash_WithComment/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/PageDirective_NoForwardSlash_WithComment/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/PageDirective_NoForwardSlash_WithComment/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (100%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ProducesEnhancedLinePragmaWhenNecessary/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ProducesEnhancedLinePragmaWhenNecessary/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ProducesEnhancedLinePragmaWhenNecessary/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ProducesEnhancedLinePragmaWhenNecessary/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ProducesStandardLinePragmaForCSharpCode/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ProducesStandardLinePragmaForCSharpCode/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ProducesStandardLinePragmaForCSharpCode/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ProducesStandardLinePragmaForCSharpCode/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_Generic_InImplicitExpression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_InCodeBlock/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_InExplicitExpression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RazorTemplate_NonGeneric_InImplicitExpression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_597/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_597/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_597/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_597/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_609/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_609/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_609/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_609/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_772/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_772/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_772/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_773/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_773/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_773/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_773/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_784/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_784/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_784/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Regression_784/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Attribute_With_Existing_Attributes/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Attribute_With_Existing_Attributes/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Attribute_With_Existing_Attributes/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Attribute_With_Existing_Attributes/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Attribute_With_Expression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Attribute_With_Expression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Attribute_With_Expression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Attribute_With_Expression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Attribute_With_SimpleIdentifier/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Attribute_With_SimpleIdentifier/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Attribute_With_SimpleIdentifier/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Child_Components/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Child_Components/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Child_Components/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Child_Components/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_FullyQualified/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_FullyQualified/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_NewExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_NewExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_NewExpression/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_SimpleExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_SimpleExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_SimpleExpression_NotFirst/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_SimpleExpression_NotFirst/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_SimpleExpression_NotFirst/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_SimpleExpression_With_Code/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_SimpleExpression_With_Code/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_SimpleExpression_With_Code/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_WithNamespaces/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_WithNamespaces/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_WithNamespaces/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_WithTypeParam/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_WithTypeParam/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_WithTypeParam_First/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_WithTypeParam_First/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_WithTypeParam_Razor9/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Directive_WithTypeParam_Razor9/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Multiple_Components/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Multiple_Components/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_Multiple_Components/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_Null_Nullable_Disabled/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_Null_Nullable_Disabled/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_Null_Nullable_Disabled/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_Null_Nullable_Enabled/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_Null_Nullable_Enabled/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_Null_Nullable_Enabled/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_Nullable_Receiver/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_Nullable_Receiver/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_Nullable_Receiver/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_Ternary/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_Ternary/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_Ternary/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_TypeInference/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/RenderMode_With_TypeInference/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ScriptTag_Razor7/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ScriptTag_Razor7/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ScriptTag_Razor7/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ScriptTag_Razor8/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ScriptTag_Razor8/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/ScriptTag_Razor8/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SectionDirective_NotAllowed/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SectionDirective_NotAllowed/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SectionDirective_NotAllowed/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SectionDirective_NotAllowed_VariableNotDefined/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SectionDirective_NotAllowed_VariableNotDefined/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SingleLineControlFlowStatements_InCodeBlock/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SingleLineControlFlowStatements_InCodeBlock/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SingleLineControlFlowStatements_InCodeBlock/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SingleLineControlFlowStatements_InCodeBlock/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SingleLineControlFlowStatements_InCodeDirective/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SingleLineControlFlowStatements_InCodeDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SingleLineControlFlowStatements_InCodeDirective/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SingleLineControlFlowStatements_InCodeDirective/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SwitchExpression_WithMarkupInLambdaArms/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SwitchExpression_WithMarkupInLambdaArms/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SwitchExpression_WithMarkupInLambdaArms/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/SwitchExpression_WithMarkupInLambdaArms/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/TrailingWhiteSpace_WithCSharpExpression/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/TrailingWhiteSpace_WithDirective/TestComponent.decl.ir.txt rename src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/TrailingWhiteSpace_WithDirective/{TestComponent.mappings.txt => TestComponent.decl.mappings.txt} (100%) create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/UsingDirective/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/UsingDirective/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/UsingDirective/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName_FullyQualified/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName_FullyQualified/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName_FullyQualified/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName_FullyQualified/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName_NoMatchingComponent/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName_NoMatchingComponent/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName_NoMatchingComponent/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName_SelfClosing/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName_SelfClosing/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName_SelfClosing/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/VoidTagName_SelfClosing/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/WhiteSpace_InMarkupInFunctionsBlock/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/WhiteSpace_InMarkupInFunctionsBlock/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/WhiteSpace_InMarkupInFunctionsBlock/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/WhiteSpace_InMarkupInFunctionsBlock/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/WhiteSpace_InsideAttribute_InMarkupBlock/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/WhiteSpace_InsideAttribute_InMarkupBlock/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/WhiteSpace_InsideAttribute_InMarkupBlock/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/WhiteSpace_WithPreserveWhitespace/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/WhiteSpace_WithPreserveWhitespace/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/WhiteSpace_WithPreserveWhitespace/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/WhiteSpace_WithPreserveWhitespace/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Whitespace_BetweenElementAndFunctions/TestComponent.builder.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Whitespace_BetweenElementAndFunctions/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Whitespace_BetweenElementAndFunctions/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/Whitespace_BetweenElementAndFunctions/TestComponent.decl.mappings.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/AfterTag/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/AfterTag/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/DefineAndUndef/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/DefineAndUndef/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/DisabledText_01/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/DisabledText_01/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/IfDefAndPragma/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/IfDefAndPragma/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_01/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_01/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_02/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_02/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_03/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_03/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_04/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_04/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_05/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_05/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_06/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_06/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_07/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_07/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_08/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_08/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_09/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_09/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_10/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/MisplacedEndingDirective_10/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/PassParseOptionsThrough_01/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/PassParseOptionsThrough_01/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/PassParseOptionsThrough_02/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/PassParseOptionsThrough_02/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_01/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_01/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_02/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_02/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_03/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_03/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_04/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_04/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_05/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_05/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_06/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_06/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_07/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_07/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_08/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_08/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_09/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_09/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_10/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_10/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_11/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_11/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_12/TestComponent.decl.codegen.cs create mode 100644 src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentPreprocessorDirectiveTest/StartOfLine_12/TestComponent.decl.ir.txt create mode 100644 src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/DefaultRazorDeclCSharpLoweringPhase.cs create mode 100644 src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/DefaultRazorMarkupSplitPhase.cs create mode 100644 src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/MarkupSplitter.Analysis.cs create mode 100644 src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/MarkupSplitter.Classify.cs create mode 100644 src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/MarkupSplitter.Slicing.cs create mode 100644 src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/MarkupSplitter.cs create mode 100644 src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/RazorCSharpDocumentWriter.cs create mode 100644 src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/SplitDecision.cs create mode 100644 src/Razor/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests/TestFiles/RazorSourceGeneratorComponentTests/EmptyRootNamespace/Component2_razor.decl.g.cs create mode 100644 src/Razor/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests/TestFiles/RazorSourceGeneratorComponentTests/EmptyRootNamespace/Component3_razor.decl.g.cs create mode 100644 src/Razor/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests/TestFiles/RazorSourceGeneratorComponentTests/EmptyRootNamespace/Shared/Component1_razor.decl.g.cs create mode 100644 src/Razor/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests/TestFiles/RazorSourceGeneratorComponentTests/ImportsRazor/Folder1/Component1_razor.decl.g.cs create mode 100644 src/Razor/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests/TestFiles/RazorSourceGeneratorComponentTests/ImportsRazor/Folder2/Component2_razor.decl.g.cs create mode 100644 src/Razor/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests/TestFiles/RazorSourceGeneratorComponentTests/Inject/Shared/Component1_razor.decl.g.cs create mode 100644 src/Razor/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests/TestFiles/RazorSourceGeneratorComponentTests/LineMapping/Shared/Component1_razor.decl.g.cs create mode 100644 src/Razor/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests/TestFiles/RazorSourceGeneratorComponentTests/LineMapping_Tabs/Shared/Component1_razor.decl.g.cs create mode 100644 src/Razor/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests/TestFiles/RazorSourceGeneratorComponentTests/ScriptTag_WithVariable/7/Shared/Component1_razor.decl.g.cs create mode 100644 src/Razor/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests/TestFiles/RazorSourceGeneratorComponentTests/ScriptTag_WithVariable/8/Shared/Component1_razor.decl.g.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/OnAutoInsert/CohostOnAutoInsertTriggerCharacterProviders.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/AbstractFilePathService.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/AutoInsert/AutoInsertService.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/AutoInsert/IAutoInsertService.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/AutoInsert/IOnAutoInsertTriggerCharacterProvider.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Completion/LspRazorCompletionFactsService.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/DocumentMapping/IDocumentMappingServiceExtensions.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/DocumentMapping/RangeComparer.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/DocumentMapping/RazorEditService_WorkspaceEdit.cs create mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Extensions/DocumentUriExtensions.cs create mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Formatting/CSharpFormattingOptionsHelper.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/GoToDefinition/AbstractDefinitionService.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/IFilePathService.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/ITagHelperSearchEngine.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/DocumentContext.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/IDocumentSnapshot.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/IProjectSnapshot.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/ISolutionQueryOperations.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Tooltip/AbstractComponentAvailabilityService.cs rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/AutoInsert/AutoClosingTagOnAutoInsertProvider.cs (97%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/AutoInsert/CloseTextTagOnAutoInsertProvider.cs (90%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/AutoInsert/IOnAutoInsertProvider.cs (76%) delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/AutoInsert/OOPAutoInsertService.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/AutoInsert/RemoteOnAutoInsertProviders.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/CodeActions/CSharp/UnformattedRemappingCSharpCodeActionResolver.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/CodeActions/Razor/IRoslynCodeActionHelpers.cs rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/AggregateCompletionItemResolver.cs (94%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/AttributeCompletionContext.cs (96%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/AttributeCompletionResult.cs (95%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/BlazorDataAttributeCompletionItemProvider.cs (94%) create mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Completion/CSharpCompletionItemFormatter.cs rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/CSharpRazorKeywordCompletionItemProvider.cs (92%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/CompletionContextHelper.cs (98%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/CompletionItemResolver.cs (80%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/CompletionReason.cs (77%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/CompletionSortTextHelper.cs (93%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/DirectiveAttributeCompletionContext.cs (94%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/DirectiveAttributeCompletionItemProvider.AttributeCompletionDetails.cs (93%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/DirectiveAttributeCompletionItemProvider.cs (97%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/DirectiveAttributeCompletionItemProviderBase.cs (98%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/DirectiveAttributeEventParameterCompletionItemProvider.cs (85%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/DirectiveAttributeTransitionCompletionItemProvider.cs (92%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/DirectiveCompletionItemProvider.cs (96%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/ElementCompletionContext.cs (96%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/ElementCompletionResult.cs (95%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlAttributeGroups.Shared.g.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlAttributeGroups.Unique.g.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlAttributeInfo.g.cs (97%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlAttributeKind.g.cs (93%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlAttributeValueGroups.Shared.g.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlAttributeValueGroups.Unique.g.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlAttributes.Shared.g.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlAttributes.Unique.g.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlCompletionData.g.cs (96%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlDescriptions.g.cs (86%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlElementGroups.Shared.g.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlElementGroups.Unique.g.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlElementInfo.g.cs (98%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlElementKind.g.cs (90%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/Generated/HtmlElements.All.g.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/HtmlCompletionImageMonikers.cs (95%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/LocalHtmlCompletionProvider.EntityCompletion.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/LocalHtmlCompletionProvider.PositionContext.cs (90%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/LocalHtmlCompletionProvider.PositionKind.cs (84%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/LocalHtmlCompletionProvider.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/LocalHtmlCompletionProvider_Fallback.cs (98%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/Html/LocalHtmlCompletionResolveContext.cs (96%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/IRazorCompletionFactsService.cs (80%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/IRazorCompletionItemProvider.cs (75%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/ITagHelperCompletionService.cs (87%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/MarkupTransitionCompletionItemProvider.cs (91%) delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Completion/OOPRazorCompletionFactsService.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Completion/OOPRazorCompletionItemProviders.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Completion/OOPRazorCompletionListProvider.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Completion/OOPTagHelperCompletionService.cs rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/RazorCompletionContext.cs (91%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces/Completion/AbstractRazorCompletionFactsService.cs => Microsoft.CodeAnalysis.Remote.Razor/Completion/RazorCompletionFactsService.cs} (92%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/RazorCompletionItemResolver.cs (97%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/RazorCompletionListProvider.cs (97%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/RazorCompletionResolveContext.cs (75%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/TagHelperCompletionProvider.cs (98%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Completion/TagHelperCompletionService.cs (98%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/DocumentMapping/DefaultDocumentPositionInfoStrategy.cs (85%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces/DocumentMapping/AbstractDocumentMappingService.cs => Microsoft.CodeAnalysis.Remote.Razor/DocumentMapping/DocumentMappingService.cs} (78%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/DocumentMapping/IDocumentMappingService.cs (57%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/DocumentMapping/IDocumentPositionInfoStrategy.cs (76%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/DocumentMapping/IRazorEditService.cs (85%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/DocumentMapping/IRazorEditServiceExtensions.cs (81%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/DocumentMapping/MappingBehavior.cs (95%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/DocumentMapping/PreferAttributeNameDocumentPositionInfoStrategy.cs (92%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/DocumentMapping/PreferHtmlInAttributeValuesDocumentPositionStrategy.cs (95%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/DocumentMapping/RazorEditService.CSharpMember.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/DocumentMapping/RazorEditService.cs (86%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/DocumentMapping/RazorEditService_Members.cs (97%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/DocumentMapping/RazorEditService_UsingDirectives.cs (98%) create mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/DocumentMapping/RazorEditService_WorkspaceEdit.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/DocumentMapping/RemoteDocumentMappingService.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/DocumentMapping/RemoteRazorEditService.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/FindAllReferences/FindAllReferencesHelper.cs rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/CSharpFormatter.cs (89%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/FormattedDocument.cs (84%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/FormattingBlockKind.cs (85%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/FormattingContext.cs (89%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/FormattingLogger.cs (95%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/FormattingLoggerFactory.cs (88%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/FormattingSpan.cs (93%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/FormattingSpanKind.cs (81%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/FormattingUtilities.cs (95%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/FormattingVisitor.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/IFormattingLogger.cs (86%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/IFormattingLoggerFactory.cs (84%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/IFormattingPass.cs (88%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/IFormattingValidationPass.cs (88%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/IRazorFormattingService.cs (76%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/IndentCache.cs (98%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/IndentationContext.cs (95%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/LineInfo.cs (97%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/Passes/CSharpFormattingPass.CSharpDocumentGenerator.cs (96%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/Passes/CSharpFormattingPass.cs (77%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/Passes/CSharpOnTypeFormattingPass.cs (86%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/Passes/FormattingContentValidationPass.cs (97%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/Passes/FormattingDiagnosticValidationPass.cs (98%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/Passes/HtmlFormattingPass.cs (94%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/Passes/HtmlOnTypeFormattingPass.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/Passes/RazorFormattingPass.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/Passes/RoslynWorkspaceHelper.cs (82%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/RazorFormattingService.cs (83%) delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Formatting/RemoteFormattingLoggerFactory.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/Formatting/RemoteRazorFormattingService.cs rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Formatting/SnippetFormatter.cs (97%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/GoToDefinition/IDefinitionService.cs (70%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/GoToDefinition/RazorComponentDefinitionHelpers.cs (91%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Hover/HoverDisplayOptions.cs (91%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Hover/HoverFactory.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/IRazorComponentSearchEngine.cs (63%) create mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/ITagHelperSearchEngine.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/ProjectSystem/RemoteDocumentContext.cs rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces/ProjectSystem/IDocumentSnapshotExtensions.cs => Microsoft.CodeAnalysis.Remote.Razor/ProjectSystem/RemoteDocumentSnapshotExtensions.cs} (82%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/RazorComponentSearchEngine.cs (81%) delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/RemoteFilePathService.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/RemoteRazorComponentSearchEngine.cs rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/HtmlDescriptions.resx (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.cs.xlf (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.de.xlf (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.es.xlf (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.fr.xlf (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.it.xlf (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.ja.xlf (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.ko.xlf (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.pl.xlf (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.pt-BR.xlf (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.ru.xlf (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.tr.xlf (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.zh-Hans.xlf (100%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Resources/xlf/HtmlDescriptions.zh-Hant.xlf (100%) delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/SemanticTokens/CSharpSemanticTokensProvider.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/SemanticTokens/ICSharpSemanticTokensProvider.cs rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Tooltip/ClassifiedTagHelperTooltipFactory.cs (98%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Tooltip/DocCommentHelpers.cs (99%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Tooltip/Extensions.cs (87%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Tooltip/IComponentAvailabilityService.cs (72%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Tooltip/MarkupTagHelperTooltipFactory.cs (98%) rename src/Razor/src/Razor/src/{Microsoft.CodeAnalysis.Razor.Workspaces => Microsoft.CodeAnalysis.Remote.Razor}/Tooltip/TypeNameStringResolver.cs (96%) delete mode 100644 src/Razor/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/VisualStudioFilePathService.cs delete mode 100644 src/Razor/src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Services/VSCodeFilePathService.cs rename src/Razor/src/Razor/test/{Microsoft.AspNetCore.Razor.Test.Common.Tooling => Microsoft.AspNetCore.Razor.Test.Common.Cohosting}/Formatting/TestFormattingLoggerFactory.cs (97%) delete mode 100644 src/Razor/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common.Tooling/ProjectSystem/TestDocumentSnapshot.cs create mode 100644 src/Razor/src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common.Tooling/Workspaces/RazorProjectBuilder.DeterministicRazorSourceGeneratorReference.cs delete mode 100644 src/Razor/src/Razor/test/Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests/DocumentExcerpt/DocumentExcerptServiceTestBase.cs create mode 100644 src/Razor/src/Razor/test/Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests/DocumentUriExtensionsTest.cs delete mode 100644 src/Razor/src/Razor/test/Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests/FilePathServiceTest.cs delete mode 100644 src/Razor/src/Razor/test/Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests/Tooltip/TestComponentAvailabilityService.cs rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/BlazorDataAttributeCompletionItemProviderTest.cs (95%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/CSharpRazorKeywordCompletionItemProviderTests.cs (95%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/DefaultRazorCompletionFactsServiceTest.cs (86%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/DirectiveAttributeCompletionItemProviderBaseTest.cs (98%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/DirectiveAttributeCompletionItemProviderTest.AttributeNames.cs (98%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/DirectiveAttributeCompletionItemProviderTest.ParameterNames.cs (98%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/DirectiveAttributeEventParameterCompletionItemProviderTest.cs (96%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/DirectiveAttributeTransitionCompletionItemProviderTest.cs (98%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/DirectiveCompletionItemProviderTest.cs (98%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/DirectiveVerifier.cs (96%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/LanguageServerTagHelperCompletionServiceTest.cs (99%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/LocalHtmlCompletionProviderTest.cs (99%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/MarkupTransitionCompletionItemProviderTest.cs (97%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/RazorCompletionListProviderTest.cs (99%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Completion/TagHelperCompletionProviderTest.cs (93%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Formatting/FormattingUtilitiesTest.cs (98%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Hover/HoverFactoryTest.cs (99%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Tooltip/ClassifiedTagHelperTooltipFactoryTest.cs (98%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Tooltip/DocCommentHelperTests.cs (99%) rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Tooltip/MarkupTagHelperTooltipFactoryTest.cs (97%) create mode 100644 src/Razor/src/Razor/test/Microsoft.CodeAnalysis.Remote.Razor.UnitTests/Tooltip/TestComponentAvailabilityService.cs rename src/Razor/src/Razor/test/{Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests => Microsoft.CodeAnalysis.Remote.Razor.UnitTests}/Tooltip/TypeNameStringResolverTest.cs (94%) create mode 100644 src/Razor/src/Shared/Microsoft.AspNetCore.Razor.Test.Common/Language/IntegrationTests/BuilderCallDumper.cs create mode 100644 src/Razor/src/Shared/Microsoft.AspNetCore.Razor.Test.Common/Language/RazorCodeDocumentTestExtensions.cs diff --git a/.github/instructions/Razor.instructions.md b/.github/instructions/Razor.instructions.md index 705eb37a3225..ebc0f7172038 100644 --- a/.github/instructions/Razor.instructions.md +++ b/.github/instructions/Razor.instructions.md @@ -40,6 +40,12 @@ their original sub-tree layout `solution.GetDocumentIdsWithFilePath(filePath)` then `solution.GetAdditionalDocument(documentId)`. - **Remote services**: Place the public stub method (calling `RunServiceAsync`) directly above its private implementation method. +- **Formatting options across OOP**: Cohost endpoints must read + `CSharpSyntaxFormattingOptions` from the local Roslyn solution services and include them in + `RazorFormattingOptions` sent to remote formatting consumers. Remote `IClientSettingsManager` + state does not contain the user's C# formatting preferences, so do not reconstruct them OOP. + Resolve the options at the public handler boundary and keep downstream product parameters + non-null. - **Visual Studio options**: Register Razor Advanced settings in `Microsoft.VisualStudio.RazorExtension\UnifiedSettings\razor.registration.json`, localize their UI text in `VSPackage.resx`, read them through `OptionsStorage`, and add remotely consumed diff --git a/.github/memory/testing/razor.md b/.github/memory/testing/razor.md index f2701b4e1977..08c2fb84fedf 100644 --- a/.github/memory/testing/razor.md +++ b/.github/memory/testing/razor.md @@ -14,8 +14,17 @@ Layer-specific test guidance for Razor tooling/compiler tests under `src/Razor`. - Test end-user scenarios, not implementation details. - Verify/helper methods go at the bottom of test files; new test methods go above them. -- New tooling tests go in - `src\Razor\src\Razor\test\Microsoft.VisualStudioCode.RazorExtension.UnitTests` - (Cohosting architecture). +- Shared cohost endpoint tests go in + `src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests` + and must be listed in its `.projitems` file; both the Visual Studio and VS Code + unit-test projects import that suite. - Integration tests using `AdditionalSyntaxTrees` for tag helper discovery must set `UseTwoPhaseCompilation => true` (see `ComponentDiscoveryIntegrationTest`). +- Regenerate baseline-backed compiler tests with a targeted test filter and + `/p:GenerateBaselines=true` on one CoreCLR target framework, then rerun the + tests normally. Two-phase tests can produce `.decl.codegen.cs` and + `.decl.mappings.txt` in addition to implementation and component + `.builder.txt` baselines. +- After Razor compiler tests or their `TestFiles` change, run the complete + affected test project. A successful build does not validate embedded + baseline resources. diff --git a/.github/skills/merge-into-branch/SKILL.md b/.github/skills/merge-into-branch/SKILL.md index b18278df3ece..3ad92b1b909b 100644 --- a/.github/skills/merge-into-branch/SKILL.md +++ b/.github/skills/merge-into-branch/SKILL.md @@ -98,11 +98,42 @@ dotnet run --file eng/generate-compiler-code.cs Review and stage any generated changes before finishing the merge. -#### 3d. Other conflicts +#### 3d. Razor compiler baselines and tests + +If the merge changes files under `src/Razor/src/Compiler`, identify and run every affected test project before presenting the merge as ready. + +If baseline-backed Razor compiler tests or their `TestFiles` change: + +1. Identify the affected fully qualified test names from the changed test methods and baseline directories. +2. Regenerate those baselines on one CoreCLR target framework to avoid concurrent writers: + + ```bash + dotnet test --framework --filter "" -p:GenerateBaselines=true + ``` + + Always use a targeted filter when generating baselines because the unfiltered suite includes `GenerateBaselinesMustBeFalse`, which intentionally fails while generation is enabled. +3. Review all generated changes. Two-phase Razor tests may add or update `.decl.codegen.cs` and `.decl.mappings.txt` alongside `.codegen.cs`, `.mappings.txt`, `.ir.txt`, `.diagnostics.txt`, and component `.builder.txt` files. +4. Rerun the affected tests normally, without `GenerateBaselines=true`. +5. Run the complete affected test project normally so newly added or auto-merged tests are not missed: + + ```bash + dotnet test + ``` + +Common Razor compiler test projects include: + +- `src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Microsoft.AspNetCore.Razor.Language.UnitTests.csproj` +- `src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.UnitTests.csproj` +- `src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor/test/Microsoft.CodeAnalysis.Razor.UnitTests.csproj` +- `src/Razor/src/Compiler/test/Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests/Microsoft.NET.Sdk.Razor.SourceGenerators.UnitTests.csproj` + +An analyzer build is not a substitute for these tests. Do not sign off on the merge until baseline generation has been reviewed and all affected test projects pass. + +#### 3e. Other conflicts Resolve any remaining conflicts carefully using the repo's existing code patterns. Avoid unrelated cleanup or opportunistic edits during the merge. -#### 3e. Validate the merge after conflict resolution +#### 3f. Validate the merge after conflict resolution Before presenting the summary or creating the merge commit, run a validating build with analyzers enabled to make sure the merge did not introduce new issues: @@ -128,9 +159,11 @@ Once all conflicts are resolved and staged, present a concise but specific summa - `.xlf` → accepted ours and updated XLFs - `.resx` → manually merged to preserve all strings and updated XLFs - `src/Compilers` → reran compiler code generation + - Razor compiler tests → regenerated and reviewed affected baselines, reran targeted tests, and ran the complete affected test projects - other files → briefly describe the manual resolution -4. The result of the post-merge validation build/analyzer run. -5. A diff summary using commands such as: +4. The exact post-merge test commands and results, including affected test-project totals. +5. The result of the post-merge validation build/analyzer run. +6. A diff summary using commands such as: ```bash git status --short diff --git a/src/LanguageServer/Protocol/Handler/CallHierarchy/PrepareCallHierarchyHandler.cs b/src/LanguageServer/Protocol/Handler/CallHierarchy/PrepareCallHierarchyHandler.cs index 4042b71601b4..da0b03c6a7d1 100644 --- a/src/LanguageServer/Protocol/Handler/CallHierarchy/PrepareCallHierarchyHandler.cs +++ b/src/LanguageServer/Protocol/Handler/CallHierarchy/PrepareCallHierarchyHandler.cs @@ -30,9 +30,13 @@ public TextDocumentIdentifier GetTextDocumentIdentifier(LSP.CallHierarchyPrepare => request.TextDocument; public async Task HandleRequestAsync(LSP.CallHierarchyPrepareParams request, RequestContext context, CancellationToken cancellationToken) - => await PrepareCallHierarchyAsync(context.GetRequiredDocument(), ProtocolConversions.PositionToLinePosition(request.Position), cancellationToken).ConfigureAwait(false); + { + var document = context.GetRequiredDocument(); + return await PrepareCallHierarchyAsync(document, ProtocolConversions.PositionToLinePosition(request.Position), document.Id, cancellationToken) + .ConfigureAwait(false); + } - internal static async Task PrepareCallHierarchyAsync(Document document, LinePosition linePosition, CancellationToken cancellationToken) + internal static async Task PrepareCallHierarchyAsync(Document document, LinePosition linePosition, DocumentId preferredDocumentId, CancellationToken cancellationToken) { var solution = document.Project.Solution; var position = await document.GetPositionFromLinePositionAsync(linePosition, cancellationToken).ConfigureAwait(false); @@ -47,7 +51,7 @@ public TextDocumentIdentifier GetTextDocumentIdentifier(LSP.CallHierarchyPrepare if (itemDescriptor == null) return null; - var item = await CallHierarchyHelpers.CreateItemAsync(itemDescriptor, solution, preferredDocumentId: document.Id, cancellationToken).ConfigureAwait(false); + var item = await CallHierarchyHelpers.CreateItemAsync(itemDescriptor, solution, preferredDocumentId, cancellationToken).ConfigureAwait(false); return item == null ? null : [item]; } } diff --git a/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensHandler.cs b/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensHandler.cs index 028b16114706..73b112e18348 100644 --- a/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensHandler.cs +++ b/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensHandler.cs @@ -22,7 +22,7 @@ namespace Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens; [ExportCSharpVisualBasicStatelessLspService(typeof(CodeLensHandler)), Shared] [Method(LSP.Methods.TextDocumentCodeLensName)] -internal sealed class CodeLensHandler : ILspServiceDocumentRequestHandler +internal sealed class CodeLensHandler : ILspServiceDocumentRequestHandler { public const string RunTestsCommandIdentifier = "dotnet.test.run"; @@ -42,10 +42,10 @@ public CodeLensHandler(IGlobalOptionService globalOptionService) public LSP.TextDocumentIdentifier GetTextDocumentIdentifier(LSP.CodeLensParams request) => request.TextDocument; - public Task HandleRequestAsync(LSP.CodeLensParams request, RequestContext context, CancellationToken cancellationToken) + public Task HandleRequestAsync(LSP.CodeLensParams request, RequestContext context, CancellationToken cancellationToken) => GetCodeLensAsync(request.TextDocument, context.GetRequiredDocument(), _globalOptionService, cancellationToken); - internal static async Task GetCodeLensAsync(LSP.TextDocumentIdentifier textDocumentIdentifier, Document document, IGlobalOptionService globalOptionService, CancellationToken cancellationToken) + internal static async Task GetCodeLensAsync(LSP.TextDocumentIdentifier textDocumentIdentifier, Document document, IGlobalOptionService globalOptionService, CancellationToken cancellationToken) { var referencesCodeLensEnabled = globalOptionService.GetOption(LspOptionsStorage.LspEnableReferencesCodeLens, document.Project.Language); var testsCodeLensEnabled = globalOptionService.GetOption(LspOptionsStorage.LspEnableTestsCodeLens, document.Project.Language); @@ -200,4 +200,3 @@ private static void AddTestCodeLens( } } } - diff --git a/src/LanguageServer/Protocol/Handler/Highlights/DocumentHighlightHandler.cs b/src/LanguageServer/Protocol/Handler/Highlights/DocumentHighlightHandler.cs index e8e929fe0b4c..5328dcd99336 100644 --- a/src/LanguageServer/Protocol/Handler/Highlights/DocumentHighlightHandler.cs +++ b/src/LanguageServer/Protocol/Handler/Highlights/DocumentHighlightHandler.cs @@ -46,24 +46,19 @@ public DocumentHighlightsHandler(IHighlightingService highlightingService, IGlob if (document == null) return null; - var position = ProtocolConversions.PositionToLinePosition(request.Position); - return await GetHighlightsAsync(_globalOptions, _highlightingService, document, position, cancellationToken).ConfigureAwait(false); - } - - internal static async Task GetHighlightsAsync(IGlobalOptionService globalOptions, IHighlightingService highlightingService, Document document, LinePosition linePosition, CancellationToken cancellationToken) - { + var linePosition = ProtocolConversions.PositionToLinePosition(request.Position); var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); var position = await document.GetPositionFromLinePositionAsync(linePosition, cancellationToken).ConfigureAwait(false); // First check if this is a keyword that needs highlighting. - var keywordHighlights = await GetKeywordHighlightsAsync(highlightingService, document, text, position, cancellationToken).ConfigureAwait(false); + var keywordHighlights = await GetKeywordHighlightsAsync(document, text, position, cancellationToken).ConfigureAwait(false); if (keywordHighlights.Any()) { return [.. keywordHighlights]; } // Not a keyword, check if it is a reference that needs highlighting. - var referenceHighlights = await GetReferenceHighlightsAsync(globalOptions, document, text, position, cancellationToken).ConfigureAwait(false); + var referenceHighlights = await GetReferenceHighlightsAsync(document, text, position, cancellationToken).ConfigureAwait(false); if (referenceHighlights.Any()) { return [.. referenceHighlights]; @@ -73,12 +68,12 @@ public DocumentHighlightsHandler(IHighlightingService highlightingService, IGlob return []; } - private static async Task> GetKeywordHighlightsAsync(IHighlightingService highlightingService, Document document, SourceText text, int position, CancellationToken cancellationToken) + private async Task> GetKeywordHighlightsAsync(Document document, SourceText text, int position, CancellationToken cancellationToken) { var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); var keywordSpans = new List(); - highlightingService.AddHighlights(root, position, keywordSpans, cancellationToken); + _highlightingService.AddHighlights(root, position, keywordSpans, cancellationToken); return keywordSpans.SelectAsArray(highlight => new DocumentHighlight { @@ -87,10 +82,10 @@ private static async Task> GetKeywordHighlight }); } - private static async Task> GetReferenceHighlightsAsync(IGlobalOptionService globalOptions, Document document, SourceText text, int position, CancellationToken cancellationToken) + private async Task> GetReferenceHighlightsAsync(Document document, SourceText text, int position, CancellationToken cancellationToken) { var documentHighlightService = document.GetRequiredLanguageService(); - var options = globalOptions.GetHighlightingOptions(document.Project.Language); + var options = _globalOptions.GetHighlightingOptions(document.Project.Language); var highlights = await documentHighlightService.GetDocumentHighlightsAsync( document, position, diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs index 82d029b7e5ef..25f664b307a0 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable disable @@ -44,11 +44,11 @@ public class MyService // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertSourceMappingsMatchBaseline(compiled.CodeDocument); // We expect this test to generate a bunch of errors. - Assert.True(compiled.CodeDocument.GetCSharpDocument().Diagnostics.Length > 0); + Assert.True(compiled.CodeDocument.GetImplCSharpDocument().Diagnostics.Length > 0); } [Fact] @@ -69,7 +69,7 @@ public class MyApp // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); AssertSourceMappingsMatchBaseline(compiled.CodeDocument); } @@ -101,7 +101,7 @@ public class MyApp // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); AssertSourceMappingsMatchBaseline(compiled.CodeDocument); } @@ -134,7 +134,7 @@ public class MyService // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); AssertSourceMappingsMatchBaseline(compiled.CodeDocument); } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ModelExpressionPassTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ModelExpressionPassTest.cs index cb4bc7f6f5eb..fec33666fd56 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ModelExpressionPassTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ModelExpressionPassTest.cs @@ -21,7 +21,7 @@ protected override void ConfigureProjectEngine(RazorProjectEngineBuilder builder protected override void ConfigureCodeDocumentProcessor(RazorCodeDocumentProcessor processor) { - processor.ExecutePhasesThrough(); + processor.ExecutePhasesThrough(); } [Fact] diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperPassTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperPassTest.cs index 5be323c6aadd..1c6ab7244331 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperPassTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X/test/ViewComponentTagHelperPassTest.cs @@ -20,7 +20,7 @@ protected override void ConfigureProjectEngine(RazorProjectEngineBuilder builder protected override void ConfigureCodeDocumentProcessor(RazorCodeDocumentProcessor processor) { - processor.ExecutePhasesThrough(); + processor.ExecutePhasesThrough(); // We also expect the default tag helper pass to run first. processor.ExecutePass(); diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs index 1572d3636ed3..1fee4023fefc 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/CodeGenerationIntegrationTest.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable disable @@ -43,7 +43,7 @@ public void UsingDirectives() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); var diagnostics = compiled.Compilation.GetDiagnostics().Where(d => d.Severity >= DiagnosticSeverity.Warning); Assert.Equal("The using directive for 'System' appeared previously in this namespace", Assert.Single(diagnostics).GetMessage()); @@ -60,9 +60,9 @@ public void InvalidNamespaceAtEOF() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); - var diagnotics = compiled.CodeDocument.GetCSharpDocument().Diagnostics; + var diagnotics = compiled.CodeDocument.GetImplCSharpDocument().Diagnostics; Assert.Equal("RZ1014", Assert.Single(diagnotics).Id); } @@ -83,10 +83,10 @@ public class MyService // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); // We expect this test to generate a bunch of errors. - Assert.NotEmpty(compiled.CodeDocument.GetCSharpDocument().Diagnostics); + Assert.NotEmpty(compiled.CodeDocument.GetImplCSharpDocument().Diagnostics); } [Fact] @@ -117,7 +117,7 @@ public class MyModel // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -149,7 +149,7 @@ public class MyModel // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -163,9 +163,9 @@ public void MalformedPageDirective() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); - var diagnotics = compiled.CodeDocument.GetCSharpDocument().Diagnostics; + var diagnotics = compiled.CodeDocument.GetImplCSharpDocument().Diagnostics; Assert.Equal("RZ1016", Assert.Single(diagnotics).Id); } @@ -180,7 +180,7 @@ public void Basic() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -203,7 +203,7 @@ public class InputTestTagHelper : {{typeof(TagHelper).FullName}} // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -217,7 +217,7 @@ public void _ViewImports() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -238,7 +238,7 @@ public class MyApp // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); AssertSourceMappingsMatchBaseline(compiled.CodeDocument); } @@ -270,7 +270,7 @@ public class MyApp // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); AssertSourceMappingsMatchBaseline(compiled.CodeDocument); } @@ -303,7 +303,7 @@ public class MyService // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); AssertSourceMappingsMatchBaseline(compiled.CodeDocument); } @@ -320,7 +320,7 @@ public void Model() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -343,7 +343,7 @@ public class InputTestTagHelper : {{typeof(TagHelper).FullName}} // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -364,7 +364,7 @@ public class DivTagHelper : {{typeof(TagHelper).FullName}} // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -378,7 +378,7 @@ public void RazorPagesWithRouteTemplate() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -399,7 +399,7 @@ public class DivTagHelper : {{typeof(TagHelper).FullName}} // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -413,7 +413,7 @@ public void PageWithNamespace() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -427,7 +427,7 @@ public void ViewWithNamespace() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -457,7 +457,7 @@ public class AllTagHelper : {{typeof(TagHelper).FullName}} // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); } [Fact] @@ -471,9 +471,9 @@ public void RazorPageWithNoLeadingPageDirective() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); - var diagnotics = compiled.CodeDocument.GetCSharpDocument().Diagnostics; + var diagnotics = compiled.CodeDocument.GetImplCSharpDocument().Diagnostics; Assert.Equal("RZ3906", Assert.Single(diagnotics).Id); } #endregion diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/InstrumentationPassIntegrationTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/InstrumentationPassIntegrationTest.cs index 322997c72f28..2b1a6905bd53 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/InstrumentationPassIntegrationTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/IntegrationTests/InstrumentationPassIntegrationTest.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable disable @@ -75,7 +75,7 @@ public void BasicTest() // Assert AssertDocumentNodeMatchesBaseline(document.GetDocumentNode()); - var csharpDocument = document.GetCSharpDocument(); + var csharpDocument = document.GetImplCSharpDocument(); AssertCSharpDocumentMatchesBaseline(csharpDocument); Assert.Empty(csharpDocument.Diagnostics); } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ModelExpressionPassTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ModelExpressionPassTest.cs index d42cf992544f..ad8d1810959c 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ModelExpressionPassTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ModelExpressionPassTest.cs @@ -20,7 +20,7 @@ protected override void ConfigureProjectEngine(RazorProjectEngineBuilder builder protected override void ConfigureCodeDocumentProcessor(RazorCodeDocumentProcessor processor) { - processor.ExecutePhasesThrough(); + processor.ExecutePhasesThrough(); } [Fact] diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperPassTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperPassTest.cs index a099ac8940fd..5f80a371648b 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperPassTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/ViewComponentTagHelperPassTest.cs @@ -20,7 +20,7 @@ protected override void ConfigureProjectEngine(RazorProjectEngineBuilder builder protected override void ConfigureCodeDocumentProcessor(RazorCodeDocumentProcessor processor) { - processor.ExecutePhasesThrough(); + processor.ExecutePhasesThrough(); // We also expect the default tag helper pass to run first. processor.ExecutePass(); diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/IntegrationTests/CodeGenerationIntegrationTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/IntegrationTests/CodeGenerationIntegrationTest.cs index a1066966880c..bd93fc069214 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/IntegrationTests/CodeGenerationIntegrationTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/IntegrationTests/CodeGenerationIntegrationTest.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable disable @@ -62,7 +62,7 @@ public void UsingDirectives() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); var diagnostics = compiled.Compilation.GetDiagnostics().Where(d => d.Severity >= DiagnosticSeverity.Warning); @@ -80,10 +80,10 @@ public void InvalidNamespaceAtEOF() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); - var diagnotics = compiled.CodeDocument.GetCSharpDocument().Diagnostics; + var diagnotics = compiled.CodeDocument.GetImplCSharpDocument().Diagnostics; Assert.Equal("RZ1014", Assert.Single(diagnotics).Id); } @@ -106,11 +106,11 @@ public class MyService // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); // We expect this test to generate a bunch of errors. - Assert.NotEmpty(compiled.CodeDocument.GetCSharpDocument().Diagnostics); + Assert.NotEmpty(compiled.CodeDocument.GetImplCSharpDocument().Diagnostics); } [Fact, WorkItem("https://github.com/dotnet/razor/issues/7421")] @@ -125,7 +125,7 @@ public void RazorComment_AdjacentCommentsInCodeBlock() // Assert AssertSyntaxTreeMatchesBaseline(compiled.CodeDocument); AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -159,7 +159,7 @@ public class MyModel // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -194,7 +194,7 @@ public class MyModel // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -214,7 +214,7 @@ @attribute [Serializable] // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); var diagnostics = compiled.Compilation.GetDiagnostics().Where(d => d.Severity >= DiagnosticSeverity.Warning); @@ -232,10 +232,10 @@ public void MalformedPageDirective() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); - var diagnotics = compiled.CodeDocument.GetCSharpDocument().Diagnostics; + var diagnotics = compiled.CodeDocument.GetImplCSharpDocument().Diagnostics; Assert.Equal("RZ1016", Assert.Single(diagnotics).Id); } @@ -250,7 +250,7 @@ public void Basic() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -265,7 +265,7 @@ public void BasicComponent() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -290,7 +290,7 @@ public class InputTestTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelpe // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -305,7 +305,7 @@ public void _ViewImports() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -329,7 +329,7 @@ public class MyApp // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); AssertSourceMappingsMatchBaseline(compiled.CodeDocument); } @@ -363,7 +363,7 @@ public class MyApp // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); AssertSourceMappingsMatchBaseline(compiled.CodeDocument); } @@ -398,7 +398,7 @@ public class MyService // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); AssertSourceMappingsMatchBaseline(compiled.CodeDocument); } @@ -415,7 +415,7 @@ public void Model() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -439,7 +439,7 @@ public class InputTestTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelpe // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -461,7 +461,7 @@ public class DivTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -476,7 +476,7 @@ public void RazorPagesWithRouteTemplate() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertSourceMappingsMatchBaseline(compiled.CodeDocument); AssertLinePragmas(compiled.CodeDocument); } @@ -499,7 +499,7 @@ public class DivTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -514,7 +514,7 @@ public void PageWithNamespace() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -529,7 +529,7 @@ public void ViewWithNamespace() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -560,7 +560,7 @@ public class AllTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -608,7 +608,7 @@ public string Invoke( // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); } @@ -623,10 +623,10 @@ public void RazorPageWithNoLeadingPageDirective() // Assert AssertDocumentNodeMatchesBaseline(compiled.CodeDocument.GetDocumentNode()); - AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(compiled.CodeDocument.GetImplCSharpDocument()); AssertLinePragmas(compiled.CodeDocument); - var diagnotics = compiled.CodeDocument.GetCSharpDocument().Diagnostics; + var diagnotics = compiled.CodeDocument.GetImplCSharpDocument().Diagnostics; Assert.Equal("RZ3906", Assert.Single(diagnotics).Id); } @@ -668,7 +668,7 @@ public class FormTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper // Assert var intermediate = generated.CodeDocument.GetDocumentNode(); - var csharp = generated.CodeDocument.GetCSharpDocument(); + var csharp = generated.CodeDocument.GetImplCSharpDocument(); AssertDocumentNodeMatchesBaseline(intermediate); AssertCSharpDocumentMatchesBaseline(csharp); CompileToAssembly(generated); @@ -711,7 +711,7 @@ public class FormTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper // Assert var intermediate = generated.CodeDocument.GetDocumentNode(); - var csharp = generated.CodeDocument.GetCSharpDocument(); + var csharp = generated.CodeDocument.GetImplCSharpDocument(); AssertDocumentNodeMatchesBaseline(intermediate); AssertCSharpDocumentMatchesBaseline(csharp); CompileToAssembly(generated); @@ -753,7 +753,7 @@ public class FormTagHelper : Microsoft.AspNetCore.Razor.TagHelpers.TagHelper // Assert var intermediate = generated.CodeDocument.GetDocumentNode(); - var csharp = generated.CodeDocument.GetCSharpDocument(); + var csharp = generated.CodeDocument.GetImplCSharpDocument(); AssertDocumentNodeMatchesBaseline(intermediate); AssertCSharpDocumentMatchesBaseline(csharp); CompileToAssembly(generated); @@ -791,7 +791,7 @@ @model TestModel // Assert var intermediate = generated.CodeDocument.GetDocumentNode(); - var csharp = generated.CodeDocument.GetCSharpDocument(); + var csharp = generated.CodeDocument.GetImplCSharpDocument(); AssertDocumentNodeMatchesBaseline(intermediate); AssertCSharpDocumentMatchesBaseline(csharp); CompileToAssembly(generated); @@ -829,7 +829,7 @@ @model TestModel? // Assert var intermediate = generated.CodeDocument.GetDocumentNode(); - var csharp = generated.CodeDocument.GetCSharpDocument(); + var csharp = generated.CodeDocument.GetImplCSharpDocument(); AssertDocumentNodeMatchesBaseline(intermediate); AssertCSharpDocumentMatchesBaseline(csharp); CompileToAssembly(generated); @@ -867,7 +867,7 @@ @model TestModel? // Assert var intermediate = generated.CodeDocument.GetDocumentNode(); - var csharp = generated.CodeDocument.GetCSharpDocument(); + var csharp = generated.CodeDocument.GetImplCSharpDocument(); AssertDocumentNodeMatchesBaseline(intermediate); AssertCSharpDocumentMatchesBaseline(csharp); var compiledAssembly = CompileToAssembly(generated, throwOnFailure: false); @@ -910,7 +910,7 @@ @inherits MyBasePage // Assert var intermediate = generated.CodeDocument.GetDocumentNode(); - var csharp = generated.CodeDocument.GetCSharpDocument(); + var csharp = generated.CodeDocument.GetImplCSharpDocument(); AssertDocumentNodeMatchesBaseline(intermediate); AssertCSharpDocumentMatchesBaseline(csharp); CompileToAssembly(generated); @@ -934,7 +934,7 @@ @inherits MyBase // Assert var intermediate = generated.CodeDocument.GetDocumentNode(); - var csharp = generated.CodeDocument.GetCSharpDocument(); + var csharp = generated.CodeDocument.GetImplCSharpDocument(); AssertDocumentNodeMatchesBaseline(intermediate); AssertCSharpDocumentMatchesBaseline(csharp); CompileToAssembly(generated); @@ -954,7 +954,7 @@ public void InvalidCode_EmptyImplicitExpression() // Assert var intermediate = generated.CodeDocument.GetDocumentNode(); - var csharp = generated.CodeDocument.GetCSharpDocument(); + var csharp = generated.CodeDocument.GetImplCSharpDocument(); AssertDocumentNodeMatchesBaseline(intermediate); AssertCSharpDocumentMatchesBaseline(csharp); AssertSourceMappingsMatchBaseline(generated.CodeDocument); @@ -998,7 +998,7 @@ @inherits MyUtf8PageBase // Assert CompileToAssembly(generated); - var generatedCode = generated.CodeDocument.GetCSharpDocument().Text.ToString(); + var generatedCode = generated.CodeDocument.GetImplCSharpDocument().Text.ToString(); Assert.Contains("u8)", generatedCode); } @@ -1033,7 +1033,7 @@ @inherits MyPageBase // Assert CompileToAssembly(generated); - var generatedCode = generated.CodeDocument.GetCSharpDocument().Text.ToString(); + var generatedCode = generated.CodeDocument.GetImplCSharpDocument().Text.ToString(); Assert.DoesNotContain("u8)", generatedCode); } @@ -1081,7 +1081,7 @@ @using TestNamespace // Assert AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetDocumentNode(), testName: testName); AssertHtmlDocumentMatchesBaseline(RazorHtmlWriter.GetHtmlDocument(generated.CodeDocument), testName: testName); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetCSharpDocument(), testName: testName); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetImplCSharpDocument(), testName: testName); AssertLinePragmas(generated.CodeDocument); AssertSourceMappingsMatchBaseline(generated.CodeDocument, testName: testName); var compiledAssembly = CompileToAssembly(generated, throwOnFailure: false); diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelDirectiveTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelDirectiveTest.cs index 5cea1641268d..b7ff593426e8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelDirectiveTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelDirectiveTest.cs @@ -278,6 +278,6 @@ private RazorCSharpDocument ProcessToCSharp(string source, int warningLevel) importSources: [], tagHelpers: null); - return codeDocument.GetRequiredCSharpDocument(); + return codeDocument.GetRequiredCSharpDocument(declarationDocument: false); } } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelExpressionPassTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelExpressionPassTest.cs index 7cf9a54e39f4..7b016feab3c9 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelExpressionPassTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ModelExpressionPassTest.cs @@ -20,7 +20,7 @@ protected override void ConfigureProjectEngine(RazorProjectEngineBuilder builder protected override void ConfigureCodeDocumentProcessor(RazorCodeDocumentProcessor processor) { - processor.ExecutePhasesThrough(); + processor.ExecutePhasesThrough(); } [Fact] diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperPassTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperPassTest.cs index eeb8cadd6d1a..eb85de03d199 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperPassTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/ViewComponentTagHelperPassTest.cs @@ -20,7 +20,7 @@ protected override void ConfigureProjectEngine(RazorProjectEngineBuilder builder protected override void ConfigureCodeDocumentProcessor(RazorCodeDocumentProcessor processor) { - processor.ExecutePhasesThrough(); + processor.ExecutePhasesThrough(); processor.ExecutePass(); } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentDuplicateAttributeDiagnosticPassTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentDuplicateAttributeDiagnosticPassTest.cs index ec71075998b4..7bd70891a165 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentDuplicateAttributeDiagnosticPassTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentDuplicateAttributeDiagnosticPassTest.cs @@ -169,7 +169,7 @@ private DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) { foreach (var phase in Engine.Phases) { - if (phase is IRazorCSharpLoweringPhase) + if (phase is DefaultRazorCSharpLoweringPhase) { break; } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentMarkupBlockPassTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentMarkupBlockPassTest.cs index e3ec33177d9c..ddc7a4bc3552 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentMarkupBlockPassTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentMarkupBlockPassTest.cs @@ -457,7 +457,7 @@ private DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) { foreach (var phase in Engine.Phases) { - if (phase is IRazorCSharpLoweringPhase) + if (phase is DefaultRazorCSharpLoweringPhase) { break; } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentMarkupEncodingPassTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentMarkupEncodingPassTest.cs index deff81dad5ff..b7b38b7becf2 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentMarkupEncodingPassTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentMarkupEncodingPassTest.cs @@ -215,7 +215,7 @@ private DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) { foreach (var phase in Engine.Phases) { - if (phase is IRazorCSharpLoweringPhase) + if (phase is DefaultRazorCSharpLoweringPhase) { break; } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentWhitespacePassTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentWhitespacePassTest.cs index 09f49a3e9c3d..f9d28af85810 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentWhitespacePassTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Components/ComponentWhitespacePassTest.cs @@ -170,7 +170,7 @@ private DocumentIntermediateNode Lower(RazorCodeDocument codeDocument) { foreach (var phase in Engine.Phases) { - if (phase is IRazorCSharpLoweringPhase) + if (phase is DefaultRazorCSharpLoweringPhase) { break; } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorCSharpLoweringPhaseTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorCSharpLoweringPhaseTest.cs index 02cfcca205fa..0be4b2987de0 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorCSharpLoweringPhaseTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorCSharpLoweringPhaseTest.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; @@ -79,7 +79,7 @@ public void Execute_CollatesIRDocumentDiagnosticsFromSourceDocument() codeDocument = ProjectEngine.ExecutePhase(codeDocument); // Assert - var csharpDocument = codeDocument.GetRequiredCSharpDocument(); + var csharpDocument = codeDocument.GetRequiredImplCSharpDocument(); var diagnostic = Assert.Single(csharpDocument.Diagnostics); Assert.Same(expectedDiagnostic, diagnostic); } @@ -99,7 +99,7 @@ public void Execute_EndToEnd_WritesChecksumAndMarksAutoGenerated() // Act codeDocument = ProjectEngine.ExecutePhase(codeDocument); - var result = codeDocument.GetRequiredCSharpDocument(); + var result = codeDocument.GetRequiredImplCSharpDocument(); // Assert var csharp = result.Text.ToString(); @@ -131,7 +131,7 @@ public void Execute_SHA1_WritesChecksumAndMarksAutoGenerated() // Act codeDocument = ProjectEngine.ExecutePhase(codeDocument); - var result = codeDocument.GetRequiredCSharpDocument(); + var result = codeDocument.GetRequiredImplCSharpDocument(); // Assert var csharp = result.Text.ToString(); @@ -163,7 +163,7 @@ public void WriteDocument_SHA256_WritesChecksumAndMarksAutoGenerated() // Act codeDocument = ProjectEngine.ExecutePhase(codeDocument); - var result = codeDocument.GetRequiredCSharpDocument(); + var result = codeDocument.GetRequiredImplCSharpDocument(); // Assert var csharp = result.Text.ToString(); @@ -201,7 +201,7 @@ public void Execute_Empty_SuppressChecksumTrue_DoesnotWriteChecksum() // Act codeDocument = ProjectEngine.ExecutePhase(codeDocument); - var result = codeDocument.GetRequiredCSharpDocument(); + var result = codeDocument.GetRequiredImplCSharpDocument(); // Assert var csharp = result.Text.ToString(); @@ -234,7 +234,7 @@ public void Execute_WritesNamespace() // Act codeDocument = ProjectEngine.ExecutePhase(codeDocument); - var result = codeDocument.GetRequiredCSharpDocument(); + var result = codeDocument.GetRequiredImplCSharpDocument(); // Assert var csharp = result.Text.ToString(); @@ -281,7 +281,7 @@ public void Execute_WritesClass() // Act codeDocument = ProjectEngine.ExecutePhase(codeDocument); - var result = codeDocument.GetRequiredCSharpDocument(); + var result = codeDocument.GetRequiredImplCSharpDocument(); // Assert var csharp = result.Text.ToString(); @@ -328,7 +328,7 @@ public void Execute_WithNullableContext_WritesClass() // Act codeDocument = ProjectEngine.ExecutePhase(codeDocument); - var result = codeDocument.GetRequiredCSharpDocument(); + var result = codeDocument.GetRequiredImplCSharpDocument(); // Assert var csharp = result.Text.ToString(); @@ -376,7 +376,7 @@ public void Execute_WritesClass_ConstrainedGenericTypeParameters() // Act codeDocument = ProjectEngine.ExecutePhase(codeDocument); - var result = codeDocument.GetRequiredCSharpDocument(); + var result = codeDocument.GetRequiredImplCSharpDocument(); // Assert var csharp = result.Text.ToString(); @@ -423,7 +423,7 @@ public void Execute_WritesMethod() // Act codeDocument = ProjectEngine.ExecutePhase(codeDocument); - var result = codeDocument.GetRequiredCSharpDocument(); + var result = codeDocument.GetRequiredImplCSharpDocument(); // Assert var csharp = result.Text.ToString(); @@ -466,7 +466,7 @@ public void Execute_WritesField() // Act codeDocument = ProjectEngine.ExecutePhase(codeDocument); - var result = codeDocument.GetRequiredCSharpDocument(); + var result = codeDocument.GetRequiredImplCSharpDocument(); // Assert var csharp = result.Text.ToString(); @@ -506,7 +506,7 @@ public void Execute_WritesProperty() // Act codeDocument = ProjectEngine.ExecutePhase(codeDocument); - var result = codeDocument.GetRequiredCSharpDocument(); + var result = codeDocument.GetRequiredImplCSharpDocument(); // Assert var csharp = result.Text.ToString(); diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs index 666d6754a5a6..cbc0752dd786 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorIntermediateNodeLoweringPhaseIntegrationTest.cs @@ -22,7 +22,12 @@ protected override void ConfigureProjectEngine(RazorProjectEngineBuilder builder protected override void ConfigureCodeDocumentProcessor(RazorCodeDocumentProcessor processor) { - processor.ExecutePhasesThrough(); + // Inspect the lowered + resolved IR without the classification wrapping or decl lowering, which + // would reshape the tree the baselines assert on. + processor.ExecutePhasesThroughExcept( + typeof(DefaultRazorDocumentClassifierPhase), + typeof(DefaultRazorDirectiveClassifierPhase), + typeof(DefaultRazorDeclCSharpLoweringPhase)); } [Fact] diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorProjectEngineIntegrationTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorProjectEngineIntegrationTest.cs index b88f5b2e4775..16e3cb730b13 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorProjectEngineIntegrationTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorProjectEngineIntegrationTest.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; @@ -87,7 +87,7 @@ public void Process_GeneratesCodeDocumentWithValidCSharpDocument() var codeDocument = projectEngine.Process(projectItem); // Assert - var csharpDocument = codeDocument.GetRequiredCSharpDocument(); + var csharpDocument = codeDocument.GetRequiredImplCSharpDocument(); Assert.NotNull(csharpDocument); Assert.Empty(csharpDocument.Diagnostics); } @@ -107,7 +107,7 @@ public void Process_EmptyOuterTag_DoesNotReportWarningAtRazorWarningLevel10() var codeDocument = projectEngine.Process(projectItem); // Assert - Assert.Empty(codeDocument.GetRequiredCSharpDocument().Diagnostics); + Assert.Empty(codeDocument.GetRequiredImplCSharpDocument().Diagnostics); } [Fact, WorkItem("https://github.com/dotnet/razor/issues/12810")] @@ -125,7 +125,7 @@ public void Process_EmptyOuterTag_ReportsWarningAtRazorWarningLevel11() var codeDocument = projectEngine.Process(projectItem); // Assert - var diagnostic = Assert.Single(codeDocument.GetRequiredCSharpDocument().Diagnostics); + var diagnostic = Assert.Single(codeDocument.GetRequiredImplCSharpDocument().Diagnostics); Assert.Equal("RZ1022", diagnostic.Id); Assert.Equal(RazorDiagnosticSeverity.Warning, diagnostic.Severity); Assert.Equal(11, diagnostic.WarningLevel); diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorTagHelperBinderPhaseTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorTagHelperBinderPhaseTest.cs index babad081e906..3fefb6c16ab6 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorTagHelperBinderPhaseTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/DefaultRazorTagHelperBinderPhaseTest.cs @@ -987,7 +987,7 @@ public void ComponentDirectiveVisitor_DoesNotMatch_LegacyTagHelpers() } [Fact] - public void ComponentDirectiveVisitor_AddsErrorOnLegacyTagHelperDirectives() + public void ComponentDirectiveVisitor_IgnoresLegacyTagHelperDirectives() { // Arrange var currentNamespace = "SomeProject"; @@ -1013,15 +1013,12 @@ public void ComponentDirectiveVisitor_AddsErrorOnLegacyTagHelperDirectives() visitor.Visit(tree); var results = visitor.GetResults(); - // Assert + // Assert: the component visitor ignores the legacy @tagHelperPrefix -- it applies no prefix and + // still resolves the component. The RZ9978 diagnostic for tag-helper directives in a component is + // emitted during IR lowering, not by this visitor. Assert.Null(visitor.TagHelperPrefix); var result = Assert.Single(results); Assert.Same(componentDescriptor, result); - var erroredNode = tree.Root.DescendantNodes().FirstOrDefault(n => n is CSharpStatementLiteralSyntax); - Assert.NotNull(erroredNode); - var directiveChunkGenerator = (TagHelperPrefixDirectiveChunkGenerator)erroredNode.GetChunkGenerator(); - var diagnostic = Assert.Single(directiveChunkGenerator.Diagnostics); - Assert.Equal("RZ9978", diagnostic.Id); } [Fact] diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Extensions/DefaultTagHelperOptimizationPassTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Extensions/DefaultTagHelperOptimizationPassTest.cs index 3ae3f2c53573..1978eaab7df7 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Extensions/DefaultTagHelperOptimizationPassTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Extensions/DefaultTagHelperOptimizationPassTest.cs @@ -12,7 +12,7 @@ public class DefaultTagHelperOptimizationPassTest : RazorProjectEngineTestBase protected override void ConfigureCodeDocumentProcessor(RazorCodeDocumentProcessor processor) { - processor.ExecutePhasesThrough(); + processor.ExecutePhasesThrough(); } [Fact] diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Extensions/SectionDirectivePassTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Extensions/SectionDirectivePassTest.cs index bd6b67c63b35..17d348fef3a5 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Extensions/SectionDirectivePassTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Extensions/SectionDirectivePassTest.cs @@ -21,7 +21,15 @@ protected override void ConfigureProjectEngine(RazorProjectEngineBuilder builder protected override void ConfigureCodeDocumentProcessor(RazorCodeDocumentProcessor processor) { - processor.ExecutePhasesThrough(); + // Need the document classifier (for the namespace/class/method wrapping the test asserts on) and + // tag-helper rewrite (so legacy markup like

...

is collapsed into HtmlContent rather than + // left as an UnresolvedElement). The directive classifier is skipped because SectionDirectivePass + // is itself an IRazorDirectiveClassifierPass, and the test wants to call its Execute manually + // rather than have the directive classifier convert @section into a SectionIntermediateNode. Decl + // lowering is skipped because it would emit C# for a half-processed tree. + processor.ExecutePhasesThroughExcept( + typeof(DefaultRazorDirectiveClassifierPhase), + typeof(DefaultRazorDeclCSharpLoweringPhase)); } [Fact] diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest_Legacy.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest_Legacy.cs index 2bdf8c718673..f38af4dcbc55 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest_Legacy.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest_Legacy.cs @@ -71,7 +71,7 @@ public void RecordStructs() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -93,7 +93,7 @@ public void ConstantInterpolatedStrings() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -118,7 +118,7 @@ public void ExtendedPropertyPatterns() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -140,7 +140,7 @@ public static string Format() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -162,7 +162,7 @@ public void MixDeclarationsAndVariablesInDeconstruction() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -182,7 +182,7 @@ public void LambdaImprovements() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -210,7 +210,7 @@ public interface IValue path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -239,7 +239,7 @@ public static string GetValue() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -268,7 +268,7 @@ public static string GetValue() """, path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssemblyUsingAppSyntaxTrees(generated); } @@ -295,7 +295,7 @@ public Counter() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -322,14 +322,14 @@ public static string Capture( path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } private void CompileToAssemblyUsingAppSyntaxTrees(CompiledCSharpCode code) { - var generatedCode = code.CodeDocument.GetRequiredCSharpDocument(); + var generatedCode = code.CodeDocument.GetRequiredImplCSharpDocument(); var generatedSyntaxTree = (CSharpSyntaxTree)CSharpSyntaxTree.ParseText( generatedCode.Text, CSharpParseOptions, diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest_Legacy.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest_Legacy.cs index c321dd73950d..c81ef1338f99 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest_Legacy.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest_Legacy.cs @@ -75,7 +75,7 @@ public ValueRef(ref int value) path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -100,7 +100,7 @@ public static string Value() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -128,7 +128,7 @@ public interface IValue path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -149,7 +149,7 @@ public void NumericIntPtr() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -171,7 +171,7 @@ public void UnsignedRightShift() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -194,7 +194,7 @@ public void Utf8StringLiterals() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -214,7 +214,7 @@ public void PatternMatchingOnReadOnlySpanChar() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -247,7 +247,7 @@ public Counter(int value) path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -273,7 +273,7 @@ public Counter() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -299,7 +299,7 @@ public void NewlinesInInterpolations() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -324,7 +324,7 @@ public void ListPatterns() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -350,7 +350,7 @@ public void RawStringLiterals() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -370,7 +370,7 @@ public static string Capture(int value) path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -393,7 +393,7 @@ public void RelaxingShiftOperator() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -419,7 +419,7 @@ public class Decorated path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest_Legacy.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest_Legacy.cs index 41feb3c27dcb..f1192d859a9c 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest_Legacy.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest_Legacy.cs @@ -65,7 +65,7 @@ public static int Sum(ref readonly int value) path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -87,7 +87,7 @@ public void CollectionExpressions() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -110,7 +110,7 @@ public struct Buffer path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -130,7 +130,7 @@ public string Capture() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -152,7 +152,7 @@ public void UsingAliasesForAnyType() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -174,7 +174,7 @@ public class Person(string name) path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -194,7 +194,7 @@ public void LambdaOptionalParameters() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -216,7 +216,7 @@ public class ExperimentalType path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest_Legacy.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest_Legacy.cs index be9f2a927342..2a0ec33ffd1c 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest_Legacy.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest_Legacy.cs @@ -68,7 +68,7 @@ public void EscapeCharacter() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -89,7 +89,7 @@ public void MethodGroupNaturalTypeImprovements() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -130,7 +130,7 @@ public void Dispose() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -163,7 +163,7 @@ public int this[int index] path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -188,7 +188,7 @@ public static async System.Threading.Tasks.Task ReadAsync(int[] values) path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -210,7 +210,7 @@ public interface IValue path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); } @@ -251,7 +251,7 @@ public static string Pick(object value) path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest_Legacy.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest_Legacy.cs index 2ce3938ebe22..338ad6d724e4 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest_Legacy.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest_Legacy.cs @@ -83,7 +83,7 @@ public int Value path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -124,7 +124,7 @@ public partial Example() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -145,7 +145,7 @@ public void StringLiteralsInDataSectionAsUtf8() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); var compiled = CompileToAssembly(generated); @@ -167,7 +167,7 @@ public void UnboundGenericTypesInNameof() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -198,7 +198,7 @@ public int Double() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -219,7 +219,7 @@ public void NullConditionalAssignment() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -252,7 +252,7 @@ public class Counter path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -274,7 +274,7 @@ public void IgnoredDirectivesDoNotBreakCodeGeneration() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); } @@ -300,7 +300,7 @@ public static int Sum(int first = 0, int second = 0) path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest_Legacy.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest_Legacy.cs index 66241f46f64d..ea152f4facbd 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest_Legacy.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest_Legacy.cs @@ -69,7 +69,7 @@ public class Example : IExample path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -94,7 +94,7 @@ public static int GetLength(string? value) path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -119,7 +119,7 @@ public void RecursivePatterns() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -142,7 +142,7 @@ public static async System.Collections.Generic.IAsyncEnumerable Values() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -162,7 +162,7 @@ public void EnhancedUsing() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -185,7 +185,7 @@ public void Ranges() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -209,7 +209,7 @@ public void NullCoalescingAssignment() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -231,7 +231,7 @@ public void AlternativeInterpolatedVerbatimStrings() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -252,7 +252,7 @@ public void StackallocInNestedContexts() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -275,7 +275,7 @@ public static unsafe int SizeOf() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -295,7 +295,7 @@ public void StaticLocalFunctions() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -325,7 +325,7 @@ public readonly int GetValue() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest_Legacy.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest_Legacy.cs index dabdbe325b22..0f38fad6c396 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest_Legacy.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest_Legacy.cs @@ -65,7 +65,7 @@ public void TargetTypedNew() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -91,7 +91,7 @@ public static int GetValue() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -111,7 +111,7 @@ public void LambdaDiscardParameters() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -132,7 +132,7 @@ public void NativeInts() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -156,7 +156,7 @@ void Local() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -180,7 +180,7 @@ private static int Double(int value) path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -211,7 +211,7 @@ public void PatternMatchingImprovements() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -231,7 +231,7 @@ public void StaticLambdas() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -250,7 +250,7 @@ public record Person(string Name); path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -271,7 +271,7 @@ public void TargetTypedConditional() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -299,7 +299,7 @@ public override Derived Clone() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -351,7 +351,7 @@ public static NumberEnumerator GetEnumerator(this Numbers numbers) path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -373,7 +373,7 @@ public static void Initialize() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -401,7 +401,7 @@ public partial string GetValue() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest_Legacy.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest_Legacy.cs index 858bc4a149de..266365554384 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest_Legacy.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest_Legacy.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Collections.Immutable; @@ -136,7 +136,7 @@ public class SlotTagHelper : TagHelper codeDocument); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -164,7 +164,7 @@ private static int CountValues(System.Collections.Generic.List values) path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredImplCSharpDocument()); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -206,7 +206,7 @@ public static class TextValueExtensions path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument(declarationDocument: false)); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } @@ -238,7 +238,7 @@ public void LabeledBreakAndContinue() path: DefaultLegacyFileName); AssertDocumentNodeMatchesBaseline(generated.CodeDocument.GetRequiredDocumentNode()); - AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument()); + AssertCSharpDocumentMatchesBaseline(generated.CodeDocument.GetRequiredCSharpDocument(declarationDocument: false)); AssertCSharpDiagnosticsMatchBaseline(generated.CodeDocument); CompileToAssembly(generated); } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CodeGenerationIntegrationTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CodeGenerationIntegrationTest.cs index 5430df2d9734..0a06a3194d3e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CodeGenerationIntegrationTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/CodeGenerationIntegrationTest.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; @@ -357,7 +357,7 @@ private void RunTest([CallerMemberName] string testName = "") // Assert AssertDocumentNodeMatchesBaseline(codeDocument.GetRequiredDocumentNode(), testName); - AssertCSharpDocumentMatchesBaseline(codeDocument.GetRequiredCSharpDocument(), testName); + AssertCSharpDocumentMatchesBaseline(codeDocument.GetRequiredImplCSharpDocument(), testName); AssertLinePragmas(codeDocument); AssertCSharpDiagnosticsMatchBaseline(codeDocument, testName); } @@ -377,7 +377,7 @@ private void RunTagHelpersTest(TagHelperCollection tagHelpers, [CallerMemberName // Assert AssertDocumentNodeMatchesBaseline(codeDocument.GetRequiredDocumentNode(), testName); - AssertCSharpDocumentMatchesBaseline(codeDocument.GetRequiredCSharpDocument(), testName); + AssertCSharpDocumentMatchesBaseline(codeDocument.GetRequiredImplCSharpDocument(), testName); AssertCSharpDiagnosticsMatchBaseline(codeDocument, testName); } @@ -402,7 +402,7 @@ private void RunDiscoveredTagHelpersTest(Action verifyTagHe // Assert AssertDocumentNodeMatchesBaseline(codeDocument.GetRequiredDocumentNode(), testName); - AssertCSharpDocumentMatchesBaseline(codeDocument.GetRequiredCSharpDocument(), testName); + AssertCSharpDocumentMatchesBaseline(codeDocument.GetRequiredImplCSharpDocument(), testName); AssertCSharpDiagnosticsMatchBaseline(codeDocument, testName); } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentCodeGenerationTestBase.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentCodeGenerationTestBase.cs index e22fc9fb4c37..0bedba536cd8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentCodeGenerationTestBase.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentCodeGenerationTestBase.cs @@ -4,7 +4,9 @@ #nullable disable using System.Globalization; +using System.IO; using System.Linq; +using System.Runtime.CompilerServices; using Microsoft.AspNetCore.Razor.Language.Components; using Microsoft.AspNetCore.Razor.Test.Common; using Microsoft.CodeAnalysis; @@ -35,6 +37,78 @@ protected override string GetDirectoryPath(string testName) return $"TestFiles/IntegrationTests/ComponentCodeGenerationTest/{testName}"; } + /// + /// Shadow of the base CompileToAssembly that, after compiling and verifying no + /// unexpected C# diagnostics, also asserts a .builder.txt baseline: the + /// component's render-tree-builder calls ordered by sequence number (see + /// ). Every test calling CompileToAssembly(generated) + /// picks up the check with no per-test change; pass + /// false to opt a test out (for example + /// one whose generated render operations aren't deterministic across runs). + /// + /// + /// The .codegen.cs / .decl.codegen.cs baselines pin the emitted C# + /// byte-for-byte, so they move under cosmetic reorganization -- which partial half a + /// member lands in, line-pragma layout, whitespace -- that doesn't change what the + /// component renders. The builder baseline is a sequence-ordered projection of just the + /// render operations: it stays put under that reorganization yet still trips on a real + /// change (a different element, a dropped attribute, a renumbered fragment). + /// + protected CompileToAssemblyResult CompileToAssembly( + CompileToCSharpResult cSharpResult, + bool assertBuilderBaseline = true, + [CallerMemberName] string testName = "") + { + var result = RazorIntegrationTestBase.CompileToAssembly(cSharpResult); + if (assertBuilderBaseline) + { + AssertBuilderCallsMatchBaseline(cSharpResult, testName); + } + + return result; + } + + /// + /// Diagnostic-expecting overload: shadowed so call sites that pass expected + /// diagnostics resolve here. The builder-baseline check is skipped because + /// compile-error tests don't emit a meaningful render tree. + /// + protected new CompileToAssemblyResult CompileToAssembly( + CompileToCSharpResult cSharpResult, + params DiagnosticDescription[] expectedDiagnostics) + { + return RazorIntegrationTestBase.CompileToAssembly(cSharpResult, expectedDiagnostics); + } + + private void AssertBuilderCallsMatchBaseline(CompileToCSharpResult cSharpResult, string testName) + { + var dump = BuilderCallDumper.Dump([cSharpResult.Code, cSharpResult.DeclCode]); + + var baselineFilePath = GetBaselineFilePath(cSharpResult.CodeDocument, ".builder.txt", testName); + if (GenerateBaselines.ShouldGenerate) + { + if (dump.Length == 0) + { + // No render-tree-builder calls (e.g. a code-only component) -- nothing to pin. + return; + } + + var baselineFullPath = Path.Combine(TestProjectRoot, baselineFilePath); + Directory.CreateDirectory(Path.GetDirectoryName(baselineFullPath)); + File.WriteAllText(baselineFullPath, dump, new System.Text.UTF8Encoding(encoderShouldEmitUTF8Identifier: true)); + return; + } + + var baselineFile = TestFile.Create(baselineFilePath, GetType().Assembly); + if (!baselineFile.Exists()) + { + // Component emits no builder calls, or its baseline predates this check. + return; + } + + Assert.Equal(baselineFile.ReadAllText(), dump); + } + #region Basics [Fact] @@ -628,7 +702,7 @@ @typeparam TItem AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); CompileToAssembly(generated); - AdditionalSyntaxTrees.Add(Parse(generated.CodeDocument.GetRequiredCSharpDocument().Text)); + AddGeneratedSyntaxTrees(generated); var useGenerated = CompileToCSharp("UseTestComponent.cshtml", cshtmlContent: @" @using Test @@ -706,7 +780,7 @@ @typeparam TItem2 AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); CompileToAssembly(generated); - AdditionalSyntaxTrees.Add(Parse(generated.CodeDocument.GetRequiredCSharpDocument().Text)); + AddGeneratedSyntaxTrees(generated); var useGenerated = CompileToCSharp("UseTestComponent.cshtml", cshtmlContent: @" @using Test @@ -849,7 +923,7 @@ public class Tag : ITag AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); CompileToAssembly(generated); - AdditionalSyntaxTrees.Add(Parse(generated.CodeDocument.GetRequiredCSharpDocument().Text)); + AddGeneratedSyntaxTrees(generated); var useGenerated = CompileToCSharp("UseTestComponent.cshtml", cshtmlContent: @" @using Test @@ -926,7 +1000,7 @@ public class Tag : ITag AssertCSharpDocumentMatchesBaseline(generated.CodeDocument); CompileToAssembly(generated); - AdditionalSyntaxTrees.Add(Parse(generated.CodeDocument.GetRequiredCSharpDocument().Text)); + AddGeneratedSyntaxTrees(generated); var useGenerated = CompileToCSharp("UseTestComponent.cshtml", cshtmlContent: @" @using Test diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs index 267162ecb1e6..e1f643449470 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentDiagnosticRazorIntegrationTest.cs @@ -91,6 +91,23 @@ @tagHelperPrefix th }); } + [Fact] + public void RejectsEmptyTagHelperDirectives() + { + // Even with no content, @addTagHelper/@removeTagHelper/@tagHelperPrefix still report RZ9978 + // ("not valid in a component document"), and the diagnostic spans the directive itself (char 0) + // rather than the (empty) directive content. + var result = CompileToCSharp(""" + @addTagHelper + @removeTagHelper + @tagHelperPrefix + """); + + Assert.Contains(result.RazorDiagnostics, static d => d.Id == "RZ9978" && d.Span.LineIndex == 0 && d.Span.CharacterIndex == 0); + Assert.Contains(result.RazorDiagnostics, static d => d.Id == "RZ9978" && d.Span.LineIndex == 1 && d.Span.CharacterIndex == 0); + Assert.Contains(result.RazorDiagnostics, static d => d.Id == "RZ9978" && d.Span.LineIndex == 2 && d.Span.CharacterIndex == 0); + } + [Fact, WorkItem("https://github.com/dotnet/razor/issues/7271")] public void Component_RazorCommentInStartTagAttributeArea_IsIgnored() { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentRenderModeDirectiveIntegrationTests.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentRenderModeDirectiveIntegrationTests.cs index bb226ab8b698..b5f429f5d8a6 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentRenderModeDirectiveIntegrationTests.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentRenderModeDirectiveIntegrationTests.cs @@ -69,11 +69,15 @@ @rendermode Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer """); CompileToAssembly(compilationResult, - // (13,19): error CS0305: Using the generic type 'TestComponent' requires 1 type arguments - // [global::Test.TestComponent.__PrivateComponentRenderModeAttribute] + // @rendermode on a generic (@typeparam) component generates an attribute decoration that + // references the component without its type argument, plus a nested attribute type that needs + // generic-attribute support. This is a known limitation + // (https://github.com/dotnet/razor/issues/9683): the file-scoped attribute class generated for + // C# 11+ avoids it, but C# 10 still surfaces the raw C# errors against the generated code. + // + // x:\dir\subdir\Test\TestComponent.cshtml(13,19): error CS0305: Using the generic type 'TestComponent' requires 1 type arguments Diagnostic(ErrorCode.ERR_BadArity, "TestComponent").WithArguments("Test.TestComponent", "type", "1").WithLocation(13, 19), - // (31,70): error CS8936: Feature 'generic attributes' is not available in C# 10.0. Please use language version 11.0 or greater. - // private sealed class __PrivateComponentRenderModeAttribute : global::Microsoft.AspNetCore.Components.RenderModeAttribute + // x:\dir\subdir\Test\TestComponent.cshtml(31,70): error CS8936: Feature 'generic attributes' is not available in C# 10.0. Please use language version 11.0 or greater. Diagnostic(ErrorCode.ERR_FeatureNotAvailableInVersion10, "global::Microsoft.AspNetCore.Components.RenderModeAttribute").WithArguments("generic attributes", "11.0").WithLocation(31, 70)); } @@ -248,9 +252,15 @@ @rendermode Foo Assert.Empty(compilationResult.RazorDiagnostics); CompileToAssembly(compilationResult, - // x:\dir\subdir\Test\TestComponent.cshtml(34,101): error CS0103: The name 'Foo' does not exist in the current context - // Foo - Diagnostic(ErrorCode.ERR_NameNotInContext, "Foo").WithArguments("Foo").WithLocation(34, 101), + // On Razor < 11 the @rendermode expression isn't mapped back to source, so a diagnostic on the + // expression reports the generated line/column inside the synthesized ModeImpl helper rather + // than the @rendermode token. This can't be fixed retroactively for those language versions: + // changing the generated code now would make a newer compiler emit different output than the + // shipped VS tooling expects, which breaks hot reload. Mapping was only added for Razor 11+ + // (dotnet/razor#12604). + // + // x:\dir\subdir\Test\TestComponent.cshtml(25,101): error CS0103: The name 'Foo' does not exist in the current context + Diagnostic(ErrorCode.ERR_NameNotInContext, "Foo").WithArguments("Foo").WithLocation(25, 101), // x:\dir\subdir\Test\TestComponent.cshtml(5,12): warning CS0414: The field 'TestComponent.rendermode' is assigned but its value is never used // string rendermode = "Something"; Diagnostic(ErrorCode.WRN_UnreferencedFieldAssg, "rendermode").WithArguments("Test.TestComponent.rendermode").WithLocation(5, 12) diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/MarkupSplitterComponentTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/MarkupSplitterComponentTest.cs new file mode 100644 index 000000000000..74a04f36aaee --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/MarkupSplitterComponentTest.cs @@ -0,0 +1,450 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Microsoft.AspNetCore.Razor.Language.Extensions; +using Microsoft.AspNetCore.Razor.Language.Intermediate; +using Xunit; + +namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests; + +// Verifies the markup splitter against real, fully-lowered component IR (the shape it sees when the +// decl/impl lowering phases run). The whole design rests on class-body markup still being present as +// markup IR nodes at that point and on every class-body child being a kind the splitter can route. +public class MarkupSplitterComponentTest : RazorIntegrationTestBase +{ + internal override RazorFileKind? FileKind => RazorFileKind.Component; + + internal override bool UseTwoPhaseCompilation => true; + + [Fact] + public void MarkupField_FallsBackAndCompiles() + { + // A field initializer with markup can't be lifted (declaration-order side effects), so the file + // falls back and still compiles. + var generated = CompileToCSharp(""" + @code { + private Microsoft.AspNetCore.Components.RenderFragment _frag = @
Hi
; + } + """); + + CompileToAssembly(generated); + } + + [Fact] + public void MarkupMethod_LiftsToImpl_AndCompiles() + { + var generated = CompileToCSharp(""" + @code { + private Microsoft.AspNetCore.Components.RenderFragment Make() => @

Hi

; + } + """); + + // The markup method lifts wholesale to the impl half; the markup-free decl half keeps none of it. + Assert.NotNull(generated.DeclCode); + Assert.DoesNotContain("Make", generated.DeclCode); + Assert.Contains("Make", generated.Code); + + // decl + impl are emitted as partial halves that recombine and compile. + CompileToAssembly(generated); + } + + [Fact] + public void MarkupMethod_AlongsideMarkupFreeMembers_RoutesEachHalf() + { + var generated = CompileToCSharp(""" + @code { + [Microsoft.AspNetCore.Components.Parameter] public int Count { get; set; } + private Microsoft.AspNetCore.Components.RenderFragment Make() => @

Hi

; + } + """); + + // The parameter (descriptor surface) stays in decl; the markup method lifts to impl. + Assert.NotNull(generated.DeclCode); + Assert.Contains("Count", generated.DeclCode); + Assert.DoesNotContain("Make", generated.DeclCode); + Assert.Contains("Make", generated.Code); + + CompileToAssembly(generated); + } + + [Fact] + public void AccessorBodiedMarkupProperty_FallsBackAndCompiles() + { + // A property with markup falls back (a property is descriptor surface that must stay in decl, + // where markup cannot live). The original class-body layout still compiles. + var generated = CompileToCSharp(""" + @code { + public Microsoft.AspNetCore.Components.RenderFragment Foo { get => @
Hi
; } + } + """); + + CompileToAssembly(generated); + } + + [Fact] + public void MarkupInitializerProperty_FallsBackAndCompiles() + { + // Markup in a property (here its initializer) produces a fallback decision. The original + // class-body layout must still compile. + var generated = CompileToCSharp(""" + @code { + public Microsoft.AspNetCore.Components.RenderFragment Foo { get; set; } = @
Hi
; + } + """); + + CompileToAssembly(generated); + } + + [Fact] + public void MultipleMarkupMethods_AllLiftToImplAndCompile() + { + var generated = CompileToCSharp(""" + @code { + private Microsoft.AspNetCore.Components.RenderFragment A() => @

A

; + private Microsoft.AspNetCore.Components.RenderFragment B() => @

B

; + } + """); + + Assert.NotNull(generated.DeclCode); + Assert.DoesNotContain("

A

", generated.DeclCode); + Assert.DoesNotContain("

B

", generated.DeclCode); + Assert.Contains("

A

", generated.Code); + Assert.Contains("

B

", generated.Code); + CompileToAssembly(generated); + } + + [Fact] + public void ConditionalCompilation_AroundMarkupMethod_Compiles() + { + // If a #if/#endif around a lifted member were split across halves, the halves would have + // unbalanced directives and fail to compile. Verify the split keeps each half well-formed. + var generated = CompileToCSharp(""" + @code { + #if true + private Microsoft.AspNetCore.Components.RenderFragment M() => @

Hi

; + #endif + } + """); + + CompileToAssembly(generated); + } + + [Fact] + public void MarkupProperty_FallsBackAndCompiles() + { + var generated = CompileToCSharp(""" + @code { + public Microsoft.AspNetCore.Components.RenderFragment Foo => @
Hello
; + } + """); + + var documentNode = generated.CodeDocument.GetDocumentNode(); + Assert.NotNull(documentNode); + var primaryClass = documentNode.FindPrimaryClass(); + var renderMethod = documentNode.FindPrimaryMethod(); + Assert.NotNull(primaryClass); + Assert.NotNull(renderMethod); + + // A markup property produces a fallback decision on every language version. + var decision = MarkupSplitter.Split(primaryClass, renderMethod, generated.CodeDocument.ParserOptions); + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.MarkupProperty, fallback.Reason); + + // The unrouted output still compiles. + CompileToAssembly(generated); + } + + [Fact] + public void MarkupFreeProperty_WithMarkupMethod_StaysInDeclAndSplits() + { + // A markup-free property is descriptor surface and stays in the decl half (the fast path); the + // markup method that forces the split lifts to impl. + var generated = CompileToCSharp(""" + @code { + [Microsoft.AspNetCore.Components.Parameter] public int Count { get; set; } + private Microsoft.AspNetCore.Components.RenderFragment Make() => @
@Count
; + } + """); + + Assert.NotNull(generated.DeclCode); + Assert.Contains("Count", generated.DeclCode); + Assert.DoesNotContain("Make", generated.DeclCode); + Assert.Contains("Make", generated.Code); + + CompileToAssembly(generated); + } + + [Fact] + public void ExpressionTemplateProperty_SurvivesAsTemplateMarkup_ButFallsBack() + { + var generated = CompileToCSharp(""" + @code { + public Microsoft.AspNetCore.Components.RenderFragment Header => @
Hello
; + } + """); + + var documentNode = generated.CodeDocument.GetDocumentNode(); + Assert.NotNull(documentNode); + var primaryClass = documentNode.FindPrimaryClass(); + var renderMethod = documentNode.FindPrimaryMethod(); + Assert.NotNull(primaryClass); + Assert.NotNull(renderMethod); + + // Invariant: the `@<...>` markup is still an IR node at class-body scope (not pre-lowered to + // __builder C#), and specifically an expression-position TemplateIntermediateNode. + Assert.True(MarkupSplitter.HasClassBodyMarkup(primaryClass, renderMethod)); + var children = MarkupSplitter.CollectClassBodyChildren(primaryClass, renderMethod); + Assert.Contains(children, static c => c is TemplateIntermediateNode); + + // But because the markup is in a property, the file falls back rather than splits. + var decision = MarkupSplitter.Split(primaryClass, renderMethod, generated.CodeDocument.ParserOptions); + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.MarkupProperty, fallback.Reason); + } + + [Fact] + public void PureCSharpCode_HasNoClassBodyMarkup_AndDoesNotSplit() + { + var generated = CompileToCSharp(""" + @code { + private int _count; + private void Increment() => _count++; + } + """); + + var documentNode = generated.CodeDocument.GetDocumentNode(); + Assert.NotNull(documentNode); + var primaryClass = documentNode.FindPrimaryClass(); + var renderMethod = documentNode.FindPrimaryMethod(); + Assert.NotNull(primaryClass); + Assert.NotNull(renderMethod); + + Assert.False(MarkupSplitter.HasClassBodyMarkup(primaryClass, renderMethod)); + Assert.Same( + SplitDecision.NoSplit, + MarkupSplitter.Split(primaryClass, renderMethod, generated.CodeDocument.ParserOptions)); + } + + [Fact] + public void MarkupMethod_WithTypeParam_FallsBackAndCompiles() + { + // A generic component (@typeparam) with a markup method takes the single-document path: the early + // move-based split would give the two partial halves inconsistent arity. Verify it still compiles. + var generated = CompileToCSharp(""" + @typeparam T + @code { + private Microsoft.AspNetCore.Components.RenderFragment Make() => @

Hi

; + } + """); + + CompileToAssembly(generated); + } + + [Fact] + public void MarkupMethod_WithInject_Compiles() + { + // @inject is a document-level directive, not part of the @code class body, so it doesn't prevent + // the markup method from being routed to the impl half. Verify the split halves recombine and + // compile with the injected member present. + var generated = CompileToCSharp(""" + @inject System.IServiceProvider Services + @code { + private Microsoft.AspNetCore.Components.RenderFragment Make() => @

Hi

; + } + """); + + CompileToAssembly(generated); + } + + [Fact] + public void MarkupMethod_InNestedClass_FallsBackAndCompiles() + { + // A type declared inside @code is a single class-body member; when it carries markup (here in a + // method) it can't be lifted -- a nested type may be referenced from the decl half or itself hold + // markup members -- so the component falls back to the single-document path. Verify it compiles. + var generated = CompileToCSharp(""" + @code { + class Nested + { + public Microsoft.AspNetCore.Components.RenderFragment Make() => @

Hi

; + } + } + """); + + var documentNode = generated.CodeDocument.GetDocumentNode(); + Assert.NotNull(documentNode); + var primaryClass = documentNode.FindPrimaryClass(); + var renderMethod = documentNode.FindPrimaryMethod(); + Assert.NotNull(primaryClass); + Assert.NotNull(renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, generated.CodeDocument.ParserOptions); + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.UnsupportedMarkupMember, fallback.Reason); + + CompileToAssembly(generated); + } + + [Fact] + public void MarkupProperty_InNestedClass_FallsBackAndCompiles() + { + // Same as the nested-class method case, but the markup lives in a property of the nested type. The + // nested type still can't be lifted, so the component falls back and compiles. + var generated = CompileToCSharp(""" + @code { + class Nested + { + public Microsoft.AspNetCore.Components.RenderFragment Header => @
Hi
; + } + } + """); + + var documentNode = generated.CodeDocument.GetDocumentNode(); + Assert.NotNull(documentNode); + var primaryClass = documentNode.FindPrimaryClass(); + var renderMethod = documentNode.FindPrimaryMethod(); + Assert.NotNull(primaryClass); + Assert.NotNull(renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, generated.CodeDocument.ParserOptions); + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.UnsupportedMarkupMember, fallback.Reason); + + CompileToAssembly(generated); + } + + [Fact] + public void Inject_AlongsideMarkup_FallsBack() + { + // @inject lowers to a ComponentInjectIntermediateNode (surface, an ExtensionIntermediateNode + // like a template). The splitter can't route it, so a component mixing it with markup falls back. + // A markup *method* is used so the inject is the unambiguous cause (a markup property would fall + // back on its own). + var generated = CompileToCSharp(""" + @inject System.IServiceProvider Services + @code { + private Microsoft.AspNetCore.Components.RenderFragment Make() => @
Hello
; + } + """); + + var documentNode = generated.CodeDocument.GetDocumentNode(); + Assert.NotNull(documentNode); + var primaryClass = documentNode.FindPrimaryClass(); + var renderMethod = documentNode.FindPrimaryMethod(); + Assert.NotNull(primaryClass); + Assert.NotNull(renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, generated.CodeDocument.ParserOptions); + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.UnsupportedClassBodyNode, fallback.Reason); + } + + [Fact] + public void MarkupEdit_InMethodBody_LeavesDeclHalfByteIdentical() + { + // The core value of the split: editing markup (which lives in the impl half) must not perturb the + // decl half, so incremental tag-helper discovery can reuse it. The markup-free `[Parameter]` + // stays in decl; the markup method lives wholly in impl. The two sources differ only in the markup + // on one line, so nothing in decl shifts. + var a = CompileToCSharp(""" + @code { + [Microsoft.AspNetCore.Components.Parameter] public int Count { get; set; } + private Microsoft.AspNetCore.Components.RenderFragment Make() => @
Hello
; + } + """); + + var b = CompileToCSharp(""" + @code { + [Microsoft.AspNetCore.Components.Parameter] public int Count { get; set; } + private Microsoft.AspNetCore.Components.RenderFragment Make() => @Bye; + } + """); + + Assert.NotNull(a.DeclCode); + Assert.NotNull(b.DeclCode); + + // The decl halves are byte-identical despite the differing markup, and neither leaks the markup. + Assert.Equal(a.DeclCode, b.DeclCode); + Assert.DoesNotContain("Hello", a.DeclCode); + Assert.DoesNotContain("Bye", b.DeclCode); + + // The impl halves do differ (that's where the edited markup lives). + Assert.NotEqual(a.Code, b.Code); + } + + [Fact] + public void MarkupEdit_InMethodBody_AddingLines_LeavesDeclHalfByteIdentical() + { + // Same as above but the edit adds lines to the method body (which follows the decl member), to + // confirm the decl half's line mappings don't shift with impl-only growth. + var a = CompileToCSharp(""" + @code { + [Microsoft.AspNetCore.Components.Parameter] public int Count { get; set; } + private void Make(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) + { +
Hello
+ } + } + """); + + var b = CompileToCSharp(""" + @code { + [Microsoft.AspNetCore.Components.Parameter] public int Count { get; set; } + private void Make(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) + { +
Hello
+

An extra line of markup

+ And another + } + } + """); + + Assert.NotNull(a.DeclCode); + Assert.NotNull(b.DeclCode); + Assert.Equal(a.DeclCode, b.DeclCode); + } + + [Fact] + public void LiftedMarkupMethod_ContentIsSourceMappedToRazor() + { + // A diagnostic inside a lifted markup method must map back to the .razor, which relies on the + // method's nodes keeping their source mappings when they move to the impl half. Assert that + // directly: the `@Count` inside the lifted method has a source mapping whose original text (read + // from the .razor) and generated text (read from the impl half) both read "Count" -- so the + // lifted content points at the user's source, not unmapped scaffolding. + var generated = CompileToCSharp(""" + @code { + [Microsoft.AspNetCore.Components.Parameter] public int Count { get; set; } + private Microsoft.AspNetCore.Components.RenderFragment Make() => @
@Count
; + } + """); + + var impl = generated.CodeDocument.GetRequiredImplCSharpDocument(); + var implText = impl.Text.ToString(); + var sourceText = generated.CodeDocument.Source.Text.ToString(); + + Assert.Contains(impl.SourceMappingsSortedByGenerated, m => + Slice(sourceText, m.OriginalSpan) == "Count" && + Slice(implText, m.GeneratedSpan) == "Count"); + } + + [Fact] + public void DeclDocument_IsProducedBeforeTagHelperResolution() + { + // The whole point of the split: the decl half is emitted *before* tag-helper resolution, so + // discovery can consume a resolution-independent, byte-stable decl and stay incremental. Drive the + // pipeline only up to (not including) tag-helper resolution and assert the decl already exists and + // is markup-free -- if decl production ever regressed to run after resolution, this would see null. + var codeDocument = ProcessComponentUpToPhase(""" + @code { + private Microsoft.AspNetCore.Components.RenderFragment Make() => @

Hi

; + } + """); + + var decl = codeDocument.GetDeclCSharpDocument(); + Assert.NotNull(decl); + Assert.DoesNotContain("Make", decl.Text.ToString()); + } + + private static string Slice(string text, SourceSpan span) => text.Substring(span.AbsoluteIndex, span.Length); +} diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/TagHelpersIntegrationTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/TagHelpersIntegrationTest.cs index 1f9d079a175d..705595fd256c 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/TagHelpersIntegrationTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/TagHelpersIntegrationTest.cs @@ -375,7 +375,7 @@ public void MixedNestedStartTagOnlyAndHtmlTagHelpers_AllResolveCorrectly() Assert.Empty(tagHelperNodes[5].FindDescendantNodes()); // beta at top level // The real HTML elements must survive as literal markup, never bound as tag helpers. - var generatedCode = codeDocument.GetRequiredCSharpDocument().Text.ToString(); + var generatedCode = codeDocument.GetRequiredCSharpDocument(declarationDocument: false).Text.ToString(); Assert.Contains("
", generatedCode); Assert.Contains("
", generatedCode); Assert.Contains("plain html", generatedCode); diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Intermediate/IntermediateNodeCloneTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Intermediate/IntermediateNodeCloneTest.cs new file mode 100644 index 000000000000..88bf248d41f3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/Intermediate/IntermediateNodeCloneTest.cs @@ -0,0 +1,321 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text; +using Xunit; + +namespace Microsoft.AspNetCore.Razor.Language.Intermediate; + +// Verifies that IntermediateNode.Clone() produces a faithful deep copy -- every field, child, and +// deep-cloned side reference. The dump used for the comparison reflects over every property rather than +// reusing FormatNode (which writes only the handful of properties chosen for display), so a dropped field +// is caught. +public class IntermediateNodeCloneTest +{ + private readonly RazorProjectEngine _projectEngine = RazorProjectEngine.Create( + RazorConfiguration.Default, + RazorProjectFileSystem.Create(AppContext.BaseDirectory)); + + [Fact] + public void Clone_Component_ProducesFaithfulDeepCopy() + { + var source = """ + @page "/counter" + @using System.Text + @inject System.IServiceProvider Services + @typeparam TItem + +

Hello @Name

+
+

Line1

+ child body +
+ + @code { + [Parameter] public string Name { get; set; } + private int Value = 1; + private void OnClick() { Value++; } + } + """; + + // The tree contains at least one aliased child (a tag helper's unbound HTML attribute), so the + // clone's alias preservation is actually exercised rather than vacuously passing. + var aliasCount = AssertClone(source, RazorFileKind.Component); + Assert.True(aliasCount > 0); + } + + [Fact] + public void Clone_LegacyView_ProducesFaithfulDeepCopy() + { + var source = """ + @using System.Text + + + Test + +
@DateTime.Now
+ @{ var x = 1; } +

value is @x

+ + + """; + + // The tree contains at least one aliased child (a tag helper's unbound HTML attribute), so the + // clone's alias preservation is actually exercised rather than vacuously passing. + var aliasCount = AssertClone(source, RazorFileKind.Legacy); + Assert.True(aliasCount > 0); + } + + [Fact] + public void Clone_EdgeConstructs_ProducesFaithfulDeepCopy() + { + // Malformed directives and markup-element fallback containers are lowered node kinds that the other + // documents don't produce; a malformed @addTagHelper yields a MalformedDirectiveIntermediateNode and + // the mixed literal/expression attribute value yields a MarkupElementIntermediateNode fallback. + var source = """ + @addTagHelper * + body + """; + + var kinds = CollectKinds(Lower(source, RazorFileKind.Legacy)); + Assert.Contains(nameof(MalformedDirectiveIntermediateNode), kinds); + Assert.Contains(nameof(MarkupElementIntermediateNode), kinds); + + AssertClone(source, RazorFileKind.Legacy); + } + + private int AssertClone(string content, RazorFileKind fileKind) + { + var documentNode = Lower(content, fileKind); + + var clone = (DocumentIntermediateNode)documentNode.Clone(); + + Assert.Equal(Dump(documentNode), Dump(clone)); + + // The declaration subtree, options, and code target are shared by reference on purpose. + Assert.Same(documentNode.DeclDocumentNode, clone.DeclDocumentNode); + Assert.Same(documentNode.Options, clone.Options); + Assert.Same(documentNode.Target, clone.Target); + + return AssertAliasesPreserved(documentNode, clone); + } + + // A node-typed property that holds one of the node's own Children is an alias (e.g. + // UnresolvedAttributeIntermediateNode.HtmlAttributeNode == Children[^1]). Cloning must preserve that + // aliasing: the cloned property has to point at the cloned child, not an independent copy. Otherwise the + // clone carries two divergent instances and a phase that mutates one while walking the other sees stale + // state. Walk the original and clone trees in lockstep and assert every alias is preserved by reference. + // Returns the number of aliases verified so a test can assert the tree actually exercised one. + private static int AssertAliasesPreserved(IntermediateNode original, IntermediateNode clone) + { + Assert.Equal(original.GetType(), clone.GetType()); + Assert.Equal(original.Children.Count, clone.Children.Count); + + var aliasCount = 0; + + foreach (var (name, node) in NodeProperties(original)) + { + var index = IndexOfReference(original.Children, node); + if (index < 0) + { + continue; + } + + Assert.Same(clone.Children[index], GetPropertyValue(clone, name)); + aliasCount++; + } + + for (var i = 0; i < original.Children.Count; i++) + { + aliasCount += AssertAliasesPreserved(original.Children[i], clone.Children[i]); + } + + return aliasCount; + } + + // Enumerates the node-typed properties of a node, using the same reflection/exclusion rules as the dump. + private static IEnumerable<(string Name, IntermediateNode Node)> NodeProperties(IntermediateNode node) + { + foreach (var property in node.GetType() + .GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance) + .Where(p => p.CanRead && p.GetIndexParameters().Length == 0) + .OrderBy(p => p.Name, StringComparer.Ordinal)) + { + if (property.Name is "Children" or "Parent" or "DeclDocumentNode") + { + continue; + } + + object? value; + try + { + value = property.GetValue(node); + } + catch + { + continue; + } + + if (value is IntermediateNode childNode) + { + yield return (property.Name, childNode); + } + } + } + + private static IntermediateNode GetPropertyValue(IntermediateNode node, string name) + => (IntermediateNode)node.GetType() + .GetProperty(name, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)! + .GetValue(node)!; + + private static int IndexOfReference(IntermediateNodeCollection children, IntermediateNode node) + { + for (var i = 0; i < children.Count; i++) + { + if (ReferenceEquals(children[i], node)) + { + return i; + } + } + + return -1; + } + + // Collects the distinct node-kind names present in a tree, walking node-typed side references and + // Children, so a test can assert a document actually exercises a given kind. + private static HashSet CollectKinds(IntermediateNode root) + { + var kinds = new HashSet(); + Collect(root); + return kinds; + + void Collect(IntermediateNode node) + { + kinds.Add(node.GetType().Name); + + foreach (var (_, child) in NodeProperties(node)) + { + Collect(child); + } + + foreach (var child in node.Children) + { + Collect(child); + } + } + } + + // Runs the engine phases up to (but not including) tag-helper discovery, producing the lowered but + // still unresolved intermediate tree. + private DocumentIntermediateNode Lower(string content, RazorFileKind fileKind) + { + var source = RazorSourceDocument.Create(content, "test.razor"); + var codeDocument = _projectEngine.CreateCodeDocument(source, fileKind); + + foreach (var phase in _projectEngine.Engine.Phases) + { + if (phase is DefaultRazorTagHelperContextDiscoveryPhase) + { + break; + } + + codeDocument = phase.Execute(codeDocument); + } + + return codeDocument.GetRequiredDocumentNode(); + } + + // Serializes the full state of a node tree: every readable data property, then each deep-cloned side + // reference, then Children. DeclDocumentNode is shared by reference (asserted separately), so it is not + // recursed. + private static string Dump(IntermediateNode root) + { + var builder = new StringBuilder(); + DumpNode(root, builder, depth: 0, activePath: new HashSet()); + return builder.ToString(); + } + + // `activePath` tracks the current recursion stack so a true cycle is broken, while a node reachable from + // two places (incidental sharing) is still dumped fully at each site. That keeps the dump symmetric + // between the original (which may share an instance) and its clone (which deep-copies each reference). + private static void DumpNode(IntermediateNode node, StringBuilder builder, int depth, HashSet activePath) + { + if (!activePath.Add(node)) + { + builder.Append(' ', depth * 2).AppendLine(""); + return; + } + + builder.Append(' ', depth * 2).Append(node.GetType().Name); + + var sideReferences = new List<(string Name, IntermediateNode Node)>(); + + foreach (var property in node.GetType() + .GetProperties(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance) + .Where(p => p.CanRead && p.GetIndexParameters().Length == 0) + .OrderBy(p => p.Name, StringComparer.Ordinal)) + { + if (property.Name is "Children" or "Parent" or "DeclDocumentNode" or "IsLazy") + { + // IsLazy is a content-storage detail: cloning a token materializes its lazy content into an + // eager string, so IsLazy legitimately differs while Content is identical. + continue; + } + + object? value; + try + { + value = property.GetValue(node); + } + catch + { + continue; + } + + if (value is IntermediateNode childNode) + { + sideReferences.Add((property.Name, childNode)); + } + else + { + builder.Append(' ').Append(property.Name).Append('=').Append(Format(value)); + } + } + + builder.AppendLine(); + + foreach (var (name, child) in sideReferences) + { + builder.Append(' ', (depth + 1) * 2).Append('.').Append(name).Append(':').AppendLine(); + DumpNode(child, builder, depth + 2, activePath); + } + + foreach (var child in node.Children) + { + DumpNode(child, builder, depth + 1, activePath); + } + + activePath.Remove(node); + } + + private static string Format(object? value) + { + switch (value) + { + case null: + return "null"; + case string s: + return "\"" + s + "\""; + case IEnumerable enumerable: + var items = enumerable.Cast().Select(Format); + return "[" + string.Join(", ", items) + "]"; + default: + return value.ToString() ?? "null"; + } + } +} diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/MarkupSplitterTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/MarkupSplitterTest.cs new file mode 100644 index 000000000000..716008d95f58 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/MarkupSplitterTest.cs @@ -0,0 +1,685 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Microsoft.AspNetCore.Razor.Language.Extensions; +using Microsoft.AspNetCore.Razor.Language.Intermediate; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.Text; +using Xunit; + +namespace Microsoft.AspNetCore.Razor.Language; + +public class MarkupSplitterTest +{ + private static MethodDeclarationIntermediateNode CreateRenderMethod() + => new() { IsPrimaryMethod = true, Name = "BuildRenderTree" }; + + private static ClassDeclarationIntermediateNode CreatePrimaryClass(params IntermediateNode[] children) + { + var @class = new ClassDeclarationIntermediateNode { IsPrimaryClass = true, Name = "TestComponent" }; + + foreach (var child in children) + { + @class.Children.Add(child); + } + + return @class; + } + + private static CSharpCodeIntermediateNode CreateCSharpCode(string content) + { + var node = new CSharpCodeIntermediateNode(); + node.Children.Add(new CSharpIntermediateToken(content, source: null)); + return node; + } + + [Fact] + public void HasClassBodyMarkup_PureCSharp_ReturnsFalse() + { + var renderMethod = CreateRenderMethod(); + var primaryClass = CreatePrimaryClass( + CreateCSharpCode("[Parameter] public int Count { get; set; }"), + CreateCSharpCode("private void Increment() => Count++;"), + renderMethod); + + Assert.False(MarkupSplitter.HasClassBodyMarkup(primaryClass, renderMethod)); + } + + [Fact] + public void HasClassBodyMarkup_ClassBodyMarkupNode_ReturnsTrue() + { + var renderMethod = CreateRenderMethod(); + var primaryClass = CreatePrimaryClass( + CreateCSharpCode("public RenderFragment Header => "), + new MarkupElementIntermediateNode { TagName = "div" }, + CreateCSharpCode(";"), + renderMethod); + + Assert.True(MarkupSplitter.HasClassBodyMarkup(primaryClass, renderMethod)); + } + + [Fact] + public void HasClassBodyMarkup_SkipsRenderMethodAndSynthesizedHelpers() + { + var renderMethod = CreateRenderMethod(); + + // The render method carries the component's top-level markup as its own children; that markup + // is nested, not a class-body child, so it must not trip the gate. A synthesized helper that + // happens to be markup-shaped must also be skipped. + renderMethod.Children.Add(new MarkupElementIntermediateNode { TagName = "p" }); + + var primaryClass = CreatePrimaryClass( + CreateCSharpCode("private int _count;"), + new MarkupElementIntermediateNode { TagName = "span", IsSynthesizedHelper = true }, + renderMethod); + + Assert.False(MarkupSplitter.HasClassBodyMarkup(primaryClass, renderMethod)); + } + + [Fact] + public void IsClassBodyMarkup_CSharpAndStructuredDeclarations_AreNotMarkup() + { + Assert.False(MarkupSplitter.IsClassBodyMarkup(new CSharpCodeIntermediateNode())); + Assert.False(MarkupSplitter.IsClassBodyMarkup(new FieldDeclarationIntermediateNode { Name = "_f", Type = "int" })); + Assert.False(MarkupSplitter.IsClassBodyMarkup( + new PropertyDeclarationIntermediateNode + { + Name = "P", + Type = new CSharpIntermediateToken("int", source: null), + ExpressionBody = "0", + })); + Assert.False(MarkupSplitter.IsClassBodyMarkup(new MethodDeclarationIntermediateNode())); + } + + [Fact] + public void IsClassBodyMarkup_MarkupNodes_AreMarkup() + { + Assert.True(MarkupSplitter.IsClassBodyMarkup(new MarkupElementIntermediateNode())); + Assert.True(MarkupSplitter.IsClassBodyMarkup(new MarkupBlockIntermediateNode())); + Assert.True(MarkupSplitter.IsClassBodyMarkup(new HtmlContentIntermediateNode())); + } + + [Fact] + public void Split_NoMarkup_ReturnsNoSplit() + { + var renderMethod = CreateRenderMethod(); + var primaryClass = CreatePrimaryClass(CreateCSharpCode("private int _count;"), renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, RazorParserOptions.Default); + + Assert.Same(SplitDecision.NoSplit, decision); + Assert.False(decision.RequiresSplit); + Assert.False(decision.IsFallback); + } + + [Fact] + public void Fallback_IsFallbackAndDoesNotRequireSplit() + { + var decision = SplitDecision.Fallback(FallbackReason.MarkupProperty); + + Assert.True(decision.IsFallback); + Assert.False(decision.RequiresSplit); + Assert.Equal(FallbackReason.MarkupProperty, decision.Reason); + } + + [Fact] + public void CollectClassBodyChildren_PreservesOrderAndExcludesRenderAndSynthesized() + { + var renderMethod = CreateRenderMethod(); + var first = CreateCSharpCode("private int _a;"); + var markup = new MarkupElementIntermediateNode { TagName = "div" }; + var last = CreateCSharpCode("private int _b;"); + var synthesized = new CSharpCodeIntermediateNode { IsSynthesizedHelper = true }; + + var primaryClass = CreatePrimaryClass(first, synthesized, renderMethod, markup, last); + + var collected = MarkupSplitter.CollectClassBodyChildren(primaryClass, renderMethod); + + Assert.Equal(new IntermediateNode[] { first, markup, last }, collected); + } + + + [Fact] + public void BuildAnalysisDocument_PureCSharp_EmitsTextWithNoMarkers() + { + var chunk = CreateCSharpCode("[Parameter] public int Count { get; set; }"); + var analysis = MarkupSplitter.BuildAnalysisDocument([chunk]); + + Assert.Contains("[Parameter] public int Count { get; set; }", analysis.Text); + Assert.DoesNotContain(MarkupSplitter.MarkerMethodName, analysis.Text); + var child = Assert.Single(analysis.Children); + Assert.IsType(child.Node); + Assert.Same(chunk, child.Node); + } + + [Fact] + public void BuildAnalysisDocument_StatementMarkup_EmitsStatementMarker() + { + var before = CreateCSharpCode("void M(RenderTreeBuilder __builder) { "); + var markup = new MarkupElementIntermediateNode { TagName = "ul" }; + var after = CreateCSharpCode(" }"); + + var analysis = MarkupSplitter.BuildAnalysisDocument([before, markup, after]); + + Assert.Contains(MarkupSplitter.MarkerMethodName + "();", analysis.Text); + Assert.Equal(3, analysis.Children.Length); + + var markupChild = analysis.Children[1]; + Assert.True(MarkupSplitter.IsMarkupNode(markupChild.Node)); + Assert.Same(markup, markupChild.Node); + + // Child offsets must index the emitted marker text exactly. + var sliced = analysis.Text.Substring(markupChild.Start, markupChild.Length); + Assert.Equal(MarkupSplitter.MarkerMethodName + "();", sliced); + } + + [Fact] + public void BuildAnalysisDocument_ExpressionTemplate_EmitsExpressionMarker() + { + var before = CreateCSharpCode("public RenderFragment Header => "); + var template = new TemplateIntermediateNode(); + var after = CreateCSharpCode(";"); + + var analysis = MarkupSplitter.BuildAnalysisDocument([before, template, after]); + + var markupChild = analysis.Children[1]; + Assert.True(MarkupSplitter.IsMarkupNode(markupChild.Node)); + + var sliced = analysis.Text.Substring(markupChild.Start, markupChild.Length); + Assert.Equal(MarkupSplitter.MarkerMethodName + "()", sliced); + + // The whole document parses as valid C# (a get-only expression-bodied property). Parse from a + // SourceText to match the product code, which avoids the banned string-based ParseText overload. + var tree = CSharpSyntaxTree.ParseText(SourceText.From(analysis.Text)); + Assert.Empty(tree.GetDiagnostics()); + } + + [Fact] + public void IsExpressionPositionMarkup_OnlyTemplateIsExpression() + { + Assert.True(MarkupSplitter.IsExpressionPositionMarkup(new TemplateIntermediateNode())); + Assert.False(MarkupSplitter.IsExpressionPositionMarkup(new MarkupElementIntermediateNode())); + Assert.False(MarkupSplitter.IsExpressionPositionMarkup(new MarkupBlockIntermediateNode())); + Assert.False(MarkupSplitter.IsExpressionPositionMarkup(new HtmlContentIntermediateNode())); + } + + private static SplitDecision ClassifyChildren(params IntermediateNode[] children) + { + var analysis = MarkupSplitter.BuildAnalysisDocument([.. children]); + return MarkupSplitter.ClassifyFromAnalysis(analysis, CSharpParseOptions.Default); + } + + [Fact] + public void ClassifyFromAnalysis_PureCSharpField_RoutesToDecl() + { + var decision = ClassifyChildren(CreateCSharpCode("private int _n;")); + + var plan = Assert.IsType(decision); + var member = Assert.Single(plan.Members); + Assert.Empty(member.ImplPieces); + Assert.NotEmpty(member.DeclPieces); + } + + [Fact] + public void ClassifyFromAnalysis_MarkupHelperMethod_RoutesToImpl() + { + var decision = ClassifyChildren( + CreateCSharpCode("void M(RenderTreeBuilder __builder) { "), + new MarkupElementIntermediateNode { TagName = "ul" }, + CreateCSharpCode(" }")); + + var plan = Assert.IsType(decision); + var member = Assert.Single(plan.Members); + Assert.Empty(member.DeclPieces); + Assert.NotEmpty(member.ImplPieces); + } + + [Fact] + public void ClassifyFromAnalysis_MarkupExpressionProperty_FallsBack() + { + var decision = ClassifyChildren( + CreateCSharpCode("public RenderFragment Header => "), + new TemplateIntermediateNode(), + CreateCSharpCode(";")); + + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.MarkupProperty, fallback.Reason); + } + + [Fact] + public void ClassifyFromAnalysis_ExplicitInterfaceMarkupProperty_FallsBack() + { + // Any property/indexer with markup produces a fallback decision -- explicit-interface properties + // included. + var decision = ClassifyChildren( + CreateCSharpCode("global::Microsoft.AspNetCore.Components.RenderFragment IFoo.Bar => "), + new TemplateIntermediateNode(), + CreateCSharpCode(";")); + + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.MarkupProperty, fallback.Reason); + } + + [Fact] + public void ClassifyFromAnalysis_MarkupField_FallsBack() + { + // A field's initializer runs in declaration order; lifting it across partials could perturb that, + // so a markup field produces a fallback decision. + var decision = ClassifyChildren( + CreateCSharpCode("private RenderFragment _frag = "), + new TemplateIntermediateNode(), + CreateCSharpCode(";")); + + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.UnsupportedMarkupMember, fallback.Reason); + } + + [Fact] + public void ClassifyFromAnalysis_NestedTypeWithMarkup_FallsBack() + { + // A nested type carrying markup can't be lifted as if it were a method (it may be referenced from + // decl, and its own markup members aren't handled), so it forces fallback. + var decision = ClassifyChildren( + CreateCSharpCode("public class Nested { public RenderFragment View => "), + new TemplateIntermediateNode(), + CreateCSharpCode("; }")); + + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.UnsupportedMarkupMember, fallback.Reason); + } + + [Fact] + public void Split_MarkupField_FallsBack() + { + var renderMethod = CreateRenderMethod(); + var primaryClass = CreatePrimaryClass( + CreateCSharpCode("private RenderFragment _frag = "), + new TemplateIntermediateNode(), + CreateCSharpCode(";"), + renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, ParserOptions(LanguageVersion.CSharp13)); + + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.UnsupportedMarkupMember, fallback.Reason); + } + + [Fact] + public void ClassifyFromAnalysis_MarkupPropertyAmongMembers_FallsBack() + { + // A clean field and a markup method pass, but the trailing markup property forces the whole file + // to fall back rather than route. + var decision = ClassifyChildren( + CreateCSharpCode("[Parameter] public int Count { get; set; } private void Helper(RenderTreeBuilder __builder) { "), + new MarkupElementIntermediateNode { TagName = "div" }, + CreateCSharpCode(" } public RenderFragment Foo => "), + new TemplateIntermediateNode(), + CreateCSharpCode(";")); + + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.MarkupProperty, fallback.Reason); + } + + [Fact] + public void ClassifyFromAnalysis_UnrecoverableBraces_FallsBack() + { + // An unmatched open brace before markup: the class-body close brace goes missing, so the marker + // ends up outside any recoverable member. + var analysis = MarkupSplitter.BuildAnalysisDocument([ + CreateCSharpCode("void M(RenderTreeBuilder __builder) { "), + new MarkupElementIntermediateNode { TagName = "div" }]); + var decision = MarkupSplitter.ClassifyFromAnalysis(analysis, CSharpParseOptions.Default); + + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.UnrecoverableParse, fallback.Reason); + } + + [Fact] + public void SplitCSharpNode_NoCuts_ReturnsSameNode() + { + var node = CreateCSharpCode("private int _a;"); + var pieces = MarkupSplitter.SplitCSharpNode(node, System.Collections.Immutable.ImmutableArray.Empty); + Assert.Same(node, Assert.Single(pieces)); + } + + [Fact] + public void SplitCSharpNode_SingleCut_SplitsContent() + { + var node = CreateCSharpCode("private int _a; void M() {"); + var pieces = MarkupSplitter.SplitCSharpNode(node, [15]); + + Assert.Equal(2, pieces.Length); + Assert.Equal("private int _a;", TokenText(pieces[0])); + Assert.Equal(" void M() {", TokenText(pieces[1])); + } + + [Fact] + public void SliceToken_RecomputesLineAndCharacterAcrossNewline() + { + // A token spanning two source lines, starting at line 3, char 4. + var source = new SourceSpan(filePath: "C.razor", absoluteIndex: 100, lineIndex: 3, characterIndex: 4, length: 12); + var token = new CSharpIntermediateToken("ab\ncdefghij", source); + + // Slice starting after the newline ("cdef...") must land on line 4, char 0. + var sliced = MarkupSplitter.SliceToken(token, localStart: 3, localLength: 4); + + Assert.Equal("cdef", sliced.Content); + var s = sliced.Source!.Value; + Assert.Equal(103, s.AbsoluteIndex); // 100 + 3 + Assert.Equal(4, s.LineIndex); // advanced past one newline + Assert.Equal(0, s.CharacterIndex); // reset after the newline + Assert.Equal(4, s.Length); + Assert.Equal(0, s.LineCount); // "cdef" is single-line: zero line breaks + Assert.Equal(4, s.EndCharacterIndex); + } + + [Fact] + public void SliceToken_SpanningNewline_ReportsOneLineBreak() + { + // A slice that itself crosses a newline reports LineCount 1 (one line break), and its end + // character resets on the new line. + var source = new SourceSpan(filePath: "C.razor", absoluteIndex: 100, lineIndex: 3, characterIndex: 4, length: 12); + var token = new CSharpIntermediateToken("ab\ncdefghij", source); + + var sliced = MarkupSplitter.SliceToken(token, localStart: 0, localLength: 5); // "ab\ncd" + var s = sliced.Source!.Value; + + Assert.Equal("ab\ncd", sliced.Content); + Assert.Equal(3, s.LineIndex); + Assert.Equal(1, s.LineCount); // one newline crossed + Assert.Equal(2, s.EndCharacterIndex); // "cd" -> char 2 on the new line + } + + [Fact] + public void SliceToken_BeforeNewline_KeepsStartLineAndCharacter() + { + var source = new SourceSpan(filePath: "C.razor", absoluteIndex: 100, lineIndex: 3, characterIndex: 4, length: 12); + var token = new CSharpIntermediateToken("ab\ncdefghij", source); + + var sliced = MarkupSplitter.SliceToken(token, localStart: 0, localLength: 2); + + Assert.Equal("ab", sliced.Content); + var s = sliced.Source!.Value; + Assert.Equal(100, s.AbsoluteIndex); + Assert.Equal(3, s.LineIndex); + Assert.Equal(4, s.CharacterIndex); + } + + [Fact] + public void SliceToken_NullSource_ProducesNullSource() + { + var token = new CSharpIntermediateToken("abcdef", source: null); + var sliced = MarkupSplitter.SliceToken(token, 2, 3); + Assert.Equal("cde", sliced.Content); + Assert.Null(sliced.Source); + } + + [Fact] + public void SliceToken_AtCarriageReturnNewlineBoundary_DoesNotOverAdvance() + { + // Slicing exactly between the \r and \n of a \r\n pair must not pull the \n into the preceding + // slice: the second slice's content begins with the \n, so its absolute/line/character must point + // at the \n, not one past it. (Advancing across the prefix used to consume the paired \n even when + // the slice ended on the \r, corrupting the boundary-aligned slice's source mapping.) + var source = new SourceSpan(filePath: "C.razor", absoluteIndex: 100, lineIndex: 3, characterIndex: 4, length: 6); + var token = new CSharpIntermediateToken("ab\r\ncd", source); + + var before = MarkupSplitter.SliceToken(token, localStart: 0, localLength: 3); // "ab\r" + var after = MarkupSplitter.SliceToken(token, localStart: 3, localLength: 3); // "\ncd" + + Assert.Equal("ab\r", before.Content); + Assert.Equal("\ncd", after.Content); + + // The second slice starts at the \n (absolute 103), on the line the \r opened, at character 0 -- + // not skipped past the \n to 104/'c'. + var s = after.Source!.Value; + Assert.Equal(103, s.AbsoluteIndex); + Assert.Equal(4, s.LineIndex); + Assert.Equal(0, s.CharacterIndex); + } + + [Theory] + [InlineData("abc", 0, 3, 3, 0, 3)] // no newline: char advances by 3 + [InlineData("a\nb", 0, 3, 3, 1, 1)] // one \n: line +1, char 1 + [InlineData("a\r\nb", 0, 4, 4, 1, 1)] // \r\n counts once: line +1, char 1 + [InlineData("a\rb", 0, 3, 3, 1, 1)] // lone \r counts as a break + [InlineData("a\r\nb", 0, 2, 2, 1, 0)] // range ends on the \r: lone break, the \n is left for the next slice (not over-advanced) + [InlineData("a\r\nb", 2, 2, 2, 1, 1)] // the matching next slice starts on that \n: it counts as the break for this range + public void AdvanceLocation_CountsLineBreaks(string text, int start, int count, int expectedAbs, int expectedLine, int expectedChar) + { + var (abs, line, ch) = MarkupSplitter.AdvanceLocation(absolute: 0, line: 0, character: 0, text, start, count); + Assert.Equal(expectedAbs, abs); + Assert.Equal(expectedLine, line); + Assert.Equal(expectedChar, ch); + } + + [Fact] + public void IsMarkupNode_RecognizesMarkupKinds() + { + Assert.True(MarkupSplitter.IsMarkupNode(new TemplateIntermediateNode())); + Assert.True(MarkupSplitter.IsMarkupNode(new MarkupElementIntermediateNode())); + Assert.True(MarkupSplitter.IsMarkupNode(new MarkupBlockIntermediateNode())); + Assert.True(MarkupSplitter.IsMarkupNode(new HtmlContentIntermediateNode())); + } + + [Fact] + public void IsMarkupNode_ExcludesCSharpAndSurfaceNodes() + { + // Raw C# and structured/extension members are not routable markup -- crucially an @inject node, + // which (like a template) is an ExtensionIntermediateNode but is surface, not markup. + Assert.False(MarkupSplitter.IsMarkupNode(new CSharpCodeIntermediateNode())); + Assert.False(MarkupSplitter.IsMarkupNode(new FieldDeclarationIntermediateNode { Name = "_f", Type = "int" })); + Assert.False(MarkupSplitter.IsMarkupNode(new MethodDeclarationIntermediateNode())); + Assert.False(MarkupSplitter.IsMarkupNode( + new Components.ComponentInjectIntermediateNode("Foo", "Bar", typeSpan: null, memberSpan: null))); + } + + [Fact] + public void Split_ClassBodyWithInject_FallsBack() + { + // A component whose @code mixes markup with an @inject cannot be split: the inject is surface the + // splitter cannot route, so classification falls back rather than moving it to impl. + var renderMethod = CreateRenderMethod(); + var primaryClass = CreatePrimaryClass( + new Components.ComponentInjectIntermediateNode("Foo", "Bar", typeSpan: null, memberSpan: null), + CreateCSharpCode("void M(RenderTreeBuilder __builder) { "), + new MarkupElementIntermediateNode { TagName = "ul" }, + CreateCSharpCode(" }"), + renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, ParserOptions(LanguageVersion.CSharp13)); + + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.UnsupportedClassBodyNode, fallback.Reason); + } + + [Fact] + public void Split_MarkupHelperMethod_ReturnsSplitPlanRoutedToImpl() + { + var renderMethod = CreateRenderMethod(); + var markup = new MarkupElementIntermediateNode { TagName = "ul" }; + var primaryClass = CreatePrimaryClass( + CreateCSharpCode("void M(RenderTreeBuilder __builder) { "), + markup, + CreateCSharpCode(" }"), + renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, ParserOptions(LanguageVersion.CSharp10)); + + var plan = Assert.IsType(decision); + Assert.True(plan.RequiresSplit); + var member = Assert.Single(plan.Members); + Assert.Empty(member.DeclPieces); + + // The whole method lifts to impl: its C# chunks stay by reference and the markup node is carried + // through untouched. + Assert.Equal(3, member.ImplPieces.Length); + Assert.Same(markup, member.ImplPieces[1]); + } + + [Fact] + public void Split_ClassBodyWithDirective_FallsBack() + { + var renderMethod = CreateRenderMethod(); + var primaryClass = CreatePrimaryClass( + CreateCSharpCode("#nullable enable\n public RenderFragment Header => "), + new TemplateIntermediateNode(), + CreateCSharpCode(";"), + renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, ParserOptions(LanguageVersion.CSharp13)); + + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.ClassBodyHasDirectives, fallback.Reason); + } + + [Theory] + [InlineData("#if DEBUG", true)] + [InlineData(" #pragma warning disable", true)] // leading whitespace before the directive + [InlineData("int x = 1;\n#endif", true)] // directive on a later line + [InlineData("int x = 1;", false)] + [InlineData("var s = \"not # a directive\";", false)] // hash mid-line is not a directive + public void HasPreprocessorDirective_DetectsLineAnchoredHash(string text, bool expected) + { + Assert.Equal(expected, MarkupSplitter.HasPreprocessorDirective(text)); + } + + [Fact] + public void Split_MarkupProperty_FallsBack() + { + // A property with markup cannot stay in the markup-free decl half but must (it is descriptor + // surface), so it produces a fallback decision on every language version. + var renderMethod = CreateRenderMethod(); + var primaryClass = CreatePrimaryClass( + CreateCSharpCode("[Parameter] public RenderFragment Header => "), + new TemplateIntermediateNode(), + CreateCSharpCode(";"), + renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, ParserOptions(LanguageVersion.CSharp13)); + + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.MarkupProperty, fallback.Reason); + } + + [Fact] + public void Split_MarkupFreeProperty_AlongsideMarkupMethod_StaysInDecl() + { + // A markup-free property is descriptor surface and stays in decl; the markup method that forces + // the split lifts to impl. + var renderMethod = CreateRenderMethod(); + var property = CreateCSharpCode("[Parameter] public int Count { get; set; } void M(RenderTreeBuilder __builder) { "); + var primaryClass = CreatePrimaryClass( + property, + new MarkupElementIntermediateNode { TagName = "ul" }, + CreateCSharpCode(" }"), + renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, ParserOptions(LanguageVersion.CSharp13)); + + var plan = Assert.IsType(decision); + Assert.Equal(2, plan.Members.Length); + // The markup-free property stays wholly in decl. + Assert.Empty(plan.Members[0].ImplPieces); + Assert.Contains("Count", TokenText((CSharpCodeIntermediateNode)Assert.Single(plan.Members[0].DeclPieces))); + // The markup method lifts wholly to impl. + Assert.Empty(plan.Members[1].DeclPieces); + Assert.NotEmpty(plan.Members[1].ImplPieces); + } + + [Fact] + public void Split_MarkupProperty_BelowCSharp13_AlsoFallsBack() + { + // The fallback is version-independent: no C# 13 gate anymore. + var renderMethod = CreateRenderMethod(); + var primaryClass = CreatePrimaryClass( + CreateCSharpCode("public RenderFragment Header => "), + new TemplateIntermediateNode(), + CreateCSharpCode(";"), + renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, ParserOptions(LanguageVersion.CSharp10)); + + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.MarkupProperty, fallback.Reason); + } + + [Fact] + public void Split_MarkupMethod_BelowCSharp13_StillSplits() + { + // Only markup properties fall back; a markup method lifts wholesale on any C#. + var renderMethod = CreateRenderMethod(); + var primaryClass = CreatePrimaryClass( + CreateCSharpCode("void M(RenderTreeBuilder __builder) { "), + new MarkupElementIntermediateNode { TagName = "ul" }, + CreateCSharpCode(" }"), + renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, ParserOptions(LanguageVersion.CSharp10)); + + Assert.IsType(decision); + } + + [Fact] + public void Split_UnrecoverableParse_FallsBack() + { + // An unmatched open brace before markup leaves the marker outside any recoverable member. + var renderMethod = CreateRenderMethod(); + var primaryClass = CreatePrimaryClass( + CreateCSharpCode("void M(RenderTreeBuilder __builder) { "), + new MarkupElementIntermediateNode { TagName = "div" }, + renderMethod); + + var decision = MarkupSplitter.Split(primaryClass, renderMethod, ParserOptions(LanguageVersion.CSharp13)); + + var fallback = Assert.IsType(decision); + Assert.Equal(FallbackReason.UnrecoverableParse, fallback.Reason); + } + + [Fact] + public void ClassifyFromAnalysis_MixedMembers_SlicesChunkAndRoutesEachInOrder() + { + // One C# chunk holds a whole field plus the start of a markup method, so it must be sliced at the + // member boundary and each slice routed to its own member. (A markup property produces a fallback + // decision before routing, so routing only sees a markup-free member and a markup method.) + var markup = new MarkupElementIntermediateNode { TagName = "div" }; + var analysis = MarkupSplitter.BuildAnalysisDocument([ + CreateCSharpCode("[Parameter] public int Count { get; set; } private void Helper(RenderTreeBuilder __builder) { "), + markup, + CreateCSharpCode(" }")]); + + var plan = Assert.IsType( + MarkupSplitter.ClassifyFromAnalysis(analysis, CSharpParseOptions.Default)); + var routed = plan.Members; + + Assert.Equal(2, routed.Length); + + // int Count -> decl only, one sliced C# piece. + Assert.Empty(routed[0].ImplPieces); + var countPiece = Assert.IsType(Assert.Single(routed[0].DeclPieces)); + Assert.Contains("int Count", TokenText(countPiece)); + Assert.DoesNotContain("Helper", TokenText(countPiece)); + + // Helper -> impl only, carrying the markup node by reference. + Assert.Empty(routed[1].DeclPieces); + Assert.Contains(routed[1].ImplPieces, p => ReferenceEquals(p, markup)); + } + + private static RazorParserOptions ParserOptions(LanguageVersion version) + => RazorParserOptions.Default.WithCSharpParseOptions( + CSharpParseOptions.Default.WithLanguageVersion(version)); + + private static string TokenText(CSharpCodeIntermediateNode node) + { + var sb = new System.Text.StringBuilder(); + foreach (var child in node.Children) + { + if (child is IntermediateToken token) + { + sb.Append(token.Content); + } + } + + return sb.ToString(); + } +} diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/RazorProjectEngineTest.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/RazorProjectEngineTest.cs index 6d90298f5e78..de2a9e2fe4d6 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/RazorProjectEngineTest.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/RazorProjectEngineTest.cs @@ -37,12 +37,14 @@ private static void AssertDefaultPhases(RazorProjectEngine engine) engine.Phases, 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), + phase => Assert.IsType(phase), + phase => Assert.IsType(phase), + phase => Assert.IsType(phase), phase => Assert.IsType(phase), phase => Assert.IsType(phase)); } diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.codegen.cs index ef662ef1ef6e..dbc3e2bafbb4 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.codegen.cs @@ -29,18 +29,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" - - public static string Capture( - bool condition, - [System.Runtime.CompilerServices.CallerArgumentExpression(nameof(condition))] string? expression = null) - => expression ?? string.Empty; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..99b880161009 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.decl.codegen.cs @@ -0,0 +1,31 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" + + public static string Capture( + bool condition, + [System.Runtime.CompilerServices.CallerArgumentExpression(nameof(condition))] string? expression = null) + => expression ?? string.Empty; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..931efc43c940 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [216] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [216] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static string Capture(\n bool condition,\n [System.Runtime.CompilerServices.CallerArgumentExpression(nameof(condition))] string? expression = null)\n => expression ?? string.Empty;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..136a24d9a81c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.decl.mappings.txt @@ -0,0 +1,15 @@ +Source Location: (7:0,7 [216] x:\dir\subdir\Test\TestComponent.razor) +| + public static string Capture( + bool condition, + [System.Runtime.CompilerServices.CallerArgumentExpression(nameof(condition))] string? expression = null) + => expression ?? string.Empty; +| +Generated Location: (556:18,0 [216] ) +| + public static string Capture( + bool condition, + [System.Runtime.CompilerServices.CallerArgumentExpression(nameof(condition))] string? expression = null) + => expression ?? string.Empty; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.ir.txt index 5556f47e7203..57f019a58477 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.ir.txt @@ -10,5 +10,3 @@ MarkupElement - (228:7,0 [31] x:\dir\subdir\Test\TestComponent.razor) - div CSharpExpression - (234:7,6 [19] x:\dir\subdir\Test\TestComponent.razor) LazyIntermediateToken - (234:7,6 [19] x:\dir\subdir\Test\TestComponent.razor) - CSharp - Capture(1 + 1 == 2) - CSharpCode - (7:0,7 [216] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [216] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static string Capture(\n bool condition,\n [System.Runtime.CompilerServices.CallerArgumentExpression(nameof(condition))] string? expression = null)\n => expression ?? string.Empty;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.mappings.txt index 14c9f429ad83..fa063198ab22 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/CallerExpressionAttribute/TestComponent.mappings.txt @@ -3,18 +3,3 @@ Generated Location: (807:22,24 [19] ) |Capture(1 + 1 == 2)| -Source Location: (7:0,7 [216] x:\dir\subdir\Test\TestComponent.razor) -| - public static string Capture( - bool condition, - [System.Runtime.CompilerServices.CallerArgumentExpression(nameof(condition))] string? expression = null) - => expression ?? string.Empty; -| -Generated Location: (1061:33,0 [216] ) -| - public static string Capture( - bool condition, - [System.Runtime.CompilerServices.CallerArgumentExpression(nameof(condition))] string? expression = null) - => expression ?? string.Empty; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.codegen.cs index 645d7c2aab85..24c595599944 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.codegen.cs @@ -27,16 +27,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. ); } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" - - private const string Name = "Razor"; - private const string Value = $"{Name} Tests"; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..2a6455bd8b31 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.decl.codegen.cs @@ -0,0 +1,29 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" + + private const string Name = "Razor"; + private const string Value = $"{Name} Tests"; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..3d2c1f0794fd --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [95] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [95] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n private const string Name = "Razor";\n private const string Value = $"{Name} Tests";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..0b3431895fb7 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.decl.mappings.txt @@ -0,0 +1,11 @@ +Source Location: (7:0,7 [95] x:\dir\subdir\Test\TestComponent.razor) +| + private const string Name = "Razor"; + private const string Value = $"{Name} Tests"; +| +Generated Location: (556:18,0 [95] ) +| + private const string Name = "Razor"; + private const string Value = $"{Name} Tests"; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.ir.txt index ccd461596a1a..14c16086c2a2 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.ir.txt @@ -9,5 +9,3 @@ MethodDeclaration - - protected override - void - BuildRenderTree CSharpExpression - (109:5,2 [15] x:\dir\subdir\Test\TestComponent.razor) LazyIntermediateToken - (109:5,2 [15] x:\dir\subdir\Test\TestComponent.razor) - CSharp - $"{Name} Tests" - CSharpCode - (7:0,7 [95] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [95] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n private const string Name = "Razor";\n private const string Value = $"{Name} Tests";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.mappings.txt index 313f5604c9e6..025ce703ec0e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ConstantInterpolatedStrings/TestComponent.mappings.txt @@ -3,14 +3,3 @@ Generated Location: (761:21,24 [15] ) |$"{Name} Tests"| -Source Location: (7:0,7 [95] x:\dir\subdir\Test\TestComponent.razor) -| - private const string Name = "Razor"; - private const string Value = $"{Name} Tests"; -| -Generated Location: (972:31,0 [95] ) -| - private const string Name = "Razor"; - private const string Value = $"{Name} Tests"; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ExtendedPropertyPatterns/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ExtendedPropertyPatterns/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ExtendedPropertyPatterns/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ExtendedPropertyPatterns/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ExtendedPropertyPatterns/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ExtendedPropertyPatterns/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/FileScopedNamespace/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/FileScopedNamespace/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/FileScopedNamespace/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/FileScopedNamespace/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/FileScopedNamespace/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/FileScopedNamespace/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/GlobalUsingDirective/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/GlobalUsingDirective/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/GlobalUsingDirective/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/GlobalUsingDirective/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/GlobalUsingDirective/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/GlobalUsingDirective/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/LambdaImprovements/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/LambdaImprovements/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/LambdaImprovements/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/LambdaImprovements/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/LambdaImprovements/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/LambdaImprovements/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/MixDeclarationsAndVariablesInDeconstruction/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/MixDeclarationsAndVariablesInDeconstruction/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/MixDeclarationsAndVariablesInDeconstruction/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/MixDeclarationsAndVariablesInDeconstruction/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/MixDeclarationsAndVariablesInDeconstruction/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/MixDeclarationsAndVariablesInDeconstruction/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.codegen.cs index 19e8584da1ba..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.codegen.cs @@ -19,23 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(11,1) "x:\dir\subdir\Test\TestComponent.razor" - - public struct Counter - { - public int Value { get; } - - public Counter() - { - Value = 1; - } - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..20ff73b1ee1b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.decl.codegen.cs @@ -0,0 +1,36 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(11,1) "x:\dir\subdir\Test\TestComponent.razor" + + public struct Counter + { + public int Value { get; } + + public Counter() + { + Value = 1; + } + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..63cb2067e87d --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [156] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [156] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public struct Counter\n {\n public int Value { get; }\n \n public Counter()\n {\n Value = 1;\n }\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.decl.mappings.txt similarity index 90% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.decl.mappings.txt index 3dc56344f720..f4757be61f56 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.decl.mappings.txt @@ -10,7 +10,7 @@ } } | -Generated Location: (783:23,0 [156] ) +Generated Location: (557:18,0 [156] ) | public struct Counter { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.ir.txt index 00002651d506..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/ParameterlessStructConstructors/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [156] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [156] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public struct Counter\n {\n public int Value { get; }\n \n public Counter()\n {\n Value = 1;\n }\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.codegen.cs index 153db1e2eb5c..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.codegen.cs @@ -19,15 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(3,1) "x:\dir\subdir\Test\TestComponent.razor" - - public readonly record struct Point(int X, int Y); - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..d1e4547da336 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(3,1) "x:\dir\subdir\Test\TestComponent.razor" + + public readonly record struct Point(int X, int Y); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..a2c9973e8256 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [58] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [58] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public readonly record struct Point(int X, int Y);\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.decl.mappings.txt similarity index 83% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.decl.mappings.txt index 2f3f3cf2750f..7fe27282033a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.decl.mappings.txt @@ -2,7 +2,7 @@ | public readonly record struct Point(int X, int Y); | -Generated Location: (782:23,0 [58] ) +Generated Location: (556:18,0 [58] ) | public readonly record struct Point(int X, int Y); | diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.ir.txt index dc5882e17f37..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/RecordStructs/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [58] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [58] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public readonly record struct Point(int X, int Y);\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.codegen.cs index 584fa0ae9a6d..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.codegen.cs @@ -19,18 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" - - public sealed record Person(string Name); - - public static string Format() - => new Person("Razor").ToString(); - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..2831b3d43704 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.decl.codegen.cs @@ -0,0 +1,31 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" + + public sealed record Person(string Name); + + public static string Format() + => new Person("Razor").ToString(); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..3de8ebd12635 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [134] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [134] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public sealed record Person(string Name);\n \n public static string Format()\n => new Person("Razor").ToString();\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.decl.mappings.txt similarity index 89% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.decl.mappings.txt index 29bf710c7848..e4fd85728fef 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.decl.mappings.txt @@ -5,7 +5,7 @@ public static string Format() => new Person("Razor").ToString(); | -Generated Location: (782:23,0 [134] ) +Generated Location: (556:18,0 [134] ) | public sealed record Person(string Name); diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.ir.txt index 31f5aaad10ae..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/SealedRecordToString/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [134] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [134] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public sealed record Person(string Name);\n \n public static string Format()\n => new Person("Razor").ToString();\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.codegen.cs index 1cbb8e600dda..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.codegen.cs @@ -19,24 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(12,1) "x:\dir\subdir\Test\TestComponent.razor" - - public interface IValue - where TSelf : IValue - { - static abstract TSelf Zero { get; } - } - - public readonly struct Value : IValue - { - public static Value Zero => new(); - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..68f8c54b2a32 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.decl.codegen.cs @@ -0,0 +1,37 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(12,1) "x:\dir\subdir\Test\TestComponent.razor" + + public interface IValue + where TSelf : IValue + { + static abstract TSelf Zero { get; } + } + + public readonly struct Value : IValue + { + public static Value Zero => new(); + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..c0fbb16bf954 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [248] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [248] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public interface IValue\n where TSelf : IValue\n {\n static abstract TSelf Zero { get; }\n }\n \n public readonly struct Value : IValue\n {\n public static Value Zero => new();\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.decl.mappings.txt similarity index 93% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.decl.mappings.txt index b18ec0acfa1d..e1d5bcd8e56c 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.decl.mappings.txt @@ -11,7 +11,7 @@ public static Value Zero => new(); } | -Generated Location: (783:23,0 [248] ) +Generated Location: (557:18,0 [248] ) | public interface IValue where TSelf : IValue diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.ir.txt index 0368000d12fa..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [248] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [248] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public interface IValue\n where TSelf : IValue\n {\n static abstract TSelf Zero { get; }\n }\n \n public readonly struct Value : IValue\n {\n public static Value Zero => new();\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.codegen.cs index 5e03b9b1580a..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.codegen.cs @@ -19,22 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(10,1) "x:\dir\subdir\Test\TestComponent.razor" - - public struct Counter - { - public int Value; - - public Counter() - { - } - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..b9911bd3a5c5 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.decl.codegen.cs @@ -0,0 +1,35 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(10,1) "x:\dir\subdir\Test\TestComponent.razor" + + public struct Counter + { + public int Value; + + public Counter() + { + } + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..90367541fd42 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [124] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [124] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public struct Counter\n {\n public int Value;\n \n public Counter()\n {\n }\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.decl.mappings.txt similarity index 89% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.decl.mappings.txt index f68605f65900..5de883fe2c91 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.decl.mappings.txt @@ -9,7 +9,7 @@ } } | -Generated Location: (783:23,0 [124] ) +Generated Location: (557:18,0 [124] ) | public struct Counter { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.ir.txt index b78da6d9d224..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/AutoDefaultStructs/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [124] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [124] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public struct Counter\n {\n public int Value;\n \n public Counter()\n {\n }\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.codegen.cs index bb98bac2221b..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.codegen.cs @@ -19,29 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(17,1) "x:\dir\subdir\Test\TestComponent.razor" - - public readonly struct Counter - { - public int Value { get; } - - public Counter(int value) - { - Value = value; - } - - public static Counter operator +(Counter left, Counter right) - => new(left.Value + right.Value); - - public static Counter operator checked +(Counter left, Counter right) - => new(checked(left.Value + right.Value)); - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..55fdfe2377d4 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.decl.codegen.cs @@ -0,0 +1,42 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(17,1) "x:\dir\subdir\Test\TestComponent.razor" + + public readonly struct Counter + { + public int Value { get; } + + public Counter(int value) + { + Value = value; + } + + public static Counter operator +(Counter left, Counter right) + => new(left.Value + right.Value); + + public static Counter operator checked +(Counter left, Counter right) + => new(checked(left.Value + right.Value)); + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..3082815b9b6a --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [443] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [443] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public readonly struct Counter\n {\n public int Value { get; }\n \n public Counter(int value)\n {\n Value = value;\n }\n \n public static Counter operator +(Counter left, Counter right)\n => new(left.Value + right.Value);\n \n public static Counter operator checked +(Counter left, Counter right)\n => new(checked(left.Value + right.Value));\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.decl.mappings.txt similarity index 96% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.decl.mappings.txt index 78bf48f06ef7..3743dcf24697 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.decl.mappings.txt @@ -16,7 +16,7 @@ => new(checked(left.Value + right.Value)); } | -Generated Location: (783:23,0 [443] ) +Generated Location: (557:18,0 [443] ) | public readonly struct Counter { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.ir.txt index c93876aff15c..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/CheckedOperators/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [443] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [443] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public readonly struct Counter\n {\n public int Value { get; }\n \n public Counter(int value)\n {\n Value = value;\n }\n \n public static Counter operator +(Counter left, Counter right)\n => new(left.Value + right.Value);\n \n public static Counter operator checked +(Counter left, Counter right)\n => new(checked(left.Value + right.Value));\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.codegen.cs index 1cbb8e600dda..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.codegen.cs @@ -19,24 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(12,1) "x:\dir\subdir\Test\TestComponent.razor" - - public interface IValue - where TSelf : IValue - { - static abstract TSelf Zero { get; } - } - - public readonly struct Value : IValue - { - public static Value Zero => new(); - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..68f8c54b2a32 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.decl.codegen.cs @@ -0,0 +1,37 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(12,1) "x:\dir\subdir\Test\TestComponent.razor" + + public interface IValue + where TSelf : IValue + { + static abstract TSelf Zero { get; } + } + + public readonly struct Value : IValue + { + public static Value Zero => new(); + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..c0fbb16bf954 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [248] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [248] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public interface IValue\n where TSelf : IValue\n {\n static abstract TSelf Zero { get; }\n }\n \n public readonly struct Value : IValue\n {\n public static Value Zero => new();\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.decl.mappings.txt similarity index 93% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.decl.mappings.txt index b18ec0acfa1d..e1d5bcd8e56c 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp10LanguageFeaturesIntegrationTest/StaticAbstractMembersInInterfaces/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.decl.mappings.txt @@ -11,7 +11,7 @@ public static Value Zero => new(); } | -Generated Location: (783:23,0 [248] ) +Generated Location: (557:18,0 [248] ) | public interface IValue where TSelf : IValue diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.ir.txt index 0368000d12fa..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/DimForStaticMembers/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [248] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [248] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public interface IValue\n where TSelf : IValue\n {\n static abstract TSelf Zero { get; }\n }\n \n public readonly struct Value : IValue\n {\n public static Value Zero => new();\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.codegen.cs index 7f52b2bcb59e..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.codegen.cs @@ -19,22 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(10,1) "x:\dir\subdir\Test\TestComponent.razor" - - public class GenericAttribute : System.Attribute - { - } - - [GenericAttribute] - public class Decorated - { - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..a6d447e15332 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.decl.codegen.cs @@ -0,0 +1,35 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(10,1) "x:\dir\subdir\Test\TestComponent.razor" + + public class GenericAttribute : System.Attribute + { + } + + [GenericAttribute] + public class Decorated + { + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..8052c885ac1f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [153] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [153] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public class GenericAttribute : System.Attribute\n {\n }\n \n [GenericAttribute]\n public class Decorated\n {\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.decl.mappings.txt similarity index 90% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.decl.mappings.txt index 35b0bf084740..36deac77e4d3 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.decl.mappings.txt @@ -9,7 +9,7 @@ { } | -Generated Location: (783:23,0 [153] ) +Generated Location: (557:18,0 [153] ) | public class GenericAttribute : System.Attribute { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.ir.txt index 719c86b3a37a..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/GenericAttributes/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [153] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [153] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public class GenericAttribute : System.Attribute\n {\n }\n \n [GenericAttribute]\n public class Decorated\n {\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/ListPatterns/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/ListPatterns/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/ListPatterns/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/ListPatterns/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/ListPatterns/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/ListPatterns/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.codegen.cs index bbc81cbd3dd0..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.codegen.cs @@ -19,16 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" - - public static string Capture(int value) - => nameof(value); - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..754a27a23daa --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.decl.codegen.cs @@ -0,0 +1,29 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" + + public static string Capture(int value) + => nameof(value); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..5f2c467a68ce --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [74] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [74] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static string Capture(int value)\n => nameof(value);\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.decl.mappings.txt similarity index 85% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.decl.mappings.txt index 86ba18c52527..f73f6f48795c 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.decl.mappings.txt @@ -3,7 +3,7 @@ public static string Capture(int value) => nameof(value); | -Generated Location: (782:23,0 [74] ) +Generated Location: (556:18,0 [74] ) | public static string Capture(int value) => nameof(value); diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.ir.txt index 708b131bc3e3..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NameofParameter/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [74] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [74] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static string Capture(int value)\n => nameof(value);\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NewlinesInInterpolations/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NewlinesInInterpolations/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NewlinesInInterpolations/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NewlinesInInterpolations/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NewlinesInInterpolations/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NewlinesInInterpolations/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NumericIntPtr/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NumericIntPtr/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NumericIntPtr/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NumericIntPtr/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NumericIntPtr/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/NumericIntPtr/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/PatternMatchingOnReadOnlySpanChar/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/PatternMatchingOnReadOnlySpanChar/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/PatternMatchingOnReadOnlySpanChar/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/PatternMatchingOnReadOnlySpanChar/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/PatternMatchingOnReadOnlySpanChar/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/PatternMatchingOnReadOnlySpanChar/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RawStringLiterals/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RawStringLiterals/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RawStringLiterals/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RawStringLiterals/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RawStringLiterals/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RawStringLiterals/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.codegen.cs index 86db4e63068f..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.codegen.cs @@ -19,25 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(13,1) "x:\dir\subdir\Test\TestComponent.razor" - - public ref struct ValueRef - { - private ref int _value; - - public ValueRef(ref int value) - { - _value = ref value; - } - - public ref int Value => ref _value; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..9f439217f1a6 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.decl.codegen.cs @@ -0,0 +1,38 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(13,1) "x:\dir\subdir\Test\TestComponent.razor" + + public ref struct ValueRef + { + private ref int _value; + + public ValueRef(ref int value) + { + _value = ref value; + } + + public ref int Value => ref _value; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..6af670a3f847 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [233] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [233] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public ref struct ValueRef\n {\n private ref int _value;\n \n public ValueRef(ref int value)\n {\n _value = ref value;\n }\n \n public ref int Value => ref _value;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.decl.mappings.txt similarity index 93% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.decl.mappings.txt index 0ca281117a54..80d94504c355 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.decl.mappings.txt @@ -12,7 +12,7 @@ public ref int Value => ref _value; } | -Generated Location: (783:23,0 [233] ) +Generated Location: (557:18,0 [233] ) | public ref struct ValueRef { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.ir.txt index b9e4a9588672..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RefFields/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [233] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [233] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public ref struct ValueRef\n {\n private ref int _value;\n \n public ValueRef(ref int value)\n {\n _value = ref value;\n }\n \n public ref int Value => ref _value;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RelaxingShiftOperator/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RelaxingShiftOperator/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RelaxingShiftOperator/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RelaxingShiftOperator/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RelaxingShiftOperator/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RelaxingShiftOperator/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.codegen.cs index d0e9d047c050..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.codegen.cs @@ -19,21 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(9,1) "x:\dir\subdir\Test\TestComponent.razor" - - public class Person - { - public required string Name { get; init; } - } - - public static string Value() - => new Person { Name = "Razor" }.Name; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..71fcfe009933 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.decl.codegen.cs @@ -0,0 +1,34 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(9,1) "x:\dir\subdir\Test\TestComponent.razor" + + public class Person + { + public required string Name { get; init; } + } + + public static string Value() + => new Person { Name = "Razor" }.Name; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..e290011f0561 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [181] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [181] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public class Person\n {\n public required string Name { get; init; }\n }\n \n public static string Value()\n => new Person { Name = "Razor" }.Name;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.decl.mappings.txt similarity index 91% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.decl.mappings.txt index fc01df951706..adee93a20bd8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.decl.mappings.txt @@ -8,7 +8,7 @@ public static string Value() => new Person { Name = "Razor" }.Name; | -Generated Location: (782:23,0 [181] ) +Generated Location: (556:18,0 [181] ) | public class Person { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.ir.txt index 39368fb9b20a..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/RequiredMembers/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [181] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [181] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public class Person\n {\n public required string Name { get; init; }\n }\n \n public static string Value()\n => new Person { Name = "Razor" }.Name;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/UnsignedRightShift/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/UnsignedRightShift/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/UnsignedRightShift/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/UnsignedRightShift/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/UnsignedRightShift/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/UnsignedRightShift/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/Utf8StringLiterals/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/Utf8StringLiterals/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/Utf8StringLiterals/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/Utf8StringLiterals/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/Utf8StringLiterals/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp11LanguageFeaturesIntegrationTest/Utf8StringLiterals/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/CollectionExpressions/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/CollectionExpressions/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/CollectionExpressions/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/CollectionExpressions/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/CollectionExpressions/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/CollectionExpressions/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.codegen.cs index b51b5efd77eb..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.codegen.cs @@ -19,18 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" - - [System.Diagnostics.CodeAnalysis.Experimental("RAZOR0001")] - public class ExperimentalType - { - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..6aa0eb6173f1 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.decl.codegen.cs @@ -0,0 +1,31 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" + + [System.Diagnostics.CodeAnalysis.Experimental("RAZOR0001")] + public class ExperimentalType + { + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..95aeecbb60b8 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [116] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [116] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n [System.Diagnostics.CodeAnalysis.Experimental("RAZOR0001")]\n public class ExperimentalType\n {\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.decl.mappings.txt similarity index 88% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.decl.mappings.txt index 3753e2d5b53d..e40b604af433 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.decl.mappings.txt @@ -5,7 +5,7 @@ { } | -Generated Location: (782:23,0 [116] ) +Generated Location: (556:18,0 [116] ) | [System.Diagnostics.CodeAnalysis.Experimental("RAZOR0001")] public class ExperimentalType diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.ir.txt index 64ad34ad4419..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/ExperimentalAttribute/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [116] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [116] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n [System.Diagnostics.CodeAnalysis.Experimental("RAZOR0001")]\n public class ExperimentalType\n {\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.codegen.cs index c0ce7bad9906..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.codegen.cs @@ -19,19 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(7,1) "x:\dir\subdir\Test\TestComponent.razor" - - [System.Runtime.CompilerServices.InlineArray(4)] - public struct Buffer - { - private int _element0; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..d21e2a1a3295 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.decl.codegen.cs @@ -0,0 +1,32 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(7,1) "x:\dir\subdir\Test\TestComponent.razor" + + [System.Runtime.CompilerServices.InlineArray(4)] + public struct Buffer + { + private int _element0; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..de7aec2a6582 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [128] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [128] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n [System.Runtime.CompilerServices.InlineArray(4)]\n public struct Buffer\n {\n private int _element0;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.decl.mappings.txt similarity index 89% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.decl.mappings.txt index aba74da47990..1d97d85ab144 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.decl.mappings.txt @@ -6,7 +6,7 @@ private int _element0; } | -Generated Location: (782:23,0 [128] ) +Generated Location: (556:18,0 [128] ) | [System.Runtime.CompilerServices.InlineArray(4)] public struct Buffer diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.ir.txt index 52b140185d55..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/InlineArrays/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [128] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [128] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n [System.Runtime.CompilerServices.InlineArray(4)]\n public struct Buffer\n {\n private int _element0;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/LambdaOptionalParameters/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/LambdaOptionalParameters/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/LambdaOptionalParameters/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/LambdaOptionalParameters/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/LambdaOptionalParameters/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/LambdaOptionalParameters/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.codegen.cs index b6fd6b48783a..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.codegen.cs @@ -19,16 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" - - public string Capture() - => nameof(ToString); - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..a929afa9b9ed --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.decl.codegen.cs @@ -0,0 +1,29 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" + + public string Capture() + => nameof(ToString); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..0e296bc188e5 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [61] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [61] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public string Capture()\n => nameof(ToString);\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.decl.mappings.txt similarity index 84% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.decl.mappings.txt index dccc462393fa..243c4a18a38a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.decl.mappings.txt @@ -3,7 +3,7 @@ public string Capture() => nameof(ToString); | -Generated Location: (782:23,0 [61] ) +Generated Location: (556:18,0 [61] ) | public string Capture() => nameof(ToString); diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.ir.txt index d08b783388fe..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/NameofAccessingInstanceMembers/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [61] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [61] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public string Capture()\n => nameof(ToString);\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.codegen.cs index d8181887f794..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.codegen.cs @@ -19,18 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" - - public class Person(string name) - { - public string Name => name; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..1d34d95799ad --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.decl.codegen.cs @@ -0,0 +1,31 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" + + public class Person(string name) + { + public string Name => name; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..5ba9ec389c54 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [91] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [91] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public class Person(string name)\n {\n public string Name => name;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.decl.mappings.txt similarity index 87% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.decl.mappings.txt index ea66fac40d19..1e71bec0927e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.decl.mappings.txt @@ -5,7 +5,7 @@ public string Name => name; } | -Generated Location: (782:23,0 [91] ) +Generated Location: (556:18,0 [91] ) | public class Person(string name) { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.ir.txt index e126f131a1c3..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/PrimaryConstructors/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [91] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [91] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public class Person(string name)\n {\n public string Name => name;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.codegen.cs index e6fbb9717f76..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.codegen.cs @@ -19,16 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" - - public static int Sum(ref readonly int value) - => value; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..134463dc4be3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.decl.codegen.cs @@ -0,0 +1,29 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" + + public static int Sum(ref readonly int value) + => value; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..6165d80501ab --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [72] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [72] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static int Sum(ref readonly int value)\n => value;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.decl.mappings.txt similarity index 85% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.decl.mappings.txt index 7ef9742a79df..c347b3c94afb 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.decl.mappings.txt @@ -3,7 +3,7 @@ public static int Sum(ref readonly int value) => value; | -Generated Location: (782:23,0 [72] ) +Generated Location: (556:18,0 [72] ) | public static int Sum(ref readonly int value) => value; diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.ir.txt index 2a229d8a21fe..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/RefReadonlyParameters/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [72] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [72] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static int Sum(ref readonly int value)\n => value;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/UsingAliasesForAnyType/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/UsingAliasesForAnyType/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca4aaae6f5e1 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/UsingAliasesForAnyType/TestComponent.decl.codegen.cs @@ -0,0 +1,25 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; +#nullable restore +#line (1,2)-(1,42) "x:\dir\subdir\Test\TestComponent.razor" +using NumberPair = (int Left, int Right) + +#nullable disable + ; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/UsingAliasesForAnyType/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/UsingAliasesForAnyType/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..cecfb7fff9a0 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/UsingAliasesForAnyType/TestComponent.decl.ir.txt @@ -0,0 +1,9 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + UsingDirective - (1:0,1 [40] x:\dir\subdir\Test\TestComponent.razor) - NumberPair = (int Left, int Right) + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/UsingAliasesForAnyType/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/UsingAliasesForAnyType/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..17e98eb44873 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp12LanguageFeaturesIntegrationTest/UsingAliasesForAnyType/TestComponent.decl.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [40] x:\dir\subdir\Test\TestComponent.razor) +|using NumberPair = (int Left, int Right)| +Generated Location: (371:12,0 [40] ) +|using NumberPair = (int Left, int Right)| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/EscapeCharacter/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/EscapeCharacter/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/EscapeCharacter/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/EscapeCharacter/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/EscapeCharacter/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/EscapeCharacter/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/ImplicitIndexerAccessInObjectInitializers/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/ImplicitIndexerAccessInObjectInitializers/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/ImplicitIndexerAccessInObjectInitializers/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/ImplicitIndexerAccessInObjectInitializers/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/ImplicitIndexerAccessInObjectInitializers/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/ImplicitIndexerAccessInObjectInitializers/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/LockObject/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/LockObject/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/LockObject/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/LockObject/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/LockObject/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/LockObject/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/MethodGroupNaturalTypeImprovements/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/MethodGroupNaturalTypeImprovements/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/MethodGroupNaturalTypeImprovements/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/MethodGroupNaturalTypeImprovements/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/MethodGroupNaturalTypeImprovements/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/MethodGroupNaturalTypeImprovements/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/OverloadResolutionPriority/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/OverloadResolutionPriority/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/OverloadResolutionPriority/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/OverloadResolutionPriority/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/OverloadResolutionPriority/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/OverloadResolutionPriority/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.codegen.cs index cb7eaa755955..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.codegen.cs @@ -19,18 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" - - public interface IValue - where TSelf : IValue, allows ref struct - { - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..a97479c8828c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.decl.codegen.cs @@ -0,0 +1,31 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" + + public interface IValue + where TSelf : IValue, allows ref struct + { + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1325b4f10311 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [108] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [108] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public interface IValue\n where TSelf : IValue, allows ref struct\n {\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.decl.mappings.txt similarity index 88% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.decl.mappings.txt index 26e4585a8752..99684b2a34d7 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.decl.mappings.txt @@ -5,7 +5,7 @@ { } | -Generated Location: (782:23,0 [108] ) +Generated Location: (556:18,0 [108] ) | public interface IValue where TSelf : IValue, allows ref struct diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.ir.txt index b6d827a52df3..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefStructInterfacesAndAllowsRefStructConstraint/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [108] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [108] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public interface IValue\n where TSelf : IValue, allows ref struct\n {\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.codegen.cs index c741f7983a4f..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.codegen.cs @@ -19,21 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(9,1) "x:\dir\subdir\Test\TestComponent.razor" - - public static async System.Threading.Tasks.Task ReadAsync(int[] values) - { - ref var first = ref values[0]; - var copy = first; - await System.Threading.Tasks.Task.Yield(); - return copy; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..daea974ee8fc --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.decl.codegen.cs @@ -0,0 +1,34 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(9,1) "x:\dir\subdir\Test\TestComponent.razor" + + public static async System.Threading.Tasks.Task ReadAsync(int[] values) + { + ref var first = ref values[0]; + var copy = first; + await System.Threading.Tasks.Task.Yield(); + return copy; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..ae91eb29cc15 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [239] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [239] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static async System.Threading.Tasks.Task ReadAsync(int[] values)\n {\n ref var first = ref values[0];\n var copy = first;\n await System.Threading.Tasks.Task.Yield();\n return copy;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.decl.mappings.txt similarity index 93% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.decl.mappings.txt index 962c4adc1014..e48515b4b172 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.decl.mappings.txt @@ -8,7 +8,7 @@ return copy; } | -Generated Location: (782:23,0 [239] ) +Generated Location: (556:18,0 [239] ) | public static async System.Threading.Tasks.Task ReadAsync(int[] values) { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.ir.txt index c844a287c31d..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp13LanguageFeaturesIntegrationTest/RefUnsafeInIteratorsAsync/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [239] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [239] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static async System.Threading.Tasks.Task ReadAsync(int[] values)\n {\n ref var first = ref values[0];\n var copy = first;\n await System.Threading.Tasks.Task.Yield();\n return copy;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/Extensions/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/Extensions/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/Extensions/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/Extensions/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/Extensions/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/Extensions/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.codegen.cs index aeb9fcf6955f..e90c092eb93c 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.codegen.cs @@ -38,19 +38,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (7,8)-(13,1) "x:\dir\subdir\Test\TestComponent.razor" - - public int Value - { - get => field; - set => field = value; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..44f5408b3bc0 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.decl.codegen.cs @@ -0,0 +1,32 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (7,8)-(13,1) "x:\dir\subdir\Test\TestComponent.razor" + + public int Value + { + get => field; + set => field = value; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..a521315026df --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (49:6,7 [92] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (49:6,7 [92] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public int Value\n {\n get => field;\n set => field = value;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..49dcbcf5b71e --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.decl.mappings.txt @@ -0,0 +1,17 @@ +Source Location: (49:6,7 [92] x:\dir\subdir\Test\TestComponent.razor) +| + public int Value + { + get => field; + set => field = value; + } +| +Generated Location: (557:18,0 [92] ) +| + public int Value + { + get => field; + set => field = value; + } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.ir.txt index 331ed62abd4a..5ce630dbcc66 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.ir.txt @@ -12,5 +12,3 @@ MarkupElement - (25:4,0 [13] x:\dir\subdir\Test\TestComponent.razor) - p CSharpExpression - (29:4,4 [5] x:\dir\subdir\Test\TestComponent.razor) LazyIntermediateToken - (29:4,4 [5] x:\dir\subdir\Test\TestComponent.razor) - CSharp - Value - CSharpCode - (49:6,7 [92] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (49:6,7 [92] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public int Value\n {\n get => field;\n set => field = value;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.mappings.txt index bdbfe3395e11..fafdd2a197b1 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/FieldKeywordInProperties/TestComponent.mappings.txt @@ -12,20 +12,3 @@ Source Location: (29:4,4 [5] x:\dir\subdir\Test\TestComponent.razor) Generated Location: (954:31,24 [5] ) |Value| -Source Location: (49:6,7 [92] x:\dir\subdir\Test\TestComponent.razor) -| - public int Value - { - get => field; - set => field = value; - } -| -Generated Location: (1195:42,0 [92] ) -| - public int Value - { - get => field; - set => field = value; - } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.codegen.cs index 8a094f76eae8..60b5249ed1c7 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.codegen.cs @@ -29,16 +29,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" - - #:package Newtonsoft.Json@13.0.3 - private static readonly int Value = 1; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..9bf56f6bc652 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.decl.codegen.cs @@ -0,0 +1,29 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" + + #:package Newtonsoft.Json@13.0.3 + private static readonly int Value = 1; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..3defd42d41c1 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [84] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [84] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n #:package Newtonsoft.Json@13.0.3\n private static readonly int Value = 1;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..c8f7626d8c73 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.decl.mappings.txt @@ -0,0 +1,11 @@ +Source Location: (7:0,7 [84] x:\dir\subdir\Test\TestComponent.razor) +| + #:package Newtonsoft.Json@13.0.3 + private static readonly int Value = 1; +| +Generated Location: (556:18,0 [84] ) +| + #:package Newtonsoft.Json@13.0.3 + private static readonly int Value = 1; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.ir.txt index 1e018be7fa50..d2e0646e654e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.ir.txt @@ -10,5 +10,3 @@ MarkupElement - (96:5,0 [13] x:\dir\subdir\Test\TestComponent.razor) - p CSharpExpression - (100:5,4 [5] x:\dir\subdir\Test\TestComponent.razor) LazyIntermediateToken - (100:5,4 [5] x:\dir\subdir\Test\TestComponent.razor) - CSharp - Value - CSharpCode - (7:0,7 [84] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [84] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n #:package Newtonsoft.Json@13.0.3\n private static readonly int Value = 1;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.mappings.txt index 1fddd7e9d52f..7fe80d482b8b 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/IgnoredDirectivesDoNotBreakCodeGeneration/TestComponent.mappings.txt @@ -3,14 +3,3 @@ Generated Location: (805:22,24 [5] ) |Value| -Source Location: (7:0,7 [84] x:\dir\subdir\Test\TestComponent.razor) -| - #:package Newtonsoft.Json@13.0.3 - private static readonly int Value = 1; -| -Generated Location: (1045:33,0 [84] ) -| - #:package Newtonsoft.Json@13.0.3 - private static readonly int Value = 1; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/NullConditionalAssignment/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/NullConditionalAssignment/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/NullConditionalAssignment/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/NullConditionalAssignment/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/NullConditionalAssignment/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/NullConditionalAssignment/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.codegen.cs index 1ede7240c565..a8de71ebece5 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.codegen.cs @@ -31,16 +31,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" - - public static int Sum(int first = 0, int second = 0) - => first + second; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..a932fa650ded --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.decl.codegen.cs @@ -0,0 +1,29 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" + + public static int Sum(int first = 0, int second = 0) + => first + second; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..4bcd34ca8634 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [88] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [88] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static int Sum(int first = 0, int second = 0)\n => first + second;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..309508a092d3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.decl.mappings.txt @@ -0,0 +1,11 @@ +Source Location: (7:0,7 [88] x:\dir\subdir\Test\TestComponent.razor) +| + public static int Sum(int first = 0, int second = 0) + => first + second; +| +Generated Location: (556:18,0 [88] ) +| + public static int Sum(int first = 0, int second = 0) + => first + second; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.ir.txt index 2c8e11fbd661..fa3fbca16814 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.ir.txt @@ -9,5 +9,3 @@ MethodDeclaration - - protected override - void - BuildRenderTree CSharpCode - (102:5,2 [227] x:\dir\subdir\Test\TestComponent.razor) LazyIntermediateToken - (102:5,2 [227] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n System.Linq.Expressions.Expression> named = () => Sum(first: 1, second: 2);\n System.Linq.Expressions.Expression> optional = () => Sum();\n _ = named.Body;\n _ = optional.Body;\n - CSharpCode - (7:0,7 [88] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [88] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static int Sum(int first = 0, int second = 0)\n => first + second;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.mappings.txt index f197455b02fb..ebe2c15749f6 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/OptionalAndNamedArgumentsInExpressionTrees/TestComponent.mappings.txt @@ -13,14 +13,3 @@ Generated Location: (734:21,0 [227] ) _ = optional.Body; | -Source Location: (7:0,7 [88] x:\dir\subdir\Test\TestComponent.razor) -| - public static int Sum(int first = 0, int second = 0) - => first + second; -| -Generated Location: (1141:35,0 [88] ) -| - public static int Sum(int first = 0, int second = 0) - => first + second; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.codegen.cs index 5b52d9c06133..70d1d5174933 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.codegen.cs @@ -30,31 +30,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. } #pragma warning restore 1998 -#nullable restore -#line (7,8)-(25,1) "x:\dir\subdir\Test\TestComponent.razor" - - public partial class Example - { - public partial event System.Action Updated; - public partial event System.Action Updated - { - add { } - remove { } - } - - public int Value { get; } - - public partial Example(); - public partial Example() - { - Value = 1; - } - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..329f8c2a278b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.decl.codegen.cs @@ -0,0 +1,44 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (7,8)-(25,1) "x:\dir\subdir\Test\TestComponent.razor" + + public partial class Example + { + public partial event System.Action Updated; + public partial event System.Action Updated + { + add { } + remove { } + } + + public int Value { get; } + + public partial Example(); + public partial Example() + { + Value = 1; + } + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..73aa0e2bfdb6 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (110:6,7 [376] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (110:6,7 [376] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public partial class Example\n {\n public partial event System.Action Updated;\n public partial event System.Action Updated\n {\n add { }\n remove { }\n }\n\n public int Value { get; }\n\n public partial Example();\n public partial Example()\n {\n Value = 1;\n }\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..6e29d0b50d55 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.decl.mappings.txt @@ -0,0 +1,41 @@ +Source Location: (110:6,7 [376] x:\dir\subdir\Test\TestComponent.razor) +| + public partial class Example + { + public partial event System.Action Updated; + public partial event System.Action Updated + { + add { } + remove { } + } + + public int Value { get; } + + public partial Example(); + public partial Example() + { + Value = 1; + } + } +| +Generated Location: (557:18,0 [376] ) +| + public partial class Example + { + public partial event System.Action Updated; + public partial event System.Action Updated + { + add { } + remove { } + } + + public int Value { get; } + + public partial Example(); + public partial Example() + { + Value = 1; + } + } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.ir.txt index 3bdb6acebd53..bff94802fde3 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.ir.txt @@ -9,5 +9,3 @@ MethodDeclaration - - protected override - void - BuildRenderTree CSharpCode - (2:0,2 [96] x:\dir\subdir\Test\TestComponent.razor) LazyIntermediateToken - (2:0,2 [96] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n var value = new Example();\n value.Updated += static () => { };\n _ = value.Value;\n - CSharpCode - (110:6,7 [376] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (110:6,7 [376] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public partial class Example\n {\n public partial event System.Action Updated;\n public partial event System.Action Updated\n {\n add { }\n remove { }\n }\n\n public int Value { get; }\n\n public partial Example();\n public partial Example()\n {\n Value = 1;\n }\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.mappings.txt index 99eb4289313f..c651e7c65ed5 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/PartialEventsAndConstructors/TestComponent.mappings.txt @@ -11,44 +11,3 @@ Generated Location: (733:21,0 [96] ) _ = value.Value; | -Source Location: (110:6,7 [376] x:\dir\subdir\Test\TestComponent.razor) -| - public partial class Example - { - public partial event System.Action Updated; - public partial event System.Action Updated - { - add { } - remove { } - } - - public int Value { get; } - - public partial Example(); - public partial Example() - { - Value = 1; - } - } -| -Generated Location: (1010:34,0 [376] ) -| - public partial class Example - { - public partial event System.Action Updated; - public partial event System.Action Updated - { - add { } - remove { } - } - - public int Value { get; } - - public partial Example(); - public partial Example() - { - Value = 1; - } - } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/StringLiteralsInDataSectionAsUtf8/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/StringLiteralsInDataSectionAsUtf8/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/StringLiteralsInDataSectionAsUtf8/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/StringLiteralsInDataSectionAsUtf8/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/StringLiteralsInDataSectionAsUtf8/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/StringLiteralsInDataSectionAsUtf8/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UnboundGenericTypesInNameof/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UnboundGenericTypesInNameof/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UnboundGenericTypesInNameof/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UnboundGenericTypesInNameof/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UnboundGenericTypesInNameof/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UnboundGenericTypesInNameof/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.codegen.cs index 103d11daf907..11d67da77191 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.codegen.cs @@ -30,23 +30,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. } #pragma warning restore 1998 -#nullable restore -#line (7,8)-(17,1) "x:\dir\subdir\Test\TestComponent.razor" - - public class Counter - { - public int Value { get; private set; } - - public void operator +=(int value) - { - Value += value; - } - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..2b9c4114a0ac --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.decl.codegen.cs @@ -0,0 +1,36 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (7,8)-(17,1) "x:\dir\subdir\Test\TestComponent.razor" + + public class Counter + { + public int Value { get; private set; } + + public void operator +=(int value) + { + Value += value; + } + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..0de4e008e549 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (93:6,7 [191] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (93:6,7 [191] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public class Counter\n {\n public int Value { get; private set; }\n \n public void operator +=(int value)\n {\n Value += value;\n }\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..b468a22f11bc --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.decl.mappings.txt @@ -0,0 +1,25 @@ +Source Location: (93:6,7 [191] x:\dir\subdir\Test\TestComponent.razor) +| + public class Counter + { + public int Value { get; private set; } + + public void operator +=(int value) + { + Value += value; + } + } +| +Generated Location: (557:18,0 [191] ) +| + public class Counter + { + public int Value { get; private set; } + + public void operator +=(int value) + { + Value += value; + } + } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.ir.txt index c95fa245dea9..f2e62bd1baaa 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.ir.txt @@ -9,5 +9,3 @@ MethodDeclaration - - protected override - void - BuildRenderTree CSharpCode - (2:0,2 [79] x:\dir\subdir\Test\TestComponent.razor) LazyIntermediateToken - (2:0,2 [79] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n var counter = new Counter();\n counter += 1;\n _ = counter.Value;\n - CSharpCode - (93:6,7 [191] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (93:6,7 [191] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public class Counter\n {\n public int Value { get; private set; }\n \n public void operator +=(int value)\n {\n Value += value;\n }\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.mappings.txt index 1004ed763ab6..8ed413a6345d 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp14LanguageFeaturesIntegrationTest/UserDefinedCompoundAssignmentOperators/TestComponent.mappings.txt @@ -11,28 +11,3 @@ Generated Location: (733:21,0 [79] ) _ = counter.Value; | -Source Location: (93:6,7 [191] x:\dir\subdir\Test\TestComponent.razor) -| - public class Counter - { - public int Value { get; private set; } - - public void operator +=(int value) - { - Value += value; - } - } -| -Generated Location: (993:34,0 [191] ) -| - public class Counter - { - public int Value { get; private set; } - - public void operator +=(int value) - { - Value += value; - } - } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AlternativeInterpolatedVerbatimStrings/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AlternativeInterpolatedVerbatimStrings/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AlternativeInterpolatedVerbatimStrings/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AlternativeInterpolatedVerbatimStrings/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AlternativeInterpolatedVerbatimStrings/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AlternativeInterpolatedVerbatimStrings/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.codegen.cs index 3700f55b4c77..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.codegen.cs @@ -19,19 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(7,1) "x:\dir\subdir\Test\TestComponent.razor" - - public static async System.Collections.Generic.IAsyncEnumerable Values() - { - yield return 1; - await System.Threading.Tasks.Task.Yield(); - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..e75625d201b7 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.decl.codegen.cs @@ -0,0 +1,32 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(7,1) "x:\dir\subdir\Test\TestComponent.razor" + + public static async System.Collections.Generic.IAsyncEnumerable Values() + { + yield return 1; + await System.Threading.Tasks.Task.Yield(); + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..b6fbe0cd1e49 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [176] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [176] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static async System.Collections.Generic.IAsyncEnumerable Values()\n {\n yield return 1;\n await System.Threading.Tasks.Task.Yield();\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.decl.mappings.txt similarity index 91% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.decl.mappings.txt index 9259e8413c17..4db1737bb45b 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.decl.mappings.txt @@ -6,7 +6,7 @@ await System.Threading.Tasks.Task.Yield(); } | -Generated Location: (782:23,0 [176] ) +Generated Location: (556:18,0 [176] ) | public static async System.Collections.Generic.IAsyncEnumerable Values() { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.ir.txt index 9e1e89d29201..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/AsyncStreams/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [176] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [176] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static async System.Collections.Generic.IAsyncEnumerable Values()\n {\n yield return 1;\n await System.Threading.Tasks.Task.Yield();\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.codegen.cs index ba095dfcf609..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.codegen.cs @@ -19,22 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(10,1) "x:\dir\subdir\Test\TestComponent.razor" - - public interface IExample - { - int GetValue() => 1; - } - - public class Example : IExample - { - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..9773fe93dd01 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.decl.codegen.cs @@ -0,0 +1,35 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(10,1) "x:\dir\subdir\Test\TestComponent.razor" + + public interface IExample + { + int GetValue() => 1; + } + + public class Example : IExample + { + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1b8c35952123 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [134] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [134] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public interface IExample\n {\n int GetValue() => 1;\n }\n \n public class Example : IExample\n {\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.decl.mappings.txt similarity index 89% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.decl.mappings.txt index cddba4d945d8..87259f65bfb4 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.decl.mappings.txt @@ -9,7 +9,7 @@ { } | -Generated Location: (783:23,0 [134] ) +Generated Location: (557:18,0 [134] ) | public interface IExample { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.ir.txt index 65b373bbe4d3..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/DefaultInterfaceMethods/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [134] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [134] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public interface IExample\n {\n int GetValue() => 1;\n }\n \n public class Example : IExample\n {\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/EnhancedUsing/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/EnhancedUsing/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/EnhancedUsing/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/EnhancedUsing/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/EnhancedUsing/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/EnhancedUsing/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullCoalescingAssignment/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullCoalescingAssignment/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullCoalescingAssignment/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullCoalescingAssignment/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullCoalescingAssignment/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullCoalescingAssignment/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.codegen.cs index 9b5fece7c1a2..4748a710c23f 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.codegen.cs @@ -27,16 +27,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. ); } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" - - public static int GetLength(string? value) - => value?.Length ?? 0; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..c9b95e43e969 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.decl.codegen.cs @@ -0,0 +1,29 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(4,1) "x:\dir\subdir\Test\TestComponent.razor" + + public static int GetLength(string? value) + => value?.Length ?? 0; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..53b8bf60acf3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [82] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [82] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static int GetLength(string? value)\n => value?.Length ?? 0;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..1f0a62b55d47 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.decl.mappings.txt @@ -0,0 +1,11 @@ +Source Location: (7:0,7 [82] x:\dir\subdir\Test\TestComponent.razor) +| + public static int GetLength(string? value) + => value?.Length ?? 0; +| +Generated Location: (556:18,0 [82] ) +| + public static int GetLength(string? value) + => value?.Length ?? 0; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.ir.txt index d69d7d96e2af..91521226c180 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.ir.txt @@ -9,5 +9,3 @@ MethodDeclaration - - protected override - void - BuildRenderTree CSharpExpression - (95:5,1 [16] x:\dir\subdir\Test\TestComponent.razor) LazyIntermediateToken - (95:5,1 [16] x:\dir\subdir\Test\TestComponent.razor) - CSharp - GetLength(null!) - CSharpCode - (7:0,7 [82] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [82] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static int GetLength(string? value)\n => value?.Length ?? 0;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.mappings.txt index 97cf835e2903..d3d795122d80 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/NullableReferenceType/TestComponent.mappings.txt @@ -3,14 +3,3 @@ Generated Location: (761:21,24 [16] ) |GetLength(null!)| -Source Location: (7:0,7 [82] x:\dir\subdir\Test\TestComponent.razor) -| - public static int GetLength(string? value) - => value?.Length ?? 0; -| -Generated Location: (973:31,0 [82] ) -| - public static int GetLength(string? value) - => value?.Length ?? 0; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/Ranges/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/Ranges/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/Ranges/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/Ranges/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/Ranges/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/Ranges/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.codegen.cs index 2771f968b964..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.codegen.cs @@ -19,26 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(14,1) "x:\dir\subdir\Test\TestComponent.razor" - - public readonly struct Measurement - { - private readonly int _value; - - public Measurement(int value) - { - _value = value; - } - - public readonly int GetValue() - => _value; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..be72cea1a4a6 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.decl.codegen.cs @@ -0,0 +1,39 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(14,1) "x:\dir\subdir\Test\TestComponent.razor" + + public readonly struct Measurement + { + private readonly int _value; + + public Measurement(int value) + { + _value = value; + } + + public readonly int GetValue() + => _value; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..5c06813f9436 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [260] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [260] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public readonly struct Measurement\n {\n private readonly int _value;\n \n public Measurement(int value)\n {\n _value = value;\n }\n \n public readonly int GetValue()\n => _value;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.decl.mappings.txt similarity index 93% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.decl.mappings.txt index ef22d11f29c7..56ad83b42bb8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.decl.mappings.txt @@ -13,7 +13,7 @@ => _value; } | -Generated Location: (783:23,0 [260] ) +Generated Location: (557:18,0 [260] ) | public readonly struct Measurement { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.ir.txt index 25a67ab0b232..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/ReadonlyMembers/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [260] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [260] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public readonly struct Measurement\n {\n private readonly int _value;\n \n public Measurement(int value)\n {\n _value = value;\n }\n \n public readonly int GetValue()\n => _value;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/RecursivePatterns/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/RecursivePatterns/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/RecursivePatterns/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/RecursivePatterns/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/RecursivePatterns/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/RecursivePatterns/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StackallocInNestedContexts/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StackallocInNestedContexts/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StackallocInNestedContexts/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StackallocInNestedContexts/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StackallocInNestedContexts/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StackallocInNestedContexts/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StaticLocalFunctions/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StaticLocalFunctions/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StaticLocalFunctions/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StaticLocalFunctions/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StaticLocalFunctions/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/StaticLocalFunctions/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.codegen.cs index c49f4f9240d4..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.codegen.cs @@ -19,17 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(5,1) "x:\dir\subdir\Test\TestComponent.razor" - - public static unsafe int SizeOf() - where T : unmanaged - => sizeof(T); - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..cd6ab453a47c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(5,1) "x:\dir\subdir\Test\TestComponent.razor" + + public static unsafe int SizeOf() + where T : unmanaged + => sizeof(T); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..7b49a3da98fc --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [96] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [96] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static unsafe int SizeOf()\n where T : unmanaged\n => sizeof(T);\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.decl.mappings.txt similarity index 87% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.decl.mappings.txt index da5d035f8d25..e27cb533e707 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.decl.mappings.txt @@ -4,7 +4,7 @@ where T : unmanaged => sizeof(T); | -Generated Location: (782:23,0 [96] ) +Generated Location: (556:18,0 [96] ) | public static unsafe int SizeOf() where T : unmanaged diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.ir.txt index e07118fad6b4..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp8LanguageFeaturesIntegrationTest/UnmanagedGenericStructs/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [96] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [96] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static unsafe int SizeOf()\n where T : unmanaged\n => sizeof(T);\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/AttributesOnLocalFunctions/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/AttributesOnLocalFunctions/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/AttributesOnLocalFunctions/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/AttributesOnLocalFunctions/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/AttributesOnLocalFunctions/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/AttributesOnLocalFunctions/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.codegen.cs index 51cbcdafae9b..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.codegen.cs @@ -19,24 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(12,1) "x:\dir\subdir\Test\TestComponent.razor" - - public abstract class Base - { - public abstract Base Clone(); - } - - public class Derived : Base - { - public override Derived Clone() - => this; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..e09ff7570c1a --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.decl.codegen.cs @@ -0,0 +1,37 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(12,1) "x:\dir\subdir\Test\TestComponent.razor" + + public abstract class Base + { + public abstract Base Clone(); + } + + public class Derived : Base + { + public override Derived Clone() + => this; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..f044d0a30d64 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [203] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [203] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public abstract class Base\n {\n public abstract Base Clone();\n }\n \n public class Derived : Base\n {\n public override Derived Clone()\n => this;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.decl.mappings.txt similarity index 92% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.decl.mappings.txt index 448672b24512..85424978f174 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.decl.mappings.txt @@ -11,7 +11,7 @@ => this; } | -Generated Location: (783:23,0 [203] ) +Generated Location: (557:18,0 [203] ) | public abstract class Base { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.ir.txt index f1ce4d8f2ebb..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/CovariantReturns/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [203] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [203] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public abstract class Base\n {\n public abstract Base Clone();\n }\n \n public class Derived : Base\n {\n public override Derived Clone()\n => this;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.codegen.cs index 535fc72c1712..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.codegen.cs @@ -19,24 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(12,1) "x:\dir\subdir\Test\TestComponent.razor" - - public partial class Greeter - { - public partial string GetValue(); - } - - public partial class Greeter - { - public partial string GetValue() - => "Razor"; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..237a8f5eb2f1 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.decl.codegen.cs @@ -0,0 +1,37 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(12,1) "x:\dir\subdir\Test\TestComponent.razor" + + public partial class Greeter + { + public partial string GetValue(); + } + + public partial class Greeter + { + public partial string GetValue() + => "Razor"; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..e2c8932feb91 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [214] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [214] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public partial class Greeter\n {\n public partial string GetValue();\n }\n \n public partial class Greeter\n {\n public partial string GetValue()\n => "Razor";\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.decl.mappings.txt similarity index 92% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.decl.mappings.txt index b681c610f956..a6a1154073f4 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.decl.mappings.txt @@ -11,7 +11,7 @@ => "Razor"; } | -Generated Location: (783:23,0 [214] ) +Generated Location: (557:18,0 [214] ) | public partial class Greeter { diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.ir.txt index 0df1beb30147..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtendingPartial/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [214] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [214] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public partial class Greeter\n {\n public partial string GetValue();\n }\n \n public partial class Greeter\n {\n public partial string GetValue()\n => "Razor";\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtensionGetEnumerator/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtensionGetEnumerator/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtensionGetEnumerator/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtensionGetEnumerator/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtensionGetEnumerator/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ExtensionGetEnumerator/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.codegen.cs index 4a875b85ce76..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.codegen.cs @@ -19,18 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" - - public static unsafe delegate* managed Pointer => &Double; - - private static int Double(int value) - => value * 2; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..e8f98a997c47 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.decl.codegen.cs @@ -0,0 +1,31 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" + + public static unsafe delegate* managed Pointer => &Double; + + private static int Double(int value) + => value * 2; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..0ee018af2a2a --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [147] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [147] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static unsafe delegate* managed Pointer => &Double;\n \n private static int Double(int value)\n => value * 2;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.decl.mappings.txt similarity index 90% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.decl.mappings.txt index 2835da3fdfcd..56ff78c36357 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.decl.mappings.txt @@ -5,7 +5,7 @@ private static int Double(int value) => value * 2; | -Generated Location: (782:23,0 [147] ) +Generated Location: (556:18,0 [147] ) | public static unsafe delegate* managed Pointer => &Double; diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.ir.txt index 0d61c633e170..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/FunctionPointers/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [147] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [147] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public static unsafe delegate* managed Pointer => &Double;\n \n private static int Double(int value)\n => value * 2;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/LambdaDiscardParameters/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/LambdaDiscardParameters/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/LambdaDiscardParameters/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/LambdaDiscardParameters/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/LambdaDiscardParameters/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/LambdaDiscardParameters/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.codegen.cs index 09ba7691cf2d..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.codegen.cs @@ -19,18 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" - - [System.Runtime.CompilerServices.ModuleInitializer] - public static void Initialize() - { - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..d440e37c9eb8 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.decl.codegen.cs @@ -0,0 +1,31 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(6,1) "x:\dir\subdir\Test\TestComponent.razor" + + [System.Runtime.CompilerServices.ModuleInitializer] + public static void Initialize() + { + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..25b1c77eb582 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [110] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [110] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n [System.Runtime.CompilerServices.ModuleInitializer]\n public static void Initialize()\n {\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.decl.mappings.txt similarity index 88% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.decl.mappings.txt index 461fcad6da73..ebd57c0760f1 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.decl.mappings.txt @@ -5,7 +5,7 @@ { } | -Generated Location: (782:23,0 [110] ) +Generated Location: (556:18,0 [110] ) | [System.Runtime.CompilerServices.ModuleInitializer] public static void Initialize() diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.ir.txt index df63f035a9a7..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/ModuleInitializers/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [110] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [110] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n [System.Runtime.CompilerServices.ModuleInitializer]\n public static void Initialize()\n {\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/NativeInts/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/NativeInts/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/NativeInts/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/NativeInts/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/NativeInts/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/NativeInts/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/PatternMatchingImprovements/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/PatternMatchingImprovements/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/PatternMatchingImprovements/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/PatternMatchingImprovements/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/PatternMatchingImprovements/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/PatternMatchingImprovements/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.codegen.cs index e0ba232d01a0..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.codegen.cs @@ -19,15 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(3,1) "x:\dir\subdir\Test\TestComponent.razor" - - public record Person(string Name); - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..b28760c0545b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(3,1) "x:\dir\subdir\Test\TestComponent.razor" + + public record Person(string Name); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..7f32b9dc1c79 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [42] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [42] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public record Person(string Name);\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.decl.mappings.txt similarity index 81% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.decl.mappings.txt index 397bc5b7db02..da6209f5f2e8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.decl.mappings.txt @@ -2,7 +2,7 @@ | public record Person(string Name); | -Generated Location: (782:23,0 [42] ) +Generated Location: (556:18,0 [42] ) | public record Person(string Name); | diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.ir.txt index 5237f4fb9ac9..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/Records/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [42] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [42] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n public record Person(string Name);\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.codegen.cs index d6548e988b86..9dfa26c2a183 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.codegen.cs @@ -19,20 +19,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. { } #pragma warning restore 1998 -#nullable restore -#line (1,8)-(8,1) "x:\dir\subdir\Test\TestComponent.razor" - - [System.Runtime.CompilerServices.SkipLocalsInit] - public static int GetValue() - { - var value = 1; - return value; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..f04caf88ac52 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.decl.codegen.cs @@ -0,0 +1,33 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (1,8)-(8,1) "x:\dir\subdir\Test\TestComponent.razor" + + [System.Runtime.CompilerServices.SkipLocalsInit] + public static int GetValue() + { + var value = 1; + return value; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..2782abb3efbc --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (7:0,7 [151] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (7:0,7 [151] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n [System.Runtime.CompilerServices.SkipLocalsInit]\n public static int GetValue()\n {\n var value = 1;\n return value;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.decl.mappings.txt similarity index 90% rename from src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.mappings.txt rename to src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.decl.mappings.txt index 9839dca1680c..1022c89ef651 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.decl.mappings.txt @@ -7,7 +7,7 @@ return value; } | -Generated Location: (782:23,0 [151] ) +Generated Location: (556:18,0 [151] ) | [System.Runtime.CompilerServices.SkipLocalsInit] public static int GetValue() diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.ir.txt index 878a956b726c..5271eee91426 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/SkipLocalsInit/TestComponent.ir.txt @@ -7,5 +7,3 @@ UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - MethodDeclaration - - protected override - void - BuildRenderTree - CSharpCode - (7:0,7 [151] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (7:0,7 [151] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n [System.Runtime.CompilerServices.SkipLocalsInit]\n public static int GetValue()\n {\n var value = 1;\n return value;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/StaticLambdas/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/StaticLambdas/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/StaticLambdas/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/StaticLambdas/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/StaticLambdas/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/StaticLambdas/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedConditional/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedConditional/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedConditional/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedConditional/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedConditional/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedConditional/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedNew/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedNew/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedNew/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedNew/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedNew/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharp9LanguageFeaturesIntegrationTest/TargetTypedNew/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.codegen.cs index 04fa108e806e..5974eca14b43 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.codegen.cs @@ -50,16 +50,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (9,8)-(12,1) "x:\dir\subdir\Test\TestComponent.razor" - - private static int CountValues(System.Collections.Generic.List values) - => values.Count; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..65a15bb8e717 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.decl.codegen.cs @@ -0,0 +1,29 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (9,8)-(12,1) "x:\dir\subdir\Test\TestComponent.razor" + + private static int CountValues(System.Collections.Generic.List values) + => values.Count; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..49d85e373db5 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (240:8,7 [112] x:\dir\subdir\Test\TestComponent.razor) + LazyIntermediateToken - (240:8,7 [112] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n private static int CountValues(System.Collections.Generic.List values)\n => values.Count;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..51202051f934 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.decl.mappings.txt @@ -0,0 +1,11 @@ +Source Location: (240:8,7 [112] x:\dir\subdir\Test\TestComponent.razor) +| + private static int CountValues(System.Collections.Generic.List values) + => values.Count; +| +Generated Location: (557:18,0 [112] ) +| + private static int CountValues(System.Collections.Generic.List values) + => values.Count; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.ir.txt index 412b4ec3b947..a8afe593f5e5 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.ir.txt @@ -17,5 +17,3 @@ MarkupElement - (178:6,0 [51] x:\dir\subdir\Test\TestComponent.razor) - p CSharpExpression - (182:6,4 [43] x:\dir\subdir\Test\TestComponent.razor) LazyIntermediateToken - (182:6,4 [43] x:\dir\subdir\Test\TestComponent.razor) - CSharp - CountValues([with(capacity: 32), "f", "g"]) - CSharpCode - (240:8,7 [112] x:\dir\subdir\Test\TestComponent.razor) - LazyIntermediateToken - (240:8,7 [112] x:\dir\subdir\Test\TestComponent.razor) - CSharp - \n private static int CountValues(System.Collections.Generic.List values)\n => values.Count;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.mappings.txt index aa0a76df1036..682675b9d0c3 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/CollectionExpressionArguments/TestComponent.mappings.txt @@ -19,14 +19,3 @@ Source Location: (182:6,4 [43] x:\dir\subdir\Test\TestComponent.razor) Generated Location: (1405:43,24 [43] ) |CountValues([with(capacity: 32), "f", "g"])| -Source Location: (240:8,7 [112] x:\dir\subdir\Test\TestComponent.razor) -| - private static int CountValues(System.Collections.Generic.List values) - => values.Count; -| -Generated Location: (1684:54,0 [112] ) -| - private static int CountValues(System.Collections.Generic.List values) - => values.Count; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/ExtensionIndexers/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/ExtensionIndexers/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/ExtensionIndexers/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/ExtensionIndexers/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/ExtensionIndexers/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/ExtensionIndexers/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/LabeledBreakAndContinue/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/LabeledBreakAndContinue/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/LabeledBreakAndContinue/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/LabeledBreakAndContinue/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/LabeledBreakAndContinue/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/LabeledBreakAndContinue/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/StringLiteralAttributeOnUnionParameter/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/StringLiteralAttributeOnUnionParameter/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/StringLiteralAttributeOnUnionParameter/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/StringLiteralAttributeOnUnionParameter/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/StringLiteralAttributeOnUnionParameter/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/CSharpPreviewLanguageFeaturesIntegrationTest/StringLiteralAttributeOnUnionParameter/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.codegen.cs index 243edfeb7270..28887446f511 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.codegen.cs @@ -36,15 +36,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. ); } #pragma warning restore 1998 -#nullable restore -#line (3,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - private MyClass c = new(); - -#line default -#line hidden -#nullable disable - } } namespace __Blazor.Test.TestComponent diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..665791569f00 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (3,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + private MyClass c = new(); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..033dbabc1bd9 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (60:2,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (60:2,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyClass c = new();\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..4f595b21c31d --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (60:2,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) +| + private MyClass c = new(); +| +Generated Location: (557:18,0 [42] ) +| + private MyClass c = new(); +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.ir.txt index 563d85539c8b..50fd237df3c4 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.ir.txt @@ -12,8 +12,6 @@ IntermediateToken - (26:0,26 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - c ComponentAttribute - (44:0,44 [1] x:\dir\subdir\Test\TestComponent.cshtml) - BoolParameter - BoolParameter - AttributeStructure.DoubleQuotes IntermediateToken - (44:0,44 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - c - CSharpCode - (60:2,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (60:2,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyClass c = new();\n NamespaceDeclaration - - __Blazor.Test.TestComponent ClassDeclaration - - internal static - TypeInference - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.mappings.txt index 495740dafda8..3c694d08ca5f 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.mappings.txt @@ -8,27 +8,18 @@ Source Location: (44:0,44 [1] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (991:30,0 [1] ) |c| -Source Location: (60:2,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) -| - private MyClass c = new(); -| -Generated Location: (1189:40,0 [42] ) -| - private MyClass c = new(); -| - Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyComponent| -Generated Location: (1683:56,45 [11] ) +Generated Location: (1509:47,45 [11] ) |MyComponent| Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyParameter| -Generated Location: (1864:60,0 [11] ) +Generated Location: (1690:51,0 [11] ) |MyParameter| Source Location: (29:0,29 [13] x:\dir\subdir\Test\TestComponent.cshtml) |BoolParameter| -Generated Location: (2114:69,0 [13] ) +Generated Location: (1940:60,0 [13] ) |BoolParameter| diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.codegen.cs index afb7c37a782a..ded62f22bc95 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.codegen.cs @@ -52,15 +52,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. , 6, global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => c = __value, c))); } #pragma warning restore 1998 -#nullable restore -#line (7,8)-(9,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - private MyClass c = new(); - -#line default -#line hidden -#nullable disable - } } namespace __Blazor.Test.TestComponent diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..9ceb9199c1d2 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (7,8)-(9,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + private MyClass c = new(); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..968ef884afee --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (161:6,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (161:6,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyClass c = new();\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..54e181d0b4ee --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (161:6,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) +| + private MyClass c = new(); +| +Generated Location: (557:18,0 [42] ) +| + private MyClass c = new(); +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.ir.txt index 46578fd9d8fc..1ff6d0114918 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.ir.txt @@ -25,8 +25,6 @@ IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, IntermediateToken - - CSharp - __value => c = __value IntermediateToken - - CSharp - , c) - CSharpCode - (161:6,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (161:6,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyClass c = new();\n NamespaceDeclaration - - __Blazor.Test.TestComponent ClassDeclaration - - internal static - TypeInference - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.mappings.txt index 97f5596e678a..f4d1cbb41611 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.mappings.txt @@ -18,42 +18,33 @@ Source Location: (32:0,32 [1] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1320:46,0 [1] ) |c| -Source Location: (161:6,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) -| - private MyClass c = new(); -| -Generated Location: (1731:56,0 [42] ) -| - private MyClass c = new(); -| - Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyComponent| -Generated Location: (2452:72,45 [11] ) +Generated Location: (2278:63,45 [11] ) |MyComponent| Source Location: (40:1,4 [13] x:\dir\subdir\Test\TestComponent.cshtml) |BoolParameter| -Generated Location: (2632:76,0 [13] ) +Generated Location: (2458:67,0 [13] ) |BoolParameter| Source Location: (66:2,4 [15] x:\dir\subdir\Test\TestComponent.cshtml) |StringParameter| -Generated Location: (2883:85,0 [15] ) +Generated Location: (2709:76,0 [15] ) |StringParameter| Source Location: (93:3,4 [17] x:\dir\subdir\Test\TestComponent.cshtml) |DelegateParameter| -Generated Location: (3136:94,0 [17] ) +Generated Location: (2962:85,0 [17] ) |DelegateParameter| Source Location: (128:4,4 [15] x:\dir\subdir\Test\TestComponent.cshtml) |ObjectParameter| -Generated Location: (3391:103,0 [15] ) +Generated Location: (3217:94,0 [15] ) |ObjectParameter| Source Location: (19:0,19 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyParameter| -Generated Location: (3645:112,0 [11] ) +Generated Location: (3471:103,0 [11] ) |MyParameter| diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.builder.txt new file mode 100644 index 000000000000..f87d83a47a94 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddAttribute("Value", (object)( c )) +[0002] AddAttribute("ValueChanged", (object)(global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => c = __value, c))) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.codegen.cs index 8e79f5ff9e1a..741f5417f6ab 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.codegen.cs @@ -31,15 +31,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (3,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - private MyClass c = new(); - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..1b6265f9ed4e --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (3,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + private MyClass c = new(); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..5353bf77964e --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (42:2,7 [34] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (42:2,7 [34] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyClass c = new();\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..9246db64b15c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (42:2,7 [34] x:\dir\subdir\Test\TestComponent.cshtml) +| + private MyClass c = new(); +| +Generated Location: (557:18,0 [34] ) +| + private MyClass c = new(); +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.ir.txt index 637ad6c495ba..72fd5667cce2 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.ir.txt @@ -16,5 +16,3 @@ IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, IntermediateToken - - CSharp - __value => c = __value IntermediateToken - - CSharp - , c) - CSharpCode - (42:2,7 [34] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (42:2,7 [34] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyClass c = new();\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.mappings.txt index 932f85a83065..cdef12bb82aa 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.mappings.txt @@ -8,12 +8,3 @@ Source Location: (26:0,26 [1] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (861:23,0 [1] ) |c| -Source Location: (42:2,7 [34] x:\dir\subdir\Test\TestComponent.cshtml) -| - private MyClass c = new(); -| -Generated Location: (1301:35,0 [34] ) -| - private MyClass c = new(); -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.builder.txt new file mode 100644 index 000000000000..924fce4aa7b2 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddAttribute("Value", (object)( c1 = c2 )) +[0002] AddAttribute("ValueChanged", (object)(global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => c1 = c2 = __value, c1 = c2))) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.codegen.cs index 9e7e82d5fbdc..3b6b69c43be8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.codegen.cs @@ -31,16 +31,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (3,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - private MyClass c1 = new(); - private MyClass c2 = new(); - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..9252229953d6 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.decl.codegen.cs @@ -0,0 +1,29 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (3,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + private MyClass c1 = new(); + private MyClass c2 = new(); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1a1639c084d3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (48:2,7 [68] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (48:2,7 [68] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyClass c1 = new();\n private MyClass c2 = new();\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..4970fbba59d6 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.decl.mappings.txt @@ -0,0 +1,11 @@ +Source Location: (48:2,7 [68] x:\dir\subdir\Test\TestComponent.cshtml) +| + private MyClass c1 = new(); + private MyClass c2 = new(); +| +Generated Location: (557:18,0 [68] ) +| + private MyClass c1 = new(); + private MyClass c2 = new(); +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.ir.txt index 9be6e3e0949d..ae5080654a39 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.ir.txt @@ -16,5 +16,3 @@ IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, IntermediateToken - - CSharp - __value => c1 = c2 = __value IntermediateToken - - CSharp - , c1 = c2) - CSharpCode - (48:2,7 [68] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (48:2,7 [68] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyClass c1 = new();\n private MyClass c2 = new();\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.mappings.txt index e6f578615b4a..aa29b3babeb4 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.mappings.txt @@ -8,14 +8,3 @@ Source Location: (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (861:23,0 [7] ) |c1 = c2| -Source Location: (48:2,7 [68] x:\dir\subdir\Test\TestComponent.cshtml) -| - private MyClass c1 = new(); - private MyClass c2 = new(); -| -Generated Location: (1319:35,0 [68] ) -| - private MyClass c1 = new(); - private MyClass c2 = new(); -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.codegen.cs index f1e507ec56ad..41d975c23cb3 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.codegen.cs @@ -60,15 +60,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. ); } #pragma warning restore 1998 -#nullable restore -#line (8,8)-(10,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - private MyClass c = new(); - -#line default -#line hidden -#nullable disable - } } namespace __Blazor.Test.TestComponent diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..a5be4fc6c4fa --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (8,8)-(10,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + private MyClass c = new(); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..93a550b7fcd6 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (180:7,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (180:7,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyClass c = new();\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..4bc4249b0ba0 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (180:7,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) +| + private MyClass c = new(); +| +Generated Location: (558:18,0 [42] ) +| + private MyClass c = new(); +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.ir.txt index e140660eebf6..85c47a7e74bf 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.ir.txt @@ -21,8 +21,6 @@ IntermediateToken - (131:4,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => { } ComponentAttribute - (164:5,21 [1] x:\dir\subdir\Test\TestComponent.cshtml) - ObjectParameter - ObjectParameter - AttributeStructure.DoubleQuotes IntermediateToken - (164:5,21 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - c - CSharpCode - (180:7,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (180:7,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private MyClass c = new();\n NamespaceDeclaration - - __Blazor.Test.TestComponent ClassDeclaration - - internal static - TypeInference - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.mappings.txt index 959d3f6e0e52..0af1ccfe864a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.mappings.txt @@ -23,47 +23,38 @@ Source Location: (164:5,21 [1] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1558:54,0 [1] ) |c| -Source Location: (180:7,7 [42] x:\dir\subdir\Test\TestComponent.cshtml) -| - private MyClass c = new(); -| -Generated Location: (1757:64,0 [42] ) -| - private MyClass c = new(); -| - Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyComponent| -Generated Location: (2453:80,45 [11] ) +Generated Location: (2278:71,45 [11] ) |MyComponent| Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyParameter| -Generated Location: (2634:84,0 [11] ) +Generated Location: (2459:75,0 [11] ) |MyParameter| Source Location: (34:1,4 [7] x:\dir\subdir\Test\TestComponent.cshtml) |MyEvent| -Generated Location: (2883:93,0 [7] ) +Generated Location: (2708:84,0 [7] ) |MyEvent| Source Location: (59:2,4 [13] x:\dir\subdir\Test\TestComponent.cshtml) |BoolParameter| -Generated Location: (3128:102,0 [13] ) +Generated Location: (2953:93,0 [13] ) |BoolParameter| Source Location: (85:3,4 [15] x:\dir\subdir\Test\TestComponent.cshtml) |StringParameter| -Generated Location: (3379:111,0 [15] ) +Generated Location: (3204:102,0 [15] ) |StringParameter| Source Location: (112:4,4 [17] x:\dir\subdir\Test\TestComponent.cshtml) |DelegateParameter| -Generated Location: (3632:120,0 [17] ) +Generated Location: (3457:111,0 [17] ) |DelegateParameter| Source Location: (147:5,4 [15] x:\dir\subdir\Test\TestComponent.cshtml) |ObjectParameter| -Generated Location: (3887:129,0 [15] ) +Generated Location: (3712:120,0 [15] ) |ObjectParameter| diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.codegen.cs index ed7f51f3b98a..53bb60f9968d 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.codegen.cs @@ -52,15 +52,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. ); } #pragma warning restore 1998 -#nullable restore -#line (7,8)-(9,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - private readonly MyClass c = new(); - -#line default -#line hidden -#nullable disable - } } namespace __Blazor.Test.TestComponent diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5dc73f1386f9 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (7,8)-(9,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + private readonly MyClass c = new(); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..6acacad38891 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (155:6,7 [51] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (155:6,7 [51] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private readonly MyClass c = new();\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..7f3f51f13de9 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (155:6,7 [51] x:\dir\subdir\Test\TestComponent.cshtml) +| + private readonly MyClass c = new(); +| +Generated Location: (557:18,0 [51] ) +| + private readonly MyClass c = new(); +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.ir.txt index 8e6ee1fe5d93..514f59f22daa 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.ir.txt @@ -19,8 +19,6 @@ IntermediateToken - (106:3,23 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => { } ComponentAttribute - (139:4,21 [1] x:\dir\subdir\Test\TestComponent.cshtml) - ObjectParameter - ObjectParameter - AttributeStructure.DoubleQuotes IntermediateToken - (139:4,21 [1] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - c - CSharpCode - (155:6,7 [51] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (155:6,7 [51] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private readonly MyClass c = new();\n NamespaceDeclaration - - __Blazor.Test.TestComponent ClassDeclaration - - internal static - TypeInference - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.mappings.txt index 398e3e9f530d..485eaccc07c6 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.mappings.txt @@ -18,42 +18,33 @@ Source Location: (139:4,21 [1] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1320:46,0 [1] ) |c| -Source Location: (155:6,7 [51] x:\dir\subdir\Test\TestComponent.cshtml) -| - private readonly MyClass c = new(); -| -Generated Location: (1518:56,0 [51] ) -| - private readonly MyClass c = new(); -| - Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyComponent| -Generated Location: (2149:72,45 [11] ) +Generated Location: (1966:63,45 [11] ) |MyComponent| Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyParameter| -Generated Location: (2330:76,0 [11] ) +Generated Location: (2147:67,0 [11] ) |MyParameter| Source Location: (34:1,4 [13] x:\dir\subdir\Test\TestComponent.cshtml) |BoolParameter| -Generated Location: (2579:85,0 [13] ) +Generated Location: (2396:76,0 [13] ) |BoolParameter| Source Location: (60:2,4 [15] x:\dir\subdir\Test\TestComponent.cshtml) |StringParameter| -Generated Location: (2830:94,0 [15] ) +Generated Location: (2647:85,0 [15] ) |StringParameter| Source Location: (87:3,4 [17] x:\dir\subdir\Test\TestComponent.cshtml) |DelegateParameter| -Generated Location: (3083:103,0 [17] ) +Generated Location: (2900:94,0 [17] ) |DelegateParameter| Source Location: (122:4,4 [15] x:\dir\subdir\Test\TestComponent.cshtml) |ObjectParameter| -Generated Location: (3338:112,0 [15] ) +Generated Location: (3155:103,0 [15] ) |ObjectParameter| diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.builder.txt new file mode 100644 index 000000000000..de5a8c4d3a86 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.builder.txt @@ -0,0 +1,2 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.dynamic. Value ), "Hello") \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.builder.txt new file mode 100644 index 000000000000..c7023fad23cf --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.builder.txt @@ -0,0 +1,2 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.@int. Value ), "Hello") \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.builder.txt new file mode 100644 index 000000000000..be2407e62acb --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.builder.txt @@ -0,0 +1,2 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::MyComponent. Value ), "Hello") \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.codegen.cs index ddc5424c5998..20702d0235aa 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.codegen.cs @@ -30,15 +30,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string nameof(string s) => string.Empty; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..a36a98c086d7 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string nameof(string s) => string.Empty; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..9fa8b45ba06c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (38:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (38:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string nameof(string s) => string.Empty;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..433c8d6a4913 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (38:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string nameof(string s) => string.Empty; +| +Generated Location: (557:18,0 [55] ) +| + public string nameof(string s) => string.Empty; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.ir.txt index a682d897017b..3283ef36653e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.ir.txt @@ -11,5 +11,3 @@ ComponentAttribute - (20:0,20 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - AttributeStructure.DoubleQuotes HtmlContent - (20:0,20 [5] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (20:0,20 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hello - CSharpCode - (38:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (38:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string nameof(string s) => string.Empty;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.mappings.txt index 0f37ae139141..b841aada1c53 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.mappings.txt @@ -8,12 +8,3 @@ Source Location: (13:0,13 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (884:23,0 [5] ) |Value| -Source Location: (38:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string nameof(string s) => string.Empty; -| -Generated Location: (1137:34,0 [55] ) -| - public string nameof(string s) => string.Empty; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.builder.txt new file mode 100644 index 000000000000..96157990b072 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.builder.txt @@ -0,0 +1,2 @@ +[0000] OpenElement("input") +[0001] AddAttribute("onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, async (e) => await Task.Delay(10) )) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..83022283bce4 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::Microsoft.AspNetCore.Components; +#nullable restore +#line (1,2)-(1,30) "x:\dir\subdir\Test\TestComponent.cshtml" +using System.Threading.Tasks + +#nullable disable + ; +#nullable restore +#line (2,2)-(2,43) "x:\dir\subdir\Test\TestComponent.cshtml" +using Microsoft.AspNetCore.Components.Web + +#nullable disable + ; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..85526dcc64fc --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.decl.ir.txt @@ -0,0 +1,9 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks + UsingDirective - (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..539311ee462b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.decl.mappings.txt @@ -0,0 +1,10 @@ +Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) +|using System.Threading.Tasks| +Generated Location: (329:11,0 [28] ) +|using System.Threading.Tasks| + +Source Location: (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) +|using Microsoft.AspNetCore.Components.Web| +Generated Location: (468:17,0 [41] ) +|using Microsoft.AspNetCore.Components.Web| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.builder.txt new file mode 100644 index 000000000000..1cc09bfb7eb4 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.builder.txt @@ -0,0 +1,2 @@ +[0000] OpenElement("input") +[0001] AddAttribute("onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, OnClick )) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs index 14f181b516cb..4218c0488265 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs @@ -41,18 +41,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (4,8)-(9,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - Task OnClick(MouseEventArgs e) - { - return Task.CompletedTask; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..4b665dfef860 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.decl.codegen.cs @@ -0,0 +1,42 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::Microsoft.AspNetCore.Components; +#nullable restore +#line (1,2)-(1,30) "x:\dir\subdir\Test\TestComponent.cshtml" +using System.Threading.Tasks + +#nullable disable + ; +#nullable restore +#line (2,2)-(2,43) "x:\dir\subdir\Test\TestComponent.cshtml" +using Microsoft.AspNetCore.Components.Web + +#nullable disable + ; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (4,8)-(9,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + Task OnClick(MouseEventArgs e) + { + return Task.CompletedTask; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..51f477a2292b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.decl.ir.txt @@ -0,0 +1,11 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks + UsingDirective - (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (112:3,7 [88] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (112:3,7 [88] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(MouseEventArgs e)\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..e7a0dd87656a --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.decl.mappings.txt @@ -0,0 +1,25 @@ +Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) +|using System.Threading.Tasks| +Generated Location: (329:11,0 [28] ) +|using System.Threading.Tasks| + +Source Location: (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) +|using Microsoft.AspNetCore.Components.Web| +Generated Location: (468:17,0 [41] ) +|using Microsoft.AspNetCore.Components.Web| + +Source Location: (112:3,7 [88] x:\dir\subdir\Test\TestComponent.cshtml) +| + Task OnClick(MouseEventArgs e) + { + return Task.CompletedTask; + } +| +Generated Location: (805:29,0 [88] ) +| + Task OnClick(MouseEventArgs e) + { + return Task.CompletedTask; + } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.ir.txt index decee9511262..e723bd48290c 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.ir.txt @@ -14,5 +14,3 @@ IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, IntermediateToken - (92:2,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick IntermediateToken - - CSharp - ) - CSharpCode - (112:3,7 [88] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (112:3,7 [88] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick(MouseEventArgs e)\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt index e5faeb97f0ee..0393c12118c7 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt @@ -13,18 +13,3 @@ Source Location: (92:2,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1218:34,0 [7] ) |OnClick| -Source Location: (112:3,7 [88] x:\dir\subdir\Test\TestComponent.cshtml) -| - Task OnClick(MouseEventArgs e) - { - return Task.CompletedTask; - } -| -Generated Location: (1462:45,0 [88] ) -| - Task OnClick(MouseEventArgs e) - { - return Task.CompletedTask; - } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.builder.txt new file mode 100644 index 000000000000..5cf66508a5e2 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.builder.txt @@ -0,0 +1,2 @@ +[0000] OpenElement("input") +[0001] AddAttribute("onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, async () => await Task.Delay(10) )) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..83022283bce4 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::Microsoft.AspNetCore.Components; +#nullable restore +#line (1,2)-(1,30) "x:\dir\subdir\Test\TestComponent.cshtml" +using System.Threading.Tasks + +#nullable disable + ; +#nullable restore +#line (2,2)-(2,43) "x:\dir\subdir\Test\TestComponent.cshtml" +using Microsoft.AspNetCore.Components.Web + +#nullable disable + ; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..85526dcc64fc --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.decl.ir.txt @@ -0,0 +1,9 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks + UsingDirective - (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..539311ee462b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.decl.mappings.txt @@ -0,0 +1,10 @@ +Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) +|using System.Threading.Tasks| +Generated Location: (329:11,0 [28] ) +|using System.Threading.Tasks| + +Source Location: (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) +|using Microsoft.AspNetCore.Components.Web| +Generated Location: (468:17,0 [41] ) +|using Microsoft.AspNetCore.Components.Web| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.builder.txt new file mode 100644 index 000000000000..1cc09bfb7eb4 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.builder.txt @@ -0,0 +1,2 @@ +[0000] OpenElement("input") +[0001] AddAttribute("onclick", global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, OnClick )) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs index 6fe5b74af130..4218c0488265 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs @@ -41,18 +41,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (4,8)-(9,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - Task OnClick() - { - return Task.CompletedTask; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..87891f5a8e2f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.decl.codegen.cs @@ -0,0 +1,42 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::Microsoft.AspNetCore.Components; +#nullable restore +#line (1,2)-(1,30) "x:\dir\subdir\Test\TestComponent.cshtml" +using System.Threading.Tasks + +#nullable disable + ; +#nullable restore +#line (2,2)-(2,43) "x:\dir\subdir\Test\TestComponent.cshtml" +using Microsoft.AspNetCore.Components.Web + +#nullable disable + ; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (4,8)-(9,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + Task OnClick() + { + return Task.CompletedTask; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..8c5e47be4a17 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.decl.ir.txt @@ -0,0 +1,11 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + UsingDirective - (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) - System.Threading.Tasks + UsingDirective - (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) - Microsoft.AspNetCore.Components.Web + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (112:3,7 [72] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (112:3,7 [72] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick()\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..8a2466b17ee7 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.decl.mappings.txt @@ -0,0 +1,25 @@ +Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml) +|using System.Threading.Tasks| +Generated Location: (329:11,0 [28] ) +|using System.Threading.Tasks| + +Source Location: (32:1,1 [41] x:\dir\subdir\Test\TestComponent.cshtml) +|using Microsoft.AspNetCore.Components.Web| +Generated Location: (468:17,0 [41] ) +|using Microsoft.AspNetCore.Components.Web| + +Source Location: (112:3,7 [72] x:\dir\subdir\Test\TestComponent.cshtml) +| + Task OnClick() + { + return Task.CompletedTask; + } +| +Generated Location: (805:29,0 [72] ) +| + Task OnClick() + { + return Task.CompletedTask; + } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.ir.txt index 64b4249b8ef8..e723bd48290c 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.ir.txt @@ -14,5 +14,3 @@ IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, IntermediateToken - (92:2,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnClick IntermediateToken - - CSharp - ) - CSharpCode - (112:3,7 [72] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (112:3,7 [72] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Task OnClick()\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt index 6447bc5a7bda..0393c12118c7 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt @@ -13,18 +13,3 @@ Source Location: (92:2,17 [7] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1218:34,0 [7] ) |OnClick| -Source Location: (112:3,7 [72] x:\dir\subdir\Test\TestComponent.cshtml) -| - Task OnClick() - { - return Task.CompletedTask; - } -| -Generated Location: (1462:45,0 [72] ) -| - Task OnClick() - { - return Task.CompletedTask; - } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtAtHandled/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtAtHandled/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtAtHandled/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtAtHandled/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtAtHandled/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtAtHandled/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtTransitions/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtTransitions/TestComponent.builder.txt new file mode 100644 index 000000000000..104e0ff30e87 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtTransitions/TestComponent.builder.txt @@ -0,0 +1,2 @@ +[0000] AddContent(x) +[0001] AddContent(x) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtTransitions/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtTransitions/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..ca1dfaa54283 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtTransitions/TestComponent.decl.codegen.cs @@ -0,0 +1,19 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtTransitions/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtTransitions/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..1c85b5f8fd44 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/AtTransitions/TestComponent.decl.ir.txt @@ -0,0 +1,8 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.builder.txt new file mode 100644 index 000000000000..8f14f5e63d8e --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.builder.txt @@ -0,0 +1,4 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)))) +[0003] AddComponentParameter(nameof(global::Test.MyComponent.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>>(() => ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.codegen.cs index b46ee79b0fec..1ffcce5f0648 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.codegen.cs @@ -40,15 +40,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..0e7c490c8cc3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..5e00a1987e71 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.ir.txt index a3f036995b0a..34ddd3e3b6b0 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.ir.txt @@ -19,5 +19,3 @@ ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueExpression - ValueExpression - AttributeStructure.DoubleQuotes CSharpExpression - IntermediateToken - - CSharp - () => ParentValue - CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt index f0e794b8df07..37abf5bc0e5e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1144:31,0 [11] ) |ParentValue| -Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (2190:44,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs index c90d7acc6f03..6551f2abdfb8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs @@ -28,15 +28,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. , 2, global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)), 3, () => ParentValue); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public DateTime ParentValue { get; set; } = DateTime.Now; - -#line default -#line hidden -#nullable disable - } } namespace __Blazor.Test.TestComponent diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..003843cabdca --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public DateTime ParentValue { get; set; } = DateTime.Now; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..a5ce7610f258 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime ParentValue { get; set; } = DateTime.Now;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..fff2d31d32dc --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) +| + public DateTime ParentValue { get; set; } = DateTime.Now; +| +Generated Location: (557:18,0 [65] ) +| + public DateTime ParentValue { get; set; } = DateTime.Now; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.ir.txt index f1103be1ebee..7adcf295fa41 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.ir.txt @@ -19,8 +19,6 @@ ComponentAttribute - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - SomeParamExpression - SomeParamExpression - AttributeStructure.DoubleQuotes CSharpExpression - IntermediateToken - - CSharp - () => ParentValue - CSharpCode - (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime ParentValue { get; set; } = DateTime.Now;\n NamespaceDeclaration - - __Blazor.Test.TestComponent ClassDeclaration - - internal static - TypeInference - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt index 3eb0413482f8..49f3c10fc90a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt @@ -3,22 +3,13 @@ Generated Location: (837:22,0 [11] ) |ParentValue| -Source Location: (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) -| - public DateTime ParentValue { get; set; } = DateTime.Now; -| -Generated Location: (1300:32,0 [65] ) -| - public DateTime ParentValue { get; set; } = DateTime.Now; -| - Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyComponent| -Generated Location: (1916:48,45 [11] ) +Generated Location: (1719:39,45 [11] ) |MyComponent| Source Location: (19:0,19 [9] x:\dir\subdir\Test\TestComponent.cshtml) |SomeParam| -Generated Location: (2106:52,0 [9] ) +Generated Location: (1909:43,0 [9] ) |SomeParam| diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.codegen.cs index 1d68a8a13169..1d3a25a1d730 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.codegen.cs @@ -28,15 +28,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. , 2, global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)), 3, () => ParentValue); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public IEnumerable ParentValue { get; set; } = new [] { DateTime.Now }; - -#line default -#line hidden -#nullable disable - } } namespace __Blazor.Test.TestComponent diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..dcefb45c300c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public IEnumerable ParentValue { get; set; } = new [] { DateTime.Now }; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..268ce331699e --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (54:1,7 [89] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (54:1,7 [89] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public IEnumerable ParentValue { get; set; } = new [] { DateTime.Now };\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..2289964680bc --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (54:1,7 [89] x:\dir\subdir\Test\TestComponent.cshtml) +| + public IEnumerable ParentValue { get; set; } = new [] { DateTime.Now }; +| +Generated Location: (557:18,0 [89] ) +| + public IEnumerable ParentValue { get; set; } = new [] { DateTime.Now }; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.ir.txt index bd46674a4dae..7adcf295fa41 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.ir.txt @@ -19,8 +19,6 @@ ComponentAttribute - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - SomeParamExpression - SomeParamExpression - AttributeStructure.DoubleQuotes CSharpExpression - IntermediateToken - - CSharp - () => ParentValue - CSharpCode - (54:1,7 [89] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (54:1,7 [89] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public IEnumerable ParentValue { get; set; } = new [] { DateTime.Now };\n NamespaceDeclaration - - __Blazor.Test.TestComponent ClassDeclaration - - internal static - TypeInference - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.mappings.txt index e3dc04306be0..3744bdd5c5e5 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.mappings.txt @@ -3,22 +3,13 @@ Generated Location: (837:22,0 [11] ) |ParentValue| -Source Location: (54:1,7 [89] x:\dir\subdir\Test\TestComponent.cshtml) -| - public IEnumerable ParentValue { get; set; } = new [] { DateTime.Now }; -| -Generated Location: (1300:32,0 [89] ) -| - public IEnumerable ParentValue { get; set; } = new [] { DateTime.Now }; -| - Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyComponent| -Generated Location: (2084:48,45 [11] ) +Generated Location: (1863:39,45 [11] ) |MyComponent| Source Location: (19:0,19 [9] x:\dir\subdir\Test\TestComponent.cshtml) |SomeParam| -Generated Location: (2274:52,0 [9] ) +Generated Location: (2053:43,0 [9] ) |SomeParam| diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.builder.txt new file mode 100644 index 000000000000..b90c3bab44cc --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)))) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs index d241bc5e7219..4998025fe5f8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs @@ -39,15 +39,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..0e7c490c8cc3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..5e00a1987e71 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt index 5281f27ba650..1f7fad38bf60 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt @@ -16,5 +16,3 @@ IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, IntermediateToken - - CSharp - __value => ParentValue = __value IntermediateToken - - CSharp - , ParentValue) - CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt index d303cbaa272b..37abf5bc0e5e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1144:31,0 [11] ) |ParentValue| -Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1902:43,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs index 3544a73b7772..4998025fe5f8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs @@ -39,15 +39,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "42"; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..a36a6802e3d2 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "42"; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..bcf6af363829 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "42";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..3ad56270df06 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "42"; +| +Generated Location: (557:18,0 [55] ) +| + public string ParentValue { get; set; } = "42"; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.ir.txt index 753ba0961c8f..1f7fad38bf60 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.ir.txt @@ -16,5 +16,3 @@ IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, IntermediateToken - - CSharp - __value => ParentValue = __value IntermediateToken - - CSharp - , ParentValue) - CSharpCode - (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "42";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt index d20920e6f2f8..37abf5bc0e5e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1144:31,0 [11] ) |ParentValue| -Source Location: (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "42"; -| -Generated Location: (1902:43,0 [55] ) -| - public string ParentValue { get; set; } = "42"; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.builder.txt new file mode 100644 index 000000000000..08d500c32ca2 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.OnChanged), (global::System.Action)(__value => ParentValue = __value)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs index 67a245682d9d..c9dfd38dd70a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs @@ -48,15 +48,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..ff5817691265 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..feb9a78f8a5b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt index d938cb31340d..a292f7a802ec 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt @@ -17,5 +17,3 @@ ComponentAttribute - (58:0,58 [9] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes HtmlContent - (58:0,58 [9] x:\dir\subdir\Test\TestComponent.cshtml) LazyIntermediateToken - (58:0,58 [9] x:\dir\subdir\Test\TestComponent.cshtml) - Html - OnChanged - CSharpCode - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt index 3d27dfd9185e..e1cdfdcc2709 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt @@ -18,12 +18,3 @@ Source Location: (45:0,45 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1541:41,0 [5] ) |Value| -Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1788:52,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.builder.txt new file mode 100644 index 000000000000..ef6207b4ee55 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter("Value", ParentValue) +[0002] AddComponentParameter("OnChanged", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs index 9f1b57b82adb..2bab699d7db8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs @@ -31,15 +31,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..ff5817691265 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..feb9a78f8a5b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt index b96c43722c3a..d778cdd11b84 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt @@ -16,5 +16,3 @@ IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, IntermediateToken - - CSharp - __value => ParentValue = __value IntermediateToken - - CSharp - , ParentValue) - CSharpCode - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt index e89ecb1e93ae..802a18780868 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt @@ -8,12 +8,3 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (861:23,0 [11] ) |ParentValue| -Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1326:35,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.builder.txt new file mode 100644 index 000000000000..627338dde9c5 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.builder.txt @@ -0,0 +1,4 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), (global::System.Action)(__value => ParentValue = __value)) +[0003] AddComponentParameter(nameof(global::Test.MyComponent.ValueExpression), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>>(() => ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.codegen.cs index 2e70a69ed5be..bdea118b165b 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.codegen.cs @@ -40,15 +40,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..0e7c490c8cc3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..5e00a1987e71 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.ir.txt index 0ea9d416143e..44c29115a602 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.ir.txt @@ -17,5 +17,3 @@ ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueExpression - ValueExpression - AttributeStructure.DoubleQuotes CSharpExpression - IntermediateToken - - CSharp - () => ParentValue - CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt index 287dd9227774..37abf5bc0e5e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1144:31,0 [11] ) |ParentValue| -Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1859:44,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs index 6c68f3115f86..3a294ae50f7d 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs @@ -28,15 +28,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. , 2, __value => ParentValue = __value, 3, () => ParentValue); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public DateTime ParentValue { get; set; } = DateTime.Now; - -#line default -#line hidden -#nullable disable - } } namespace __Blazor.Test.TestComponent diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..003843cabdca --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public DateTime ParentValue { get; set; } = DateTime.Now; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..a5ce7610f258 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime ParentValue { get; set; } = DateTime.Now;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..fff2d31d32dc --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) +| + public DateTime ParentValue { get; set; } = DateTime.Now; +| +Generated Location: (557:18,0 [65] ) +| + public DateTime ParentValue { get; set; } = DateTime.Now; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.ir.txt index eba4ca86ad48..716fa9fe55d2 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.ir.txt @@ -17,8 +17,6 @@ ComponentAttribute - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - SomeParamExpression - SomeParamExpression - AttributeStructure.DoubleQuotes CSharpExpression - IntermediateToken - - CSharp - () => ParentValue - CSharpCode - (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime ParentValue { get; set; } = DateTime.Now;\n NamespaceDeclaration - - __Blazor.Test.TestComponent ClassDeclaration - - internal static - TypeInference - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt index 8160196ff97a..88573c2b5f5d 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt @@ -3,22 +3,13 @@ Generated Location: (837:22,0 [11] ) |ParentValue| -Source Location: (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) -| - public DateTime ParentValue { get; set; } = DateTime.Now; -| -Generated Location: (1104:32,0 [65] ) -| - public DateTime ParentValue { get; set; } = DateTime.Now; -| - Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyComponent| -Generated Location: (1688:48,45 [11] ) +Generated Location: (1491:39,45 [11] ) |MyComponent| Source Location: (19:0,19 [9] x:\dir\subdir\Test\TestComponent.cshtml) |SomeParam| -Generated Location: (1878:52,0 [9] ) +Generated Location: (1681:43,0 [9] ) |SomeParam| diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.builder.txt new file mode 100644 index 000000000000..afdb3d08354c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), (global::System.Action)(__value => ParentValue = __value)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs index 3f10ecd4ea10..f2282345aad2 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs @@ -39,15 +39,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..0e7c490c8cc3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..5e00a1987e71 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt index 3313327812ab..73a18ddbabcc 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.ir.txt @@ -14,5 +14,3 @@ ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - AttributeStructure.DoubleQuotes CSharpExpression - IntermediateToken - - CSharp - __value => ParentValue = __value - CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt index 7113285199d7..37abf5bc0e5e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1144:31,0 [11] ) |ParentValue| -Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1571:43,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.builder.txt new file mode 100644 index 000000000000..a6154d33e544 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.dynamic. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.dynamic.ValueChanged), (global::System.Action)(__value => ParentValue = __value)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.codegen.cs index bdf2d365142c..53f76c65e000 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.codegen.cs @@ -39,15 +39,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..24ed405a9f77 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (46:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (46:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..926bbdf80cc4 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (46:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.ir.txt index 9e7c54ff99d3..8580b2a1e962 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.ir.txt @@ -14,5 +14,3 @@ ComponentAttribute - (22:0,22 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - AttributeStructure.DoubleQuotes CSharpExpression - IntermediateToken - - CSharp - __value => ParentValue = __value - CSharpCode - (46:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (46:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.mappings.txt index 5dacd46daab7..7a07a4e83ceb 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (22:0,22 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1136:31,0 [11] ) |ParentValue| -Source Location: (46:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1559:43,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.builder.txt new file mode 100644 index 000000000000..738eb1c7ee86 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.@int. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.@int.ValueChanged), (global::System.Action)(__value => ParentValue = __value)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.codegen.cs index 94bebec1e54a..3f961f7ce9fa 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.codegen.cs @@ -39,15 +39,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..d36693498aa8 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (42:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (42:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..88540d688584 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (42:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.ir.txt index 29e2199fe71b..a38936bc80ab 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.ir.txt @@ -14,5 +14,3 @@ ComponentAttribute - (18:0,18 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - AttributeStructure.DoubleQuotes CSharpExpression - IntermediateToken - - CSharp - __value => ParentValue = __value - CSharpCode - (42:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (42:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.mappings.txt index e2b7b07ef593..46df4cca4531 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (18:0,18 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1130:31,0 [11] ) |ParentValue| -Source Location: (42:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1550:43,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.builder.txt new file mode 100644 index 000000000000..2509ab39404b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::MyComponent.ValueChanged), (global::System.Action)(__value => ParentValue = __value)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.codegen.cs index aa9e2409461d..64b8c82b329a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.codegen.cs @@ -39,15 +39,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..0e7c490c8cc3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..5e00a1987e71 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.ir.txt index 3313327812ab..73a18ddbabcc 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.ir.txt @@ -14,5 +14,3 @@ ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - AttributeStructure.DoubleQuotes CSharpExpression - IntermediateToken - - CSharp - __value => ParentValue = __value - CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.mappings.txt index 3e5eccb4f8e6..038e1b50c849 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1134:31,0 [11] ) |ParentValue| -Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1556:43,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.codegen.cs index de4d84d64951..f2282345aad2 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.codegen.cs @@ -39,17 +39,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - - public string nameof(string s) => string.Empty; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..3a092c365054 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + + public string nameof(string s) => string.Empty; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..52b1036f344d --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (50:1,7 [105] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (50:1,7 [105] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public string nameof(string s) => string.Empty;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..ddd3dacf3b74 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.decl.mappings.txt @@ -0,0 +1,13 @@ +Source Location: (50:1,7 [105] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; + + public string nameof(string s) => string.Empty; +| +Generated Location: (557:18,0 [105] ) +| + public int ParentValue { get; set; } = 42; + + public string nameof(string s) => string.Empty; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.ir.txt index 9c93d6a629d4..73a18ddbabcc 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.ir.txt @@ -14,5 +14,3 @@ ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - AttributeStructure.DoubleQuotes CSharpExpression - IntermediateToken - - CSharp - __value => ParentValue = __value - CSharpCode - (50:1,7 [105] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [105] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public string nameof(string s) => string.Empty;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.mappings.txt index 389163b27231..37abf5bc0e5e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.mappings.txt @@ -13,16 +13,3 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1144:31,0 [11] ) |ParentValue| -Source Location: (50:1,7 [105] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; - - public string nameof(string s) => string.Empty; -| -Generated Location: (1571:43,0 [105] ) -| - public int ParentValue { get; set; } = 42; - - public string nameof(string s) => string.Empty; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.builder.txt new file mode 100644 index 000000000000..e77818190cdb --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter("Value", ParentValue) +[0002] AddComponentParameter("ValueChanged", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs index 40682ed4943e..24246f1a4e72 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs @@ -31,15 +31,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..0e7c490c8cc3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..5e00a1987e71 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt index 763bfea27d0b..7bf3a43040e5 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt @@ -16,5 +16,3 @@ IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, IntermediateToken - - CSharp - __value => ParentValue = __value IntermediateToken - - CSharp - , ParentValue) - CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt index bd59285ba0dc..802a18780868 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt @@ -8,12 +8,3 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (861:23,0 [11] ) |ParentValue| -Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1329:35,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs index ceb8519409b7..f2282345aad2 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs @@ -39,15 +39,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "42"; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..a36a6802e3d2 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "42"; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..bcf6af363829 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "42";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..3ad56270df06 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "42"; +| +Generated Location: (557:18,0 [55] ) +| + public string ParentValue { get; set; } = "42"; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.ir.txt index 21af77f7f386..73a18ddbabcc 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.ir.txt @@ -14,5 +14,3 @@ ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - AttributeStructure.DoubleQuotes CSharpExpression - IntermediateToken - - CSharp - __value => ParentValue = __value - CSharpCode - (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "42";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt index 32a66edf6888..37abf5bc0e5e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1144:31,0 [11] ) |ParentValue| -Source Location: (50:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "42"; -| -Generated Location: (1571:43,0 [55] ) -| - public string ParentValue { get; set; } = "42"; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.builder.txt new file mode 100644 index 000000000000..ef1deec3788c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), (global::System.Action)( __value => { ParentValue = __value; global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeSynchronousDelegate( Update ); })) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.codegen.cs index c699498edf2c..fe02850d969e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.codegen.cs @@ -56,17 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - - public void Update() { } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..67b7c9745630 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + + public void Update() { } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..9a679104289d --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (81:1,7 [82] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (81:1,7 [82] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public void Update() { }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..c8a8d1934586 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.decl.mappings.txt @@ -0,0 +1,13 @@ +Source Location: (81:1,7 [82] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; + + public void Update() { } +| +Generated Location: (557:18,0 [82] ) +| + public int ParentValue { get; set; } = 42; + + public void Update() { } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.ir.txt index e71b569158d6..4d8fcc64fcfe 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.ir.txt @@ -18,5 +18,3 @@ IntermediateToken - - CSharp - ); } ComponentAttribute - (62:0,62 [6] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes IntermediateToken - (62:0,62 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Update - CSharpCode - (81:1,7 [82] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (81:1,7 [82] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public void Update() { }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.mappings.txt index 1d6b8c0ca439..52f54c753193 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.mappings.txt @@ -23,16 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1805:49,0 [5] ) |Value| -Source Location: (81:1,7 [82] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; - - public void Update() { } -| -Generated Location: (2052:60,0 [82] ) -| - public int ParentValue { get; set; } = 42; - - public void Update() { } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.builder.txt new file mode 100644 index 000000000000..0c494c841716 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), (global::System.Action)( __value => { ParentValue = __value; global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeSynchronousDelegate( () => { } ); })) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.codegen.cs index da41ad832ef3..439733befea1 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.codegen.cs @@ -56,15 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..8ec6f85302fd --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..a973bc03f97f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.ir.txt index c6a917215db5..c582640258c4 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.ir.txt @@ -18,5 +18,3 @@ IntermediateToken - - CSharp - ); } ComponentAttribute - (62:0,62 [9] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes IntermediateToken - (62:0,62 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => { } - CSharpCode - (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.mappings.txt index 0a196f90717a..f9367f92e371 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.mappings.txt @@ -23,12 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1808:49,0 [5] ) |Value| -Source Location: (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (2055:60,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.codegen.cs index 9b39b66b21aa..6b3187c2caca 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.codegen.cs @@ -56,15 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..f1c3dc4cf797 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (135:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (135:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..1c6642612163 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (135:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.ir.txt index 4f8428f6776e..018c595c1785 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.ir.txt @@ -17,5 +17,3 @@ ComponentAttribute - (60:0,60 [62] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes CSharpExpression - (60:0,60 [62] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (60:0,60 [62] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - (value => { ParentValue = value; return Task.CompletedTask; }) - CSharpCode - (135:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (135:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.mappings.txt index 5eef8000b4d2..637d04c0b400 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.mappings.txt @@ -23,12 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1723:49,0 [5] ) |Value| -Source Location: (135:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1970:60,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.codegen.cs index 08d6a525c734..6f042aea0e27 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.codegen.cs @@ -56,16 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - public EventCallback UpdateValue { get; set; } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..e7a1fccafe7f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.decl.codegen.cs @@ -0,0 +1,29 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + public EventCallback UpdateValue { get; set; } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..5629ff0bd11e --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (86:1,7 [102] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (86:1,7 [102] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n public EventCallback UpdateValue { get; set; }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..d4e57ede2372 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.decl.mappings.txt @@ -0,0 +1,11 @@ +Source Location: (86:1,7 [102] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; + public EventCallback UpdateValue { get; set; } +| +Generated Location: (557:18,0 [102] ) +| + public int ParentValue { get; set; } = 42; + public EventCallback UpdateValue { get; set; } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.ir.txt index c969104d7230..1d27648dde3f 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.ir.txt @@ -20,5 +20,3 @@ IntermediateToken - - CSharp - , ParentValue) ComponentAttribute - (62:0,62 [11] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes IntermediateToken - (62:0,62 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - UpdateValue - CSharpCode - (86:1,7 [102] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (86:1,7 [102] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n public EventCallback UpdateValue { get; set; }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.mappings.txt index 3269579d570a..67dbcfa6448a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.mappings.txt @@ -23,14 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (2286:49,0 [5] ) |Value| -Source Location: (86:1,7 [102] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; - public EventCallback UpdateValue { get; set; } -| -Generated Location: (2533:60,0 [102] ) -| - public int ParentValue { get; set; } = 42; - public EventCallback UpdateValue { get; set; } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.builder.txt new file mode 100644 index 000000000000..ca8479bb2c64 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredBindSetter(callback: __value => { ParentValue = __value; return global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(callback: () => { } ); }, value: ParentValue), ParentValue)))) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.codegen.cs index 7e7c37bc262b..e9edbd1a594c 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.codegen.cs @@ -56,15 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..8ec6f85302fd --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..a973bc03f97f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.ir.txt index c7dacfaa7d0d..a4b39150a264 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.ir.txt @@ -20,5 +20,3 @@ IntermediateToken - - CSharp - , ParentValue) ComponentAttribute - (62:0,62 [9] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes IntermediateToken - (62:0,62 [9] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => { } - CSharpCode - (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.mappings.txt index 63972f775d8d..d2466447bf94 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.mappings.txt @@ -23,12 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (2284:49,0 [5] ) |Value| -Source Location: (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (2531:60,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.builder.txt new file mode 100644 index 000000000000..870171c129a4 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredBindSetter(callback: __value => { ParentValue = __value; return global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(callback: UpdateValue ); }, value: ParentValue), ParentValue)))) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.codegen.cs index 5645bfacdd8a..6f042aea0e27 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.codegen.cs @@ -56,17 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - - public Task UpdateValue() => Task.CompletedTask; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..d8caa6c1f700 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + + public Task UpdateValue() => Task.CompletedTask; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..6e7a395bdf54 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (86:1,7 [106] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (86:1,7 [106] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public Task UpdateValue() => Task.CompletedTask;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..cb2a9d0517aa --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.decl.mappings.txt @@ -0,0 +1,13 @@ +Source Location: (86:1,7 [106] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; + + public Task UpdateValue() => Task.CompletedTask; +| +Generated Location: (557:18,0 [106] ) +| + public int ParentValue { get; set; } = 42; + + public Task UpdateValue() => Task.CompletedTask; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.ir.txt index a8f1f83a0bbf..1d27648dde3f 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.ir.txt @@ -20,5 +20,3 @@ IntermediateToken - - CSharp - , ParentValue) ComponentAttribute - (62:0,62 [11] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes IntermediateToken - (62:0,62 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - UpdateValue - CSharpCode - (86:1,7 [106] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (86:1,7 [106] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public Task UpdateValue() => Task.CompletedTask;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.mappings.txt index ad89f5f3b42b..67dbcfa6448a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.mappings.txt @@ -23,16 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (2286:49,0 [5] ) |Value| -Source Location: (86:1,7 [106] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; - - public Task UpdateValue() => Task.CompletedTask; -| -Generated Location: (2533:60,0 [106] ) -| - public int ParentValue { get; set; } = 42; - - public Task UpdateValue() => Task.CompletedTask; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.builder.txt new file mode 100644 index 000000000000..ae5579c5d457 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.builder.txt @@ -0,0 +1,5 @@ +[0000] OpenComponent() +[0001] AddAttribute("ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((_) => (__builder2) => { __builder2.OpenComponent(2); __builder2.AddComponentParameter(3, nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )); __builder2.AddComponentParameter(4, nameof(global::Test.MyComponent.ValueChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredBindSetter(callback: __value => { ParentValue = __value; return global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(callback: OnAfter ); }, value: ParentValue), ParentValue)))); var (_, _) = (nameof(global::Test.MyComponent. Value ), 0); __builder2.CloseComponent(); } )) +[0002] OpenComponent() +[0003] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0004] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredBindSetter(callback: __value => { ParentValue = __value; return global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(callback: OnAfter ); }, value: ParentValue), ParentValue)))) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.codegen.cs index 4a7c53a081de..5cab7ce2f689 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.codegen.cs @@ -61,16 +61,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (4,8)-(7,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - public void OnAfter() { } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..6b86cd767a03 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.decl.codegen.cs @@ -0,0 +1,29 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (4,8)-(7,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + public void OnAfter() { } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..44703c154c7b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (131:3,7 [81] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (131:3,7 [81] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n public void OnAfter() { }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..61a2b898308c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.decl.mappings.txt @@ -0,0 +1,11 @@ +Source Location: (131:3,7 [81] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; + public void OnAfter() { } +| +Generated Location: (557:18,0 [81] ) +| + public int ParentValue { get; set; } = 42; + public void OnAfter() { } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.ir.txt index 42b92fac1b09..5aaa06c99b0a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.ir.txt @@ -22,5 +22,3 @@ IntermediateToken - - CSharp - , ParentValue) ComponentAttribute - (92:1,62 [7] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes IntermediateToken - (92:1,62 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - OnAfter - CSharpCode - (131:3,7 [81] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (131:3,7 [81] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n public void OnAfter() { }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.mappings.txt index 035254f269d1..37e5508e9db0 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_InsideTemplateWithDiscardContext/TestComponent.mappings.txt @@ -28,14 +28,3 @@ Source Location: (79:1,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (2548:51,0 [5] ) |Value| -Source Location: (131:3,7 [81] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; - public void OnAfter() { } -| -Generated Location: (2877:65,0 [81] ) -| - public int ParentValue { get; set; } = 42; - public void OnAfter() { } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.builder.txt new file mode 100644 index 000000000000..d2a3c56f7cd3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), (global::System.Func)(async __value => { ParentValue = __value; await global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate( Update ); })) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.codegen.cs index 937a09921a77..c89ff4e6b84f 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.codegen.cs @@ -56,17 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - - public Task Update() => Task.CompletedTask; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..1135c0cbe1e4 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + + public Task Update() => Task.CompletedTask; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..ba72d195119a --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (81:1,7 [101] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (81:1,7 [101] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public Task Update() => Task.CompletedTask;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..b6472e2750f0 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.decl.mappings.txt @@ -0,0 +1,13 @@ +Source Location: (81:1,7 [101] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; + + public Task Update() => Task.CompletedTask; +| +Generated Location: (557:18,0 [101] ) +| + public int ParentValue { get; set; } = 42; + + public Task Update() => Task.CompletedTask; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.ir.txt index 4d99e25d512a..0054008eac0d 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.ir.txt @@ -18,5 +18,3 @@ IntermediateToken - - CSharp - ); } ComponentAttribute - (62:0,62 [6] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes IntermediateToken - (62:0,62 [6] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - Update - CSharpCode - (81:1,7 [101] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (81:1,7 [101] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public Task Update() => Task.CompletedTask;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.mappings.txt index 484b587483c2..f20b7918dbcc 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.mappings.txt @@ -23,16 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1853:49,0 [5] ) |Value| -Source Location: (81:1,7 [101] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; - - public Task Update() => Task.CompletedTask; -| -Generated Location: (2100:60,0 [101] ) -| - public int ParentValue { get; set; } = 42; - - public Task Update() => Task.CompletedTask; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.builder.txt new file mode 100644 index 000000000000..44c95f3961f4 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), (global::System.Func)(async __value => { ParentValue = __value; await global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate( () => { return Task.CompletedTask; } ); })) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.codegen.cs index 95776ee7ab6a..f40a74779a99 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.codegen.cs @@ -56,15 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..2ba787bd2bb8 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (111:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (111:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..6ae7d50f6633 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (111:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.ir.txt index 17e865abde28..883b069e67c2 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.ir.txt @@ -18,5 +18,3 @@ IntermediateToken - - CSharp - ); } ComponentAttribute - (62:0,62 [36] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes IntermediateToken - (62:0,62 [36] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - () => { return Task.CompletedTask; } - CSharpCode - (111:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (111:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.mappings.txt index a67ca593cc6e..eb64928701a4 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.mappings.txt @@ -23,12 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1883:49,0 [5] ) |Value| -Source Location: (111:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (2130:60,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.builder.txt new file mode 100644 index 000000000000..6fbd045f05b8 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), (global::System.Action)( UpdateValue )) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.codegen.cs index 14be5e704962..fb776b7cc3b5 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.codegen.cs @@ -56,17 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - - public void UpdateValue(int value) => ParentValue = value; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..d50f85d8029b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + + public void UpdateValue(int value) => ParentValue = value; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..687adda683da --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public void UpdateValue(int value) => ParentValue = value;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..3392cf1a462f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.decl.mappings.txt @@ -0,0 +1,13 @@ +Source Location: (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; + + public void UpdateValue(int value) => ParentValue = value; +| +Generated Location: (557:18,0 [116] ) +| + public int ParentValue { get; set; } = 42; + + public void UpdateValue(int value) => ParentValue = value; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.ir.txt index 55b2e1155bcd..ed45184b8de6 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.ir.txt @@ -17,5 +17,3 @@ ComponentAttribute - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes CSharpExpression - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - UpdateValue - CSharpCode - (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public void UpdateValue(int value) => ParentValue = value;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.mappings.txt index e939e9862d85..ebb253438082 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.mappings.txt @@ -23,16 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1671:49,0 [5] ) |Value| -Source Location: (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; - - public void UpdateValue(int value) => ParentValue = value; -| -Generated Location: (1918:60,0 [116] ) -| - public int ParentValue { get; set; } = 42; - - public void UpdateValue(int value) => ParentValue = value; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.builder.txt new file mode 100644 index 000000000000..5f01fd901a85 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), (global::System.Action)( value => ParentValue = value )) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.codegen.cs index 915960acebb7..8a14f91e84e6 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.codegen.cs @@ -56,15 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..9f25cb4cd5ba --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..9c4637fdb719 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.ir.txt index 5247b10600fd..9051d847d613 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.ir.txt @@ -17,5 +17,3 @@ ComponentAttribute - (60:0,60 [28] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes CSharpExpression - (60:0,60 [28] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (60:0,60 [28] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - value => ParentValue = value - CSharpCode - (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.mappings.txt index 286c0c546bf9..945590b9e457 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.mappings.txt @@ -23,12 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1688:49,0 [5] ) |Value| -Source Location: (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1935:60,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.builder.txt new file mode 100644 index 000000000000..9c0cd9681d0f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, UpdateValue , ParentValue)))) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.codegen.cs index 10c951bcb07d..dc3bd277599b 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.codegen.cs @@ -56,16 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - public EventCallback UpdateValue { get; set; } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..4fbe1e1bf1c4 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.decl.codegen.cs @@ -0,0 +1,29 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + public EventCallback UpdateValue { get; set; } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..dd329a93a7bd --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (84:1,7 [107] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (84:1,7 [107] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n public EventCallback UpdateValue { get; set; }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..141c02623ef7 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.decl.mappings.txt @@ -0,0 +1,11 @@ +Source Location: (84:1,7 [107] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; + public EventCallback UpdateValue { get; set; } +| +Generated Location: (557:18,0 [107] ) +| + public int ParentValue { get; set; } = 42; + public EventCallback UpdateValue { get; set; } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.ir.txt index e4e994c165cd..e6f1da06d3d8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.ir.txt @@ -19,5 +19,3 @@ ComponentAttribute - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes CSharpExpression - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - UpdateValue - CSharpCode - (84:1,7 [107] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (84:1,7 [107] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n public EventCallback UpdateValue { get; set; }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.mappings.txt index 42fb5b899402..a2d440caf72e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.mappings.txt @@ -23,14 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (2002:49,0 [5] ) |Value| -Source Location: (84:1,7 [107] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; - public EventCallback UpdateValue { get; set; } -| -Generated Location: (2249:60,0 [107] ) -| - public int ParentValue { get; set; } = 42; - public EventCallback UpdateValue { get; set; } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.builder.txt new file mode 100644 index 000000000000..788629aa12c1 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, value => ParentValue = value , ParentValue)))) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.codegen.cs index 323c0955ab0d..1f808b719e62 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.codegen.cs @@ -56,15 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..9f25cb4cd5ba --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..9c4637fdb719 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.ir.txt index 6edd0f74f1b0..e2592c85db37 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.ir.txt @@ -19,5 +19,3 @@ ComponentAttribute - (60:0,60 [28] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes CSharpExpression - (60:0,60 [28] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (60:0,60 [28] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - value => ParentValue = value - CSharpCode - (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.mappings.txt index 6fbd27d697e2..a825732beee3 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.mappings.txt @@ -23,12 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (2019:49,0 [5] ) |Value| -Source Location: (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (2266:60,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.builder.txt new file mode 100644 index 000000000000..9c0cd9681d0f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>(global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, UpdateValue , ParentValue)))) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.codegen.cs index 2b2dd66fdf05..dc3bd277599b 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.codegen.cs @@ -56,17 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - - public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..7b8dfb6ebe3d --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + + public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..f623740f697f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..fa189440abec --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.decl.mappings.txt @@ -0,0 +1,13 @@ +Source Location: (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; + + public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } +| +Generated Location: (557:18,0 [144] ) +| + public int ParentValue { get; set; } = 42; + + public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.ir.txt index cf2c57abcfc4..e6f1da06d3d8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.ir.txt @@ -19,5 +19,3 @@ ComponentAttribute - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes CSharpExpression - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - UpdateValue - CSharpCode - (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.mappings.txt index 5c23a0b2dee4..a2d440caf72e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.mappings.txt @@ -23,16 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (2002:49,0 [5] ) |Value| -Source Location: (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; - - public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } -| -Generated Location: (2249:60,0 [144] ) -| - public int ParentValue { get; set; } = 42; - - public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.codegen.cs index 6a48dfe99e26..2f5e26729a74 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.codegen.cs @@ -56,17 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - - public void UpdateValue(int value) => ParentValue = value; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..d50f85d8029b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + + public void UpdateValue(int value) => ParentValue = value; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..687adda683da --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public void UpdateValue(int value) => ParentValue = value;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..3392cf1a462f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.decl.mappings.txt @@ -0,0 +1,13 @@ +Source Location: (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; + + public void UpdateValue(int value) => ParentValue = value; +| +Generated Location: (557:18,0 [116] ) +| + public int ParentValue { get; set; } = 42; + + public void UpdateValue(int value) => ParentValue = value; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.ir.txt index 55b2e1155bcd..ed45184b8de6 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.ir.txt @@ -17,5 +17,3 @@ ComponentAttribute - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes CSharpExpression - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - UpdateValue - CSharpCode - (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public void UpdateValue(int value) => ParentValue = value;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.mappings.txt index 59445018bde3..8cdeed177b51 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.mappings.txt @@ -23,16 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1673:49,0 [5] ) |Value| -Source Location: (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; - - public void UpdateValue(int value) => ParentValue = value; -| -Generated Location: (1920:60,0 [116] ) -| - public int ParentValue { get; set; } = 42; - - public void UpdateValue(int value) => ParentValue = value; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.builder.txt new file mode 100644 index 000000000000..0ab0a0d57fc7 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), (global::System.Func)( UpdateValue )) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.codegen.cs index 67e33dfd07dc..1ed97ae7e8aa 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.codegen.cs @@ -56,17 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - - public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..7b8dfb6ebe3d --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + + public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..f623740f697f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..fa189440abec --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.decl.mappings.txt @@ -0,0 +1,13 @@ +Source Location: (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; + + public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } +| +Generated Location: (557:18,0 [144] ) +| + public int ParentValue { get; set; } = 42; + + public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.ir.txt index 996cf120e612..ed45184b8de6 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.ir.txt @@ -17,5 +17,3 @@ ComponentAttribute - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes CSharpExpression - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - UpdateValue - CSharpCode - (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.mappings.txt index fee006fd56a0..9e0c52647421 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.mappings.txt @@ -23,16 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1706:49,0 [5] ) |Value| -Source Location: (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; - - public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } -| -Generated Location: (1953:60,0 [144] ) -| - public int ParentValue { get; set; } = 42; - - public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.builder.txt new file mode 100644 index 000000000000..0a2a20eeed9c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.MyComponent. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( ParentValue )) +[0002] AddComponentParameter(nameof(global::Test.MyComponent.ValueChanged), (global::System.Func)( value => { ParentValue = value; return Task.CompletedTask; } )) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.codegen.cs index d112487ae5f0..b1a417b81156 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.codegen.cs @@ -56,15 +56,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..ee8321391250 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (133:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (133:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..9c5eb90064bb --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (133:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.ir.txt index 623bd5d8c24e..60169ff09535 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.ir.txt @@ -17,5 +17,3 @@ ComponentAttribute - (60:0,60 [60] x:\dir\subdir\Test\TestComponent.cshtml) - bind-Value - Value - AttributeStructure.DoubleQuotes CSharpExpression - (60:0,60 [60] x:\dir\subdir\Test\TestComponent.cshtml) IntermediateToken - (60:0,60 [60] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - value => { ParentValue = value; return Task.CompletedTask; } - CSharpCode - (133:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (133:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.mappings.txt index cfca11564028..8be14cf0fab5 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.mappings.txt @@ -23,12 +23,3 @@ Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1756:49,0 [5] ) |Value| -Source Location: (133:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (2003:60,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.builder.txt new file mode 100644 index 000000000000..0c55b069d493 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenComponent() +[0001] AddComponentParameter(nameof(global::Test.InputText. Value ), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( person.Name )) +[0002] AddComponentParameter(nameof(global::Test.InputText.ValueChanged), (global::System.Action)(__value => person.Name = __value)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.codegen.cs index 9d8396d52340..0c36b0089496 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.codegen.cs @@ -39,15 +39,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseComponent(); } #pragma warning restore 1998 -#nullable restore -#line (4,2)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - Person person = new Person(); - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..bddcd1782070 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (4,2)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + Person person = new Person(); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..505e7490f44f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (56:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (56:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Person person = new Person();\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..5f43789f55d9 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (56:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml) +| + Person person = new Person(); +| +Generated Location: (557:18,0 [37] ) +| + Person person = new Person(); +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.ir.txt index f669b77eda9a..19a40bf20828 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.ir.txt @@ -14,5 +14,3 @@ ComponentAttribute - (24:0,24 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - AttributeStructure.DoubleQuotes CSharpExpression - IntermediateToken - - CSharp - __value => person.Name = __value - CSharpCode - (56:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (56:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n Person person = new Person();\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.mappings.txt index 21143b122597..232a0f9c8f94 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (24:0,24 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1141:31,0 [11] ) |person.Name| -Source Location: (56:3,1 [37] x:\dir\subdir\Test\TestComponent.cshtml) -| - Person person = new Person(); -| -Generated Location: (1567:43,0 [37] ) -| - Person person = new Person(); -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.builder.txt new file mode 100644 index 000000000000..704df2d489c3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenElement("div") +[0001] AddAttribute("value", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( ParentValue , culture: CultureInfo.InvariantCulture )) +[0002] AddAttribute("onchange", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue, culture: CultureInfo.InvariantCulture)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.codegen.cs index 35a313f0bfc8..5d807406fa03 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.codegen.cs @@ -46,15 +46,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (3,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..96eda5b06841 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.decl.codegen.cs @@ -0,0 +1,34 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; +#nullable restore +#line (1,2)-(1,28) "x:\dir\subdir\Test\TestComponent.cshtml" +using System.Globalization + +#nullable disable + ; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (3,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..9946ae0a200b --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.decl.ir.txt @@ -0,0 +1,11 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + UsingDirective - (1:0,1 [26] x:\dir\subdir\Test\TestComponent.cshtml) - System.Globalization + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (152:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (152:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..7cbb176bc2b9 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.decl.mappings.txt @@ -0,0 +1,14 @@ +Source Location: (1:0,1 [26] x:\dir\subdir\Test\TestComponent.cshtml) +|using System.Globalization| +Generated Location: (372:12,0 [26] ) +|using System.Globalization| + +Source Location: (152:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; +| +Generated Location: (694:24,0 [55] ) +| + public string ParentValue { get; set; } = "hi"; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.ir.txt index 0b8e842670cf..308a19e61422 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.ir.txt @@ -24,5 +24,3 @@ IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - , culture: CultureInfo.InvariantCulture IntermediateToken - - CSharp - ) - CSharpCode - (152:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (152:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.mappings.txt index f73ee69f03fc..97e4143da69f 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithCulture/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (111:1,82 [28] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1205:37,0 [28] ) |CultureInfo.InvariantCulture| -Source Location: (152:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1747:50,0 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.builder.txt new file mode 100644 index 000000000000..bd9707cccc9a --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.builder.txt @@ -0,0 +1,4 @@ +[0000] OpenElement("input") +[0001] AddAttribute("type", "text") +[0002] AddAttribute("value", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( CurrentDate , format: "MM/dd")) +[0003] AddAttribute("onchange", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value, CurrentDate, format: "MM/dd")) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs index 1744f8733065..a72d65b46880 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs @@ -33,15 +33,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..f91162659fab --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..557bc22249af --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (113:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (113:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..fc5107666ea2 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (113:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) +| + public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); +| +Generated Location: (557:18,0 [77] ) +| + public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.ir.txt index e762e632b671..c56ae86aa8cc 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.ir.txt @@ -26,5 +26,3 @@ IntermediateToken - - CSharp - CurrentDate IntermediateToken - - CSharp - , format: "MM/dd" IntermediateToken - - CSharp - ) - CSharpCode - (113:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (113:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt index 0a46ee3e3ca5..ba0e5b7e33d6 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt @@ -3,12 +3,3 @@ Generated Location: (955:24,0 [11] ) |CurrentDate| -Source Location: (113:1,7 [77] x:\dir\subdir\Test\TestComponent.cshtml) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -| -Generated Location: (1475:37,0 [77] ) -| - public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1); -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.builder.txt new file mode 100644 index 000000000000..8303913c1075 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.builder.txt @@ -0,0 +1,4 @@ +[0000] OpenElement("input") +[0001] AddAttribute("type", "text") +[0002] AddAttribute("value", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( ParentValue )) +[0003] AddAttribute("onchange", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs index 26dd4f19d0e1..c5e25c7acc13 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs @@ -33,15 +33,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5f3914d5543c --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public int ParentValue { get; set; } = 42; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..6838347d7b99 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (86:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (86:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..5a4f9aecea0e --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (86:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) +| + public int ParentValue { get; set; } = 42; +| +Generated Location: (557:18,0 [50] ) +| + public int ParentValue { get; set; } = 42; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.ir.txt index ee8823fd3eb4..dc1f34c78280 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.ir.txt @@ -23,5 +23,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (86:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (86:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt index 6c9543c081d6..829f401b348b 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt @@ -3,12 +3,3 @@ Generated Location: (955:24,0 [11] ) |ParentValue| -Source Location: (86:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1441:37,0 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.builder.txt new file mode 100644 index 000000000000..d0bdbded4e5a --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenElement("div") +[0001] AddAttribute("myvalue", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( ParentValue , culture: CultureInfo.InvariantCulture )) +[0002] AddAttribute("anotherevent", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue, culture: CultureInfo.InvariantCulture)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.codegen.cs index 9816e1d985c5..29d3817ef067 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.codegen.cs @@ -46,15 +46,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (3,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..96eda5b06841 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.decl.codegen.cs @@ -0,0 +1,34 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; +#nullable restore +#line (1,2)-(1,28) "x:\dir\subdir\Test\TestComponent.cshtml" +using System.Globalization + +#nullable disable + ; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (3,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..adc40e63f983 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.decl.ir.txt @@ -0,0 +1,11 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + UsingDirective - (1:0,1 [26] x:\dir\subdir\Test\TestComponent.cshtml) - System.Globalization + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (156:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (156:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..d28844542777 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.decl.mappings.txt @@ -0,0 +1,14 @@ +Source Location: (1:0,1 [26] x:\dir\subdir\Test\TestComponent.cshtml) +|using System.Globalization| +Generated Location: (372:12,0 [26] ) +|using System.Globalization| + +Source Location: (156:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; +| +Generated Location: (694:24,0 [55] ) +| + public string ParentValue { get; set; } = "hi"; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.ir.txt index c68a1884af27..afd7f87a1b97 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.ir.txt @@ -24,5 +24,3 @@ IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - , culture: CultureInfo.InvariantCulture IntermediateToken - - CSharp - ) - CSharpCode - (156:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (156:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.mappings.txt index 53d22556437c..17194f632dad 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithCulture/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (115:1,86 [28] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1207:37,0 [28] ) |CultureInfo.InvariantCulture| -Source Location: (156:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1755:50,0 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.builder.txt new file mode 100644 index 000000000000..6958f4f357a6 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenElement("div") +[0001] AddAttribute("myvalue", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( ParentValue )) +[0002] AddAttribute("anotherevent", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.codegen.cs index ef72c10531aa..ea3002de49da 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.codegen.cs @@ -32,15 +32,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..0eb7e395b655 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..87be9fe83248 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (76:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (76:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..4ff8e1f44dd3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (76:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; +| +Generated Location: (557:18,0 [55] ) +| + public string ParentValue { get; set; } = "hi"; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.ir.txt index 44bc51b10490..bb6f3f864cd9 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.ir.txt @@ -20,5 +20,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (76:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (76:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.mappings.txt index 035a66fcd719..372907b74279 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_OverridesEvent/TestComponent.mappings.txt @@ -3,12 +3,3 @@ Generated Location: (899:23,0 [11] ) |ParentValue| -Source Location: (76:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1391:36,0 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.builder.txt new file mode 100644 index 000000000000..49e98b6795c8 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenElement("div") +[0001] AddAttribute("myvalue", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( ParentValue )) +[0002] AddAttribute("myevent", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs index d7d987575b8a..dad1e4566234 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs @@ -32,15 +32,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..0eb7e395b655 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..70f7ff675b6f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (43:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (43:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..4f7e336e0b77 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (43:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; +| +Generated Location: (557:18,0 [55] ) +| + public string ParentValue { get; set; } = "hi"; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.ir.txt index ff95669a5b6f..a045d4df2d72 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.ir.txt @@ -20,5 +20,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (43:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (43:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt index 79f865ec4348..372907b74279 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt @@ -3,12 +3,3 @@ Generated Location: (899:23,0 [11] ) |ParentValue| -Source Location: (43:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1386:36,0 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.codegen.cs index 8701a72decd2..e7730bf61b7c 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.codegen.cs @@ -40,17 +40,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5dd6b1e3caee --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + + public void UpdateValue(string value) => ParentValue = value; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..ef225f8f80e6 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (73:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (73:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n public void UpdateValue(string value) => ParentValue = value;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..1fc387795d0e --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.decl.mappings.txt @@ -0,0 +1,13 @@ +Source Location: (73:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; + + public void UpdateValue(string value) => ParentValue = value; +| +Generated Location: (557:18,0 [124] ) +| + public string ParentValue { get; set; } = "hi"; + + public void UpdateValue(string value) => ParentValue = value; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.ir.txt index 6a428dc4b8d1..1f58cb94f04d 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.ir.txt @@ -22,5 +22,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (73:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (73:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n public void UpdateValue(string value) => ParentValue = value;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.mappings.txt index 82a68789e8cf..78d543e3158e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindAndParamBindSet/TestComponent.mappings.txt @@ -8,16 +8,3 @@ Source Location: (49:0,49 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1300:32,0 [11] ) |UpdateValue| -Source Location: (73:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| -Generated Location: (1641:44,0 [124] ) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.codegen.cs index e15e48b0192c..e36a4881353e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.codegen.cs @@ -48,17 +48,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5dd6b1e3caee --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + + public void UpdateValue(string value) => ParentValue = value; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..71d288716c29 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (86:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (86:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n public void UpdateValue(string value) => ParentValue = value;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..151a5d9fa1b6 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.decl.mappings.txt @@ -0,0 +1,13 @@ +Source Location: (86:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; + + public void UpdateValue(string value) => ParentValue = value; +| +Generated Location: (557:18,0 [124] ) +| + public string ParentValue { get; set; } = "hi"; + + public void UpdateValue(string value) => ParentValue = value; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.ir.txt index 3890fc1ef566..ee7408ae8e4a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.ir.txt @@ -25,5 +25,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (86:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (86:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n public void UpdateValue(string value) => ParentValue = value;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.mappings.txt index 8fbad903d150..b7fa091482c9 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindValueWithGetSet/TestComponent.mappings.txt @@ -13,16 +13,3 @@ Source Location: (38:0,38 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1582:41,24 [11] ) |ParentValue| -Source Location: (86:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| -Generated Location: (1829:52,0 [124] ) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.codegen.cs index a763bcc724e6..6935a0382736 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.codegen.cs @@ -32,17 +32,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5dd6b1e3caee --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.decl.codegen.cs @@ -0,0 +1,30 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + + public void UpdateValue(string value) => ParentValue = value; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..32667ce1e0ba --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (67:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (67:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n public void UpdateValue(string value) => ParentValue = value;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..8a8de83e0301 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.decl.mappings.txt @@ -0,0 +1,13 @@ +Source Location: (67:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; + + public void UpdateValue(string value) => ParentValue = value; +| +Generated Location: (557:18,0 [124] ) +| + public string ParentValue { get; set; } = "hi"; + + public void UpdateValue(string value) => ParentValue = value; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.ir.txt index 34e17154c246..bdfe3182b02a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.ir.txt @@ -20,5 +20,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (67:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (67:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n public void UpdateValue(string value) => ParentValue = value;\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.mappings.txt index 38f52d1f4639..c76bb01301ef 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingBindWithoutSuffixAndParamBindSetWithSuffix/TestComponent.mappings.txt @@ -3,16 +3,3 @@ Generated Location: (899:23,0 [11] ) |ParentValue| -Source Location: (67:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| -Generated Location: (1386:36,0 [124] ) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.codegen.cs index b21d12d2c9d6..c1e19b76a8d2 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.codegen.cs @@ -48,18 +48,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(7,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; - public void AfterUpdate() { } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..f696831876b3 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.decl.codegen.cs @@ -0,0 +1,31 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(7,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + + public void UpdateValue(string value) => ParentValue = value; + public void AfterUpdate() { } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..865f22ffb76e --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (91:1,7 [159] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (91:1,7 [159] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n public void UpdateValue(string value) => ParentValue = value;\n public void AfterUpdate() { }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..21cafdb3fc90 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.decl.mappings.txt @@ -0,0 +1,15 @@ +Source Location: (91:1,7 [159] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; + + public void UpdateValue(string value) => ParentValue = value; + public void AfterUpdate() { } +| +Generated Location: (557:18,0 [159] ) +| + public string ParentValue { get; set; } = "hi"; + + public void UpdateValue(string value) => ParentValue = value; + public void AfterUpdate() { } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.ir.txt index 090eeb1d621f..6bb43ee05173 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.ir.txt @@ -24,5 +24,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (91:1,7 [159] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (91:1,7 [159] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n public void UpdateValue(string value) => ParentValue = value;\n public void AfterUpdate() { }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.mappings.txt index cbfd31c828fa..5d6f7b0fded9 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_MixingSetWithAfter/TestComponent.mappings.txt @@ -13,18 +13,3 @@ Source Location: (67:0,67 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1740:40,0 [11] ) |AfterUpdate| -Source Location: (91:1,7 [159] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; - public void AfterUpdate() { } -| -Generated Location: (2085:52,0 [159] ) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; - public void AfterUpdate() { } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.builder.txt new file mode 100644 index 000000000000..e2dde3feeba6 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenElement("div") +[0001] AddAttribute("myvalue", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( ParentValue )) +[0002] AddAttribute("myevent", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredBindSetter(callback: __value => { ParentValue = __value; return global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.InvokeAsynchronousDelegate(callback: DoSomething ); }, value: ParentValue), ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.codegen.cs index 3b84de03d703..999922681da5 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.codegen.cs @@ -40,20 +40,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (3,8)-(10,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - Task DoSomething() - { - return Task.CompletedTask; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..e6432b02b517 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.decl.codegen.cs @@ -0,0 +1,33 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (3,8)-(10,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + + Task DoSomething() + { + return Task.CompletedTask; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..0959821ef152 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (85:2,7 [131] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (85:2,7 [131] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n Task DoSomething()\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..ff6ec5fb02e1 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.decl.mappings.txt @@ -0,0 +1,19 @@ +Source Location: (85:2,7 [131] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; + + Task DoSomething() + { + return Task.CompletedTask; + } +| +Generated Location: (558:18,0 [131] ) +| + public string ParentValue { get; set; } = "hi"; + + Task DoSomething() + { + return Task.CompletedTask; + } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.ir.txt index 878c2c99b284..65e405f9f072 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.ir.txt @@ -22,5 +22,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (85:2,7 [131] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (85:2,7 [131] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n Task DoSomething()\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.mappings.txt index 1ad494f9627f..1c37adc2f5c8 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithBindAfterAndSuffix/TestComponent.mappings.txt @@ -8,22 +8,3 @@ Source Location: (55:0,55 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1452:32,0 [11] ) |DoSomething| -Source Location: (85:2,7 [131] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - Task DoSomething() - { - return Task.CompletedTask; - } -| -Generated Location: (1798:44,0 [131] ) -| - public string ParentValue { get; set; } = "hi"; - - Task DoSomething() - { - return Task.CompletedTask; - } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.builder.txt new file mode 100644 index 000000000000..94ac97c15084 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenElement("div") +[0001] AddAttribute("myvalue", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( ParentValue )) +[0002] AddAttribute(x.ToString(), global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.codegen.cs index 2b8e60e7973c..c05eb79c72fe 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.codegen.cs @@ -48,15 +48,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (3,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..d8516ea15f76 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (3,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..980f4ff00aea --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (109:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (109:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..c6baa2ac069f --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (109:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; +| +Generated Location: (557:18,0 [55] ) +| + public string ParentValue { get; set; } = "hi"; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.ir.txt index 7061c0edec32..adeaf174c13e 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.ir.txt @@ -22,5 +22,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (109:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (109:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.mappings.txt index 634b247baebc..046e1e0fafe5 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExplicitExpression/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (83:1,53 [12] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1261:40,0 [12] ) |x.ToString()| -Source Location: (109:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1697:52,0 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.builder.txt new file mode 100644 index 000000000000..51b5adbfb490 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenElement("div") +[0001] AddAttribute("myvalue", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( ParentValue )) +[0002] AddAttribute(x, global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.codegen.cs index 9c07d99852a8..d02ab20950f0 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.codegen.cs @@ -48,15 +48,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (3,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..d8516ea15f76 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (3,8)-(5,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..458123350f3e --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (96:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (96:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..4a036f04c6d8 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (96:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; +| +Generated Location: (557:18,0 [55] ) +| + public string ParentValue { get; set; } = "hi"; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.ir.txt index bb65aa07be2e..603b63daf3eb 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.ir.txt @@ -22,5 +22,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (96:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (96:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.mappings.txt index 56325832b216..d467fe8c8b97 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithEventAsExpression/TestComponent.mappings.txt @@ -13,12 +13,3 @@ Source Location: (82:1,52 [1] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1261:40,0 [1] ) |x| -Source Location: (96:2,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1686:52,0 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.builder.txt new file mode 100644 index 000000000000..a6dacc1917a0 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenElement("div") +[0001] AddAttribute("myvalue", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( ParentValue )) +[0002] AddAttribute("myevent", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredBindSetter(callback: ValueChanged , value: ParentValue), ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.codegen.cs index fe9543705d18..f5ebace59907 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.codegen.cs @@ -40,20 +40,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (3,8)-(10,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - Task ValueChanged(string value) - { - return Task.CompletedTask; - } - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..736cf7abc351 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.decl.codegen.cs @@ -0,0 +1,33 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (3,8)-(10,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + + Task ValueChanged(string value) + { + return Task.CompletedTask; + } + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..f83e0b8b8a74 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (88:2,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (88:2,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n Task ValueChanged(string value)\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..4c414c597a66 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.decl.mappings.txt @@ -0,0 +1,19 @@ +Source Location: (88:2,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; + + Task ValueChanged(string value) + { + return Task.CompletedTask; + } +| +Generated Location: (558:18,0 [144] ) +| + public string ParentValue { get; set; } = "hi"; + + Task ValueChanged(string value) + { + return Task.CompletedTask; + } +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.ir.txt index 20eeedaecfc0..e03f65cfccea 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.ir.txt @@ -22,5 +22,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (88:2,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (88:2,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n Task ValueChanged(string value)\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.mappings.txt index 950c3b1439c4..c83655078be3 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithGetSetAndSuffix/TestComponent.mappings.txt @@ -8,22 +8,3 @@ Source Location: (57:0,57 [12] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1300:32,0 [12] ) |ValueChanged| -Source Location: (88:2,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - Task ValueChanged(string value) - { - return Task.CompletedTask; - } -| -Generated Location: (1643:44,0 [144] ) -| - public string ParentValue { get; set; } = "hi"; - - Task ValueChanged(string value) - { - return Task.CompletedTask; - } -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.builder.txt new file mode 100644 index 000000000000..49e98b6795c8 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenElement("div") +[0001] AddAttribute("myvalue", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( ParentValue )) +[0002] AddAttribute("myevent", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.codegen.cs index 3f0db43f9c4b..6a18bed6df96 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.codegen.cs @@ -32,15 +32,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..0eb7e395b655 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..41a39e27a2e5 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (42:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (42:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..1856614098bf --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (42:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; +| +Generated Location: (557:18,0 [55] ) +| + public string ParentValue { get; set; } = "hi"; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.ir.txt index 6a8aae8e5309..b8f13dffbb5a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.ir.txt @@ -20,5 +20,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (42:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (42:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.mappings.txt index b9f0946e4e42..33f6016839b6 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithStringAttribute_WritesAttributes/TestComponent.mappings.txt @@ -3,12 +3,3 @@ Generated Location: (899:23,0 [11] ) |ParentValue| -Source Location: (42:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1386:36,0 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.builder.txt new file mode 100644 index 000000000000..e6de744617d1 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenElement("div") +[0001] OpenElement("input") +[0002] AddAttribute("@bind", ParentValue) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.codegen.cs index 8560df8ad9cc..8345e361a890 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.codegen.cs @@ -32,15 +32,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (4,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..5c2f21aa0ac7 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (4,8)-(6,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..4cd863c2c927 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (54:3,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (54:3,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..b2fd39b09c10 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (54:3,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; +| +Generated Location: (557:18,0 [55] ) +| + public string ParentValue { get; set; } = "hi"; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.ir.txt index 38322e885889..4648c9c06e10 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.ir.txt @@ -12,5 +12,3 @@ HtmlAttribute - (15:1,8 [21] x:\dir\subdir\Test\TestComponent.cshtml) - @bind=" - " CSharpExpressionAttributeValue - (23:1,16 [12] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (24:1,17 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - CSharpCode - (54:3,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (54:3,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.mappings.txt index dc8213b15f48..2aaa39ff914a 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WithoutCloseTag/TestComponent.mappings.txt @@ -3,12 +3,3 @@ Generated Location: (879:24,0 [11] ) |ParentValue| -Source Location: (54:3,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1165:36,0 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.builder.txt new file mode 100644 index 000000000000..49e98b6795c8 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.builder.txt @@ -0,0 +1,3 @@ +[0000] OpenElement("div") +[0001] AddAttribute("myvalue", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( ParentValue )) +[0002] AddAttribute("myevent", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue)) \ No newline at end of file diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs index f20cbb5b9b18..6935a0382736 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs @@ -32,15 +32,6 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components. __builder.CloseElement(); } #pragma warning restore 1998 -#nullable restore -#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - -#line default -#line hidden -#nullable disable - } } #pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.decl.codegen.cs b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.decl.codegen.cs new file mode 100644 index 000000000000..0eb7e395b655 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.decl.codegen.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable 1591 +namespace Test +{ + #line default + using global::System; + using global::System.Collections.Generic; + using global::System.Linq; + using global::System.Threading.Tasks; + using global::Microsoft.AspNetCore.Components; + #line default + #line hidden + #nullable restore + public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase + #nullable disable + { +#nullable restore +#line (2,8)-(4,1) "x:\dir\subdir\Test\TestComponent.cshtml" + + public string ParentValue { get; set; } = "hi"; + +#line default +#line hidden +#nullable disable + + } +} +#pragma warning restore 1591 diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.decl.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.decl.ir.txt new file mode 100644 index 000000000000..3fe5a0232dbb --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.decl.ir.txt @@ -0,0 +1,10 @@ +Document - + NamespaceDeclaration - - Test + UsingDirective - (3:1,1 [20] ) - global::System + UsingDirective - (26:2,1 [40] ) - global::System.Collections.Generic + UsingDirective - (69:3,1 [25] ) - global::System.Linq + UsingDirective - (97:4,1 [36] ) - global::System.Threading.Tasks + UsingDirective - (136:5,1 [45] ) - global::Microsoft.AspNetCore.Components + ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - + CSharpCode - (37:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) + LazyIntermediateToken - (37:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.decl.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.decl.mappings.txt new file mode 100644 index 000000000000..4d59ae091cec --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.decl.mappings.txt @@ -0,0 +1,9 @@ +Source Location: (37:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) +| + public string ParentValue { get; set; } = "hi"; +| +Generated Location: (557:18,0 [55] ) +| + public string ParentValue { get; set; } = "hi"; +| + diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.ir.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.ir.txt index 5afdb7ce4140..b316cb3d0dfe 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.ir.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.ir.txt @@ -20,5 +20,3 @@ IntermediateToken - - CSharp - , IntermediateToken - - CSharp - ParentValue IntermediateToken - - CSharp - ) - CSharpCode - (37:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (37:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt index 4d9d61511189..c76bb01301ef 100644 --- a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt @@ -3,12 +3,3 @@ Generated Location: (899:23,0 [11] ) |ParentValue| -Source Location: (37:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (1386:36,0 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.builder.txt b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.builder.txt new file mode 100644 index 000000000000..c49e8fe9c6f9 --- /dev/null +++ b/src/Razor/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentCodeGenerationTest/BindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.builder.txt @@ -0,0 +1,11 @@ +[0000] OpenComponent